feat(v2): auto-generated sidebars, frontmatter-less sites#4582
feat(v2): auto-generated sidebars, frontmatter-less sites#4582
Conversation
|
Size Change: +33 B (0%) Total Size: 598 kB
ℹ️ View Unchanged
|
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4582--docusaurus-2.netlify.app/ |
This reverts commit c81da98
… sidebar generation code
# Conflicts: # packages/docusaurus-plugin-content-docs/src/docs.ts
|
Generating sidebar automatically is a good function. I suggest that when generating sidebar automatically, the system can add filtering rules to filter out some files (such as readme. md |
(emphasis mine) @slorber That is very true for us 😄. We have a numbered tutorial like this:
The files keep working as Any way to work around this? |
|
@borekb not sure to understand why you want the numbers in the URLs? In any case, you should be able to use a custom slug to add these numbers back, or simply disable the feature with |
|
It's just how it was, the tutorial part of our docs site used numbers in the URLs. Thanks for the tip with |
| position?: number; | ||
| collapsed?: boolean; | ||
|
|
||
| // TODO should we allow "items" here? how would this work? would an "autogenerated" type be allowed? |
There was a problem hiding this comment.
@slorber Assuming based on this that I won't be able to do what I asked about in an earlier comment?
#3464 (comment)
There was a problem hiding this comment.
No I don't think it's possible atm but we may add support for it if there's a good use-case exposed clearly, preferably with a concrete example showcasing the problem (seeing sources is better)
Motivation
Fixes #3464
Good description of this PR here: #3464 (comment)
Breaking changes:
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
tests, preview, dogfooding