1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Merge branch 'main' into total-pr-diff

This commit is contained in:
Sarah Edwards
2021-08-17 14:37:47 -07:00
committed by GitHub
102 changed files with 22540 additions and 694 deletions

View File

@@ -42,6 +42,8 @@ If you put your README file in your repository's root, `docs`, or hidden `.githu
{% endif %}
{% ifversion fpt or ghae-next or ghes > 3.1 %}
## Auto-generated table of contents for README files
For the rendered view of any Markdown file in a repository, including README files, {% data variables.product.product_name %} will automatically generate a table of contents based on section headings. You can view the table of contents for a README file by clicking the {% octicon "list-unordered" aria-label="The unordered list icon" %} menu icon at the top left of the rendered page.
@@ -55,6 +57,8 @@ The auto-generated table of contents is enabled by default for all Markdown file
1. Under "Features", deselect **Table of contents**.
![Automatic TOC setting for repositories](/assets/images/help/repository/readme-automatic-toc-setting.png)
{% endif %}
## Section links in README files and blob pages
{% data reusables.repositories.section-links %}