-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 "components" docs #8337
Merged
Merged
Add "components" docs #8337
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f4e76a8
Auto-generate components documentation manifest
wpscholar 45d64fe
Ensure that the packages root doc is defined immediately before its c…
wpscholar 6e6abd8
Ran `npm run docs:build`
wpscholar 4d95a66
Automated build of docs based on changes to the `root-manifest.json` …
wpscholar c682113
Ensure that `packages/*/README.md` file changes also trigger docs gen…
wpscholar 25dc1a2
Rename `Components` parent title to `Components Package Reference`
wpscholar e31f561
Ensure that `Packages` shows first, then `Data Package Reference`, th…
wpscholar 1264078
Automatically ran `npm run docs:build`
wpscholar 7bb46f3
Merge branch 'master' into add/components-docs
wpscholar cbc846f
Merge branch 'master' into add/components-docs
wpscholar 34db1da
Split up manifest.js into separate functions and removed code that ge…
wpscholar c2287a9
Merge branch 'master' into add/components-docs
gziolo 260cb62
Update package-lock.json
gziolo 9ee1205
Update data-core.md
gziolo 2ab9aa0
Update manifest.json
gziolo e4c90e6
Update data-core-editor.md
gziolo e2814c2
Update manifest.json
gziolo 7897de5
Merge branch 'master' into add/components-docs
gziolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is meant to be a "config" file, I'd personally move all the logic to generate the manifest to
docs/tool/manifest.js
and leave here only the parts that are "configurable"There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the line is not always easy to draw. We should probably rethink this config globally though. So don't take this comment as a big blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what I was going to do initially, but that file exports a single function that is very specific to the logic for the packages and data docs. I considered exporting an object from that file which contained more than one function but went the path of least resistance. I'd be happy to make some changes if you have a specific recommendation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the function is already doing two things, it can do three :) and we can split it into three functions if necessary.
I'd only keep
'packages/components/src'
as a config variable. Something like:componentsSource
or something like that, and just move everything else tomanifest.js
.Also it looks like the
baseRepoUrl
is already being used in that file (hardcoded), so it might be good to use this variable consistently.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's address this feedback and 🚢
I really like the automation proposed in this PR 💯