-
Notifications
You must be signed in to change notification settings - Fork 250
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
[Bug] Refactor categoryLinkSource option and usage #100
Conversation
Size Change: +90 B (0%) Total Size: 2.38 MB ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 48030e6): https://docusaurus-openapi-36b86--pr100-b0oq5061.web.app (expires Wed, 22 Jun 2022 15:08:34 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
@csestito @blindaa121 Please help validate the expected behaviors described above and any other scenarios I might have missed. Thanks! |
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.
All scenarios have been tested and updated accordingly in the description 👍
Description
Cleaned up the logic/behavior and usage of
categoryLinkSource
option when grouping paths by tag.New expected behavior is as follows:
Scenario 1
categoryLinkSource
: undefinedMulti or single spec? single
Expected result: Category link configs should be
generated-index
with no description. The "Introduction" doc should be the first item in the sidebar and NOT containDocCardList
in the footer.Scenario 2
categoryLinkSource
: "tag"Multi or single spec? single
Expected result: Category link configs should be
generated-index
with description(s) set to tag description(s). The "Introduction" doc should be the first item in the sidebar and NOT containDocCardList
in the footer.Scenario 3
categoryLinkSource
: "info"Multi or single spec? multi (micro-specs)
Expected result: Category link configs should link to respective info/intro docs with
DocCardList
in the footer. No root level "Introduction" doc should appear in the sidebar.Anti-pattern 1
categoryLinkSource
: "info"Multi or single spec? single
Expected result: Category link configs will link to the same info/intro doc. No root-level "Introduction" will be included in the sidebar. This is considered an anti-pattern and will be documented as such.
Test Plan/Checklist
Screen.Recording.2022-05-23.at.9.21.44.AM.mov
Screen.Recording.2022-05-23.at.9.24.11.AM.mov