-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
feat(content-docs): sidebar category linking to document or auto-generated index page #5830
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
Merged
Merged
Changes from all commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
a2bf37f
initial poc of DocCategory page
slorber 4378c4c
Merge branch 'main' into slorber/category-index
slorber 76ade80
refactor => extract slugification logic to @docusaurus/utils
slorber ef2d1c3
generateHugeSidebarItems => reduce size generated
slorber c1c2e1a
progress on implementing category link system
slorber f6d7775
isActiveSidebarItem => support for category link
slorber e9643a3
fix navigation ordering
slorber f0474a3
implementation POC for autogenerated sidebars
slorber 15bb221
do not use conventional category doc link when an explicit "generated…
slorber 9e95fe0
make category index page work
slorber 24e5683
refactor routes
slorber 895eee3
working POC of category index
slorber 9cfebb8
working POC of category index
slorber 73ddc70
Merge branch 'main' into slorber/category-index
slorber d385737
allow lodash last()
slorber b8ff50e
category config should support local or qualified ids
slorber f9d593f
better comment
slorber 9ee14c1
move categoryMetadataFileSchema to validation.ts
slorber 418210e
add external link for generated-index test
slorber 9bcc798
comment
slorber 6edf6f7
change readme case
slorber fe6ffe1
update category slug
slorber cf9eef1
isConventionalCategoryDocLink => case insensitive
slorber 7907d07
generated sidebar items should be normalized too!
slorber 3920e1c
fix generator category linking
slorber 52a150f
style generated index page
slorber e00d597
Merge branch 'main' into slorber/category-index
slorber ff80f13
Clean DocCard implementation
slorber b547559
Merge branch 'main' into slorber/category-index
Josh-Cena 9d06d70
Fix linting
Josh-Cena c5cf549
Fix tests
Josh-Cena 5273c23
Revert snapshot change
Josh-Cena 055b1d8
move more code to theme-common
slorber e1d31e4
Merge branch 'main' into slorber/category-index
slorber 69e31fa
Add DocsVersionProvider + version.docs prop + read doc description in…
slorber f631795
temporary break doc navigation before refactor
slorber bb17c14
Let me see how it looks (lol)
Josh-Cena 9868fb3
Test doc as index page
Josh-Cena 28d2f51
docs: add PREFS website to showcase (#5984)
Patitotective 61ea399
chore: cleanup dependency declaration in package.json (#5985)
armano2 7208bac
chore(plugin-pwa): change core-js version in package.json to v3 (#5995)
Josh-Cena d19cab9
fix: make hash link in heading not selectable (#6000)
Jess-2021 9f2e535
chore: upgrade webpack-dev-server to v4.5.0 (#5998)
lex111 898c226
chore(ci): add GitHub action for showcase testing (#6002)
Josh-Cena 48af337
docs: add Dime.Scheduler SDK to showcase (#6001)
hbulens e63e815
fix github slugger types deps after merge
slorber 8c19d08
restore doc navigation ordering
slorber fc89782
make navigation work across docs/category index
slorber 868d12e
Polish generated index page + normalize with Docs + SEO + ability to …
slorber 711c46b
Merge branch 'main' into slorber/category-index
Josh-Cena 9fab3dc
Layout changes
Josh-Cena 85af312
Fix main heading style
Josh-Cena 03a11e6
refactor
Josh-Cena 99f4b7b
Add tests for createSidebarsUtils
slorber 62a62be
remove old validation error
slorber aec17a5
move sidebars theme methods to theme-common
slorber 635f893
tests for isActiveSidebarItem
slorber dd3243d
test findFirstCategoryLink
slorber 3c6515f
refactor + test docsUtils
slorber cba53f0
validation tests
slorber 389fb09
more sidebar utils tests
slorber 51cecdd
add basic tests for slugger
slorber 2792eb7
test isConventionalCategoryDocLink
slorber 68b453a
better isConventionalCategoryDocLink implementation
slorber 2186783
sidebar generator tests
slorber d50ac37
Add poc of using DocCardList inline
slorber 805f35f
refactor process api + test
slorber fbb9a9f
ensure processor normalize generated items
slorber a680085
fix docs test
slorber dcbde57
update simple website snapshot + fix bugs
slorber b5236ec
Revert "update simple website snapshot + fix bugs"
slorber 0474e83
update single snapshot
slorber 2134453
fix snapshots
slorber 3420b4c
Start using unversioned ids in versioned sidebars (+ retrocompatibili…
slorber 05e2962
update cli snapshots + tests
slorber 53e5355
lockfile
slorber c3df1dc
Multiple refactors
Josh-Cena 345b7c1
Remove types dep
Josh-Cena ad14d2a
Merge branch 'main' into slorber/category-index
Josh-Cena 12c7fdd
Merge branch 'main' into slorber/category-index
slorber 4cde989
integrate new infima version with separate sidebar category caret button
slorber e331bfc
import order
slorber 908291c
polish cardlist design
slorber c2be921
update theme translations
slorber 509ac40
docCategoryGeneratedIndexComponent option
slorber 18ab129
doc docCategoryGeneratedIndexComponent
slorber 29559b9
we should be able to navigate collapsible categories even before hydr…
slorber 3d10908
fix options test
slorber eafebb5
rename getSlug param
slorber 27178d2
doc slug logic should consider conventional doc indexes
slorber 3105474
add some doc
slorber 95c7a3a
move TS issue from CategoryMetadataFile to Sidebar generator (still r…
slorber 0633320
Minor improvements: change markup, add border
lex111 d96e9ac
integrate new infima
slorber 8aae9e1
minor fixes for non-collapsible sidebar items
slorber 3f1147f
Polish docs
Josh-Cena 7335fe9
little mobile UX issue
slorber ac44531
fix category guides link
slorber 3983181
minor fix
slorber 2daa173
ability to translate generated-index title/description
slorber 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 hidden or 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 hidden or 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 hidden or 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
4 changes: 2 additions & 2 deletions
4
.../src/__tests__/__fixtures__/versioned-site/versioned_sidebars/version-1.0.1-sidebars.json
This file contains hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.