Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin list to docs that is generated from the repo #71731

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Jul 14, 2020

Closes #71663

Generates a list of all plugins with links to their readmes and the first paragraph from the same file. When a readme doesn't exist for a plugin we instead link to the plugin directory and write a warning that the readme does not exist.

This docs file is generated by running node scripts/build_plugin_list_docs (please help me with this name) and is verified to be up-to-date by CI.

@spalger spalger added Team:Operations Team label for Operations Team v8.0.0 v7.9.0 v7.8.1 labels Jul 14, 2020
@spalger spalger changed the title Implement/generated plugin list in docs Add plugin list to docs that is generated from the repo Jul 14, 2020
@stacey-gammon
Copy link
Contributor

This is awesome, thanks!! The only thing I want to play around with is if we change our README.mds to README.asciidocs. After some exploration is looks like asciidoc is not rendered that great inside github itself (no support for include files).

But I think it would be better if the plugin link was part of the asciidoc book and not a direct link to github. Going to see if I can get something decent working, if not, we can check it in with just markdown support for now.

@spalger
Copy link
Contributor Author

spalger commented Jul 14, 2020

@elasticmachine merge upstream

@spalger
Copy link
Contributor Author

spalger commented Jul 15, 2020

@elasticmachine merge upstream

@stacey-gammon
Copy link
Contributor

12:39:12 ERROR: 'node scripts/build_plugin_list_docs' caused changes to the following files:
12:39:12
12:39:12 docs/developer/architecture/code-exploration.asciidoc

So cool!!

@spalger
Copy link
Contributor Author

spalger commented Jul 15, 2020

@stacey-gammon the note at the top, and especially the bash blurb, were a little gross looking for my taste. Since we are validating this in CI anyway I moved them to a comment and updated the check which makes CI optional to require CI when changes to this file are detected. (though github is struggling right now so those changes aren't showing up in the PR quite yet)

@spalger
Copy link
Contributor Author

spalger commented Jul 15, 2020

@elasticmachine merge upstream

@stacey-gammon
Copy link
Contributor

Looks good! Yes, much nicer to hide the "don't edit this" so it's not rendererd.

cc @KOTungseth or @lcawl - just want to pull your attention to this new file. There is a note at the top of the code-exploration.asciidoc file. This file shouldn't be edited directly.

Is that sufficient to warn the docs team not to use the "edit" links to edit directly? It would break the ci.

Actually @spalger - would the ci check run if I only made a direct edit to the code-exploration file? I think only a subset of checks run if there are no other code changes... will this new check be part of it to ensure no one hand edits the file and checks it in, thus breaking master.

Copy link
Contributor

@stacey-gammon stacey-gammon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So excited!! 🎉 🎉 .

@spalger
Copy link
Contributor Author

spalger commented Jul 15, 2020

I think only a subset of checks run if there are no other code changes... will this new check be part of it to ensure no one hand edits the file and checks it in, thus breaking master.

Yeah, I've extended the logic we use to determine if CI needs to run to make sure that CI runs all tasks if the docs/developer/architecture/code-exploration.asciidoc file is modified 84e54f7 (#71731) and subsquent fix commits

@spalger
Copy link
Contributor Author

spalger commented Jul 15, 2020

@elasticmachine merge upstream

@spalger spalger marked this pull request as ready for review July 15, 2020 20:19
@spalger spalger requested a review from a team as a code owner July 15, 2020 20:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger added the release_note:skip Skip the PR/issue when compiling release notes label Jul 15, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That LGTM

@spalger spalger merged commit 5a755dd into elastic:master Jul 16, 2020
@spalger spalger deleted the implement/generated-plugin-list-in-docs branch July 16, 2020 19:17
spalger pushed a commit to spalger/kibana that referenced this pull request Jul 16, 2020
Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/dev/ci_setup/setup.sh
spalger pushed a commit to spalger/kibana that referenced this pull request Jul 16, 2020
Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	docs/developer/architecture/index.asciidoc
#	src/dev/ci_setup/setup.sh
@spalger spalger removed the v7.8.1 label Jul 16, 2020
spalger pushed a commit that referenced this pull request Jul 16, 2020
#72138)

Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/dev/ci_setup/setup.sh
spalger added a commit that referenced this pull request Jul 16, 2020
#72139)

Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.9.0 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ops] Script to automatically build a list of plugins, with links to READMEs.
5 participants