-
Notifications
You must be signed in to change notification settings - Fork 101
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
improve Traverser API doc #343
Comments
To address the issue with navigating to specific sub-sections in the Traverser API documentation, such as 3.2.1 and 3.2.1.1, it's recommended to adjust the depth of the table of contents (ToC) in the Hugo site configuration. This can be done by setting the For [markup]
[markup.tableOfContents]
endLevel = 4
ordered = true For markup:
tableOfContents:
endLevel: 4
ordered: true For {
"markup": {
"tableOfContents": {
"endLevel": 4,
"ordered": true
}
}
} Setting Ensure that your Markdown files use the appropriate heading levels to represent different sections and sub-sections of the API documentation. This change will automatically be reflected in the ToC generated by Hugo. For more details, you can refer to the themes/docsy/layouts/partials/toc.html file in the repository. This solution should help in improving the navigation of the Traverser API documentation by including direct links to specific sub-sections. If you have any further questions or need more clarification, feel free to ask. Sources
|
@dosubot Was the ToC depth adjustment for Hugo documentation previously implemented, or is it a new setup? Are there any considerations or known issues with setting endLevel to 4? Any best practices for structuring Markdown files to reflect this change? |
The adjustment of the When structuring Markdown files to reflect this change, it's crucial to use headings ( However, there are considerations to keep in mind with setting the Regarding the In summary, modifying the Sources
|
Problem Type (问题类型)
others (please edit later)
Your Question (问题描述)
The documentation has links for the 3.1 section but not for the sub-sections like 3.2.1 and 3.2.1.1. This makes it hard to find and navigate to specific API details.
The text was updated successfully, but these errors were encountered: