Skip to content

Commit 3e6b612

Browse files
authored
Merge branch 'main' into repo-sync
2 parents d1bcd86 + 7ef63ae commit 3e6b612

File tree

1 file changed

+4
-0
lines changed
  • content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github

1 file changed

+4
-0
lines changed

content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ If you put your README file in your repository's root, `docs`, or hidden `.githu
4242

4343
{% endif %}
4444

45+
{% ifversion fpt or ghae-next or ghes > 3.1 %}
46+
4547
## Auto-generated table of contents for README files
4648

4749
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
5557
1. Under "Features", deselect **Table of contents**.
5658
![Automatic TOC setting for repositories](/assets/images/help/repository/readme-automatic-toc-setting.png)
5759

60+
{% endif %}
61+
5862
## Section links in README files and blob pages
5963

6064
{% data reusables.repositories.section-links %}

0 commit comments

Comments
 (0)