-
-
Notifications
You must be signed in to change notification settings - Fork 10k
Configure table-of-contents heading levels (h2, h3, h4...) #2700
Copy link
Copy link
Closed
Labels
difficulty: intermediateIssues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.Issues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.This is not a bug or issue with Docusausus, per se. It is a feature request for the future.good first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.hacktoberfesthelp wantedAsking for outside help and/or contributions to this particular issue or PR.Asking for outside help and/or contributions to this particular issue or PR.mlhMajor League Hacking FellowshipMajor League Hacking Fellowship
Description
Metadata
Metadata
Assignees
Labels
difficulty: intermediateIssues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.Issues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.This is not a bug or issue with Docusausus, per se. It is a feature request for the future.good first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.hacktoberfesthelp wantedAsking for outside help and/or contributions to this particular issue or PR.Asking for outside help and/or contributions to this particular issue or PR.mlhMajor League Hacking FellowshipMajor League Hacking Fellowship
Type
Fields
No fields configured for issues without a type.
💥 Proposal
(A clear and concise description of what the proposal is.)
Have you read the Contributing Guidelines on issues?
I read the issue side.
Docs: ToC is created using only
<h2>and<h3>.After changing
node_modules/@docusaurus/mdx-loader/src/remark/rightToc/search.jswith the code below and setting minDepth and maxDepth, Users can display the ToC in the desired range.
This code has only been tested on my page. I am not familiar with javascript and I always write docs from
<h1>(#). So I'm not sure if the code below is ok.