Skip to content

Commit 36599fa

Browse files
authored
Merge branch 'main' into sublanding-fixes
2 parents c9ed737 + 2da5012 commit 36599fa

16 files changed

Lines changed: 81 additions & 95 deletions

File tree

360 KB
Loading
175 KB
Loading

content/admin/all-releases.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: GitHub Enterprise Server releases
3+
intro: Documentation for the currently supported and previously deprecated versions of {{ site.data.variables.product.prodname_ghe_server }}.
4+
allowTitleToDifferFromFilename: true
5+
versions:
6+
enterprise-server: '*'
7+
topics:
8+
- enterprise
9+
---
10+
11+
## Currently supported
12+
13+
See [{% data variables.product.prodname_enterprise %}](https://github.com/enterprise) for information about the latest release.
14+
15+
{% for supportedRelease in enterpriseServerReleases.supported %}
16+
- [{% data variables.product.prodname_ghe_server %} {{supportedRelease}}](/enterprise-server@{{supportedRelease}})
17+
{% endfor %}
18+
19+
## Deprecated
20+
21+
Documentation for deprecated versions remains available but is no longer maintained.
22+
23+
{% for deprecatedRelease in enterpriseServerReleases.deprecatedReleasesWithNewFormat %}
24+
- [Enterprise Server {{deprecatedRelease}}](/enterprise-server@{{deprecatedRelease}})
25+
{% endfor %}
26+
27+
{% for deprecatedReleaseLegacyFormat in enterpriseServerReleases.deprecatedReleasesWithLegacyFormat %}
28+
- [Enterprise Server {{deprecatedReleaseLegacyFormat}}](/enterprise/{{deprecatedReleaseLegacyFormat}})
29+
{% endfor %}
30+
31+
## Deprecated developer documentation
32+
33+
Developer documentation for deprecated versions remains available but is no longer maintained.
34+
35+
{% for deprecatedDevRelease in enterpriseServerReleases.deprecatedReleasesOnDeveloperSite %}
36+
- [Enterprise Server {{deprecatedDevRelease}}](https://developer.github.com/enterprise/{{deprecatedDevRelease}})
37+
{% endfor %}

content/admin/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ versions:
3030
{% link_with_intro /enterprise-support %}
3131

3232
{% link_with_intro /release-notes %}
33+
34+
{% link_with_intro /all-releases %}

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,22 @@ If you put your README file in your repository's root, `docs`, or hidden `.githu
4242

4343
{% endif %}
4444

45+
### Auto-generated table of contents for README files
46+
47+
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.
48+
49+
![README with automatically generated TOC](/assets/images/help/repository/readme-automatic-toc.png)
50+
51+
The auto-generated table of contents is enabled by default for all Markdown files in a repository, but you can disable this feature for your repository.
52+
53+
{% data reusables.repositories.navigate-to-repo %}
54+
{% data reusables.repositories.sidebar-settings %}
55+
1. Under "Features", deselect **Table of contents**.
56+
![Automatic TOC setting for repositories](/assets/images/help/repository/readme-automatic-toc-setting.png)
57+
4558
### Section links in README files and blob pages
4659

47-
Many projects use a table of contents at the start of a README to direct users to different sections of the file. {% data reusables.repositories.section-links %}
60+
{% data reusables.repositories.section-links %}
4861

4962
### Relative links and image paths in README files
5063

data/ui.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ contribution_cta:
6464
button: Make a contribution
6565
or: Or,
6666
to_guidelines: learn how to contribute.
67-
enterprise_releases_list:
68-
title: Enterprise Server Releases
69-
currently_supported: Currently supported
70-
currently_supported_message: See <a href="https://github.com/enterprise">GitHub Enterprise</a> for information about the latest release.
71-
deprecated: Deprecated
72-
deprecated_message: 'These docs remain available but are no longer maintained:'
73-
deprecated_developer: Deprecated on developer.github.com
74-
deprecated_developer_message: 'These docs remain available on the legacy <a href="https://developer.github.com">developer site</a> but are no longer maintained:'
7567
products:
7668
graphql:
7769
reference:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a class="f6 no-underline color-text-tertiary pt-1" href="/{{currentLanguage}}/{{enterpriseServerVersions[0]}}/admin/all-releases">See all Enterprise releases</a>

includes/article-version-switcher.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>
1515
{{ allVersions[permalink.pageVersion].versionTitle }}</a>
1616
{% endfor %}
17-
<a class="f6 no-underline color-text-tertiary pt-1" href="/enterprise-server-releases">See all Enterprise releases</a>
17+
{% include all-enterprise-releases-link %}
1818
</div>
1919
</details>
2020
{% endif %}

includes/header-notification.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<!-- END ONEOFF EARLY ACCESS NOTICE -->
4040

4141
{% if translation_notification_type %}
42-
<div class="header-notifications text-center f5 color-bg-info-inverse color-text-primary py-4 px-6 translation_notice{% if release_notification_type %} border-bottom color-border-tertiary{% endif %}">
42+
<div class="header-notifications text-center f5 color-bg-info color-text-primary py-4 px-6 translation_notice{% if release_notification_type %} border-bottom color-border-tertiary{% endif %}">
4343
{{ translation_notification }}
4444
</div>
4545
{% endif %}

includes/header-version-switcher.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
>{{ allVersions[permalink.pageVersion].versionTitle }}</a>
2525
{% endunless %}
2626
{% endfor %}
27+
{% include all-enterprise-releases-link %}
2728
</div>
2829
</details>
2930
</div>

0 commit comments

Comments
 (0)