From 7ef63ae8445997cb72b1b963f2aa6cb06162119c Mon Sep 17 00:00:00 2001 From: Matt Pollard Date: Tue, 17 Aug 2021 17:54:36 +0200 Subject: [PATCH] Version section to reflect the present (#20832) --- .../creating-a-repository-on-github/about-readmes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md index d1bf47b4f9..97ab9813ef 100644 --- a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md +++ b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md @@ -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 %}