Merge branch 'main' into deprecate-static-files

This commit is contained in:
Sarah Schneider 2020-12-01 09:44:50 -05:00 коммит произвёл GitHub
Родитель 88d895fb50 ac2268ef61
Коммит e3b8d16048
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
23 изменённых файлов: 24 добавлений и 229 удалений

2
.github/allowed-actions.js поставляемый
Просмотреть файл

@ -24,7 +24,7 @@ module.exports = [
'lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8',
'pascalgn/automerge-action@c9bd182',
'peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326',
'peter-evans/create-or-update-project-card@80140aaeb9730972a83c626031250621fe8f6670',
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
'peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8',
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',

10
.github/workflows/check-all-english-links.yml поставляемый
Просмотреть файл

@ -19,7 +19,6 @@ jobs:
- name: Run script
run: |
script/check-english-links.js > broken_links.md
echo -e '\ncc @github/docs-content'>> broken_links.md
- if: ${{ failure() }}
name: Get title for issue
id: check
@ -40,11 +39,10 @@ jobs:
content-filepath: ./broken_links.md
labels: broken link report
- if: ${{ failure() }}
name: Add issue to FR project board
uses: peter-evans/create-or-update-project-card@80140aaeb9730972a83c626031250621fe8f6670
name: Add comment to issue
uses: peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd
with:
project-location: 'github'
project-number: '1367'
column-name: 'Docs-content FR issues'
body: |
cc @github/docs-content
issue-number: ${{ steps.broken-link-report.outputs.issue-number }}
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

Просмотреть файл

@ -31,9 +31,7 @@ versions:
{% link_in_list /enabling-private-mode %}
{% link_in_list /configuring-email-for-notifications %}
{% link_in_list /configuring-rate-limits %}
<!-- if currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /configuring-applications %}
<!-- endif -->
{% link_in_list /troubleshooting-ssl-errors %}
{% link_in_list /configuring-time-synchronization %}
{% link_in_list /command-line-utilities %}
@ -54,11 +52,7 @@ versions:
{% link_in_list /connecting-github-enterprise-server-to-github-enterprise-cloud %}
{% link_in_list /enabling-unified-search-between-github-enterprise-server-and-githubcom %}
{% link_in_list /enabling-unified-contributions-between-github-enterprise-server-and-githubcom %}
<!-- if currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /enabling-alerts-for-vulnerable-dependencies-on-github-enterprise-server %}
{% link_in_list /enabling-automatic-user-license-sync-between-github-enterprise-server-and-github-enterprise-cloud %}
<!-- endif -->
<!-- if currentVersion ver_gt "enterprise-server@2.21" -->
{% topic_link_in_list /configuring-advanced-security-features %}
{% link_in_list /configuring-code-scanning-for-your-appliance %}
<!-- endif -->

Просмотреть файл

@ -12,36 +12,24 @@ versions:
### Table of Contents
{% topic_link_in_list /managing-repository-settings %}
{% link_in_list /setting-repository-visibility %}{% if currentVersion == "free-pro-team@latest" %}
{% link_in_list /managing-teams-and-people-with-access-to-your-repository %}{% endif %}
{% link_in_list /setting-repository-visibility %}
{% link_in_list /managing-teams-and-people-with-access-to-your-repository %}
{% link_in_list /classifying-your-repository-with-topics %}
{% link_in_list /customizing-how-changed-files-appear-on-github %}
{% link_in_list /about-email-notifications-for-pushes-to-your-repository %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /displaying-a-sponsor-button-in-your-repository %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.17" -->
{% link_in_list /customizing-your-repositorys-social-media-preview %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /viewing-deployment-activity-for-your-repository %}
<!-- endif -->
{% link_in_list /managing-the-forking-policy-for-your-repository %}
<!-- if enterpriseServerVersions contains currentVersion -->
{% link_in_list /configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-repository %}
{% link_in_list /disabling-or-limiting-github-actions-for-a-repository %}
{% link_in_list /managing-git-lfs-objects-in-archives-of-your-repository %}
{% link_in_list /enabling-anonymous-git-read-access-for-a-repository %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.18" -->
{% link_in_list /configuring-autolinks-to-reference-external-resources %}
<!-- endif -->
{% link_in_list /renaming-a-repository %}
{% link_in_list /transferring-a-repository %}
{% link_in_list /deleting-a-repository %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /restoring-a-deleted-repository %}
<!-- endif -->
{% topic_link_in_list /managing-branches-in-your-repository %}
{% link_in_list /viewing-branches-in-your-repository %}
{% link_in_list /changing-the-default-branch %}
@ -50,9 +38,7 @@ versions:
{% link_in_list /about-merge-methods-on-github %}
{% link_in_list /configuring-commit-squashing-for-pull-requests %}
{% link_in_list /configuring-commit-rebasing-for-pull-requests %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.18" -->
{% link_in_list /managing-the-automatic-deletion-of-branches %}
<!-- endif -->
{% topic_link_in_list /defining-the-mergeability-of-pull-requests %}
{% link_in_list /about-protected-branches %}
{% link_in_list /configuring-protected-branches %}
@ -65,31 +51,22 @@ versions:
{% link_in_list /enabling-required-reviews-for-pull-requests %}
{% link_in_list /about-required-commit-signing %}
{% link_in_list /enabling-required-commit-signing %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.19" -->
{% link_in_list /requiring-a-linear-commit-history %}
{% link_in_list /enabling-force-pushes-to-a-protected-branch %}
{% link_in_list /enabling-deletion-of-a-protected-branch %}
<!-- endif -->
{% topic_link_in_list /releasing-projects-on-github %}
{% link_in_list /about-releases %}
{% link_in_list /managing-releases-in-a-repository %}
{% link_in_list /viewing-your-repositorys-releases-and-tags %}
{% link_in_list /linking-to-releases %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.20" -->
{% link_in_list /comparing-releases %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /automation-for-release-forms-with-query-parameters %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /securing-your-repository %}
{% link_in_list /about-securing-your-repository %}
{% link_in_list /about-secret-scanning %}
{% link_in_list /configuring-secret-scanning-for-private-repositories %}
{% link_in_list /managing-alerts-from-secret-scanning %}
{% link_in_list /managing-security-and-analysis-settings-for-your-repository %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /keeping-your-dependencies-updated-automatically %}
{% link_in_list /about-dependabot-version-updates %}
{% link_in_list /enabling-and-disabling-version-updates %}
@ -98,4 +75,3 @@ versions:
{% link_in_list /customizing-dependency-updates %}
{% link_in_list /configuration-options-for-dependency-updates %}
{% link_in_list /keeping-your-actions-up-to-date-with-dependabot %}
<!-- endif -->

Просмотреть файл

@ -35,11 +35,9 @@ versions:
{% link_in_list /reviewing-your-authorized-applications-oauth %}
{% link_in_list /reviewing-your-security-log %}
{% link_in_list /removing-sensitive-data-from-a-repository %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /about-anonymized-image-urls %}
{% link_in_list /about-githubs-ip-addresses %}
{% link_in_list /githubs-ssh-key-fingerprints %}
<!-- endif -->
{% link_in_list /sudo-mode %}
{% link_in_list /preventing-unauthorized-access %}
{% topic_link_in_list /securing-your-account-with-two-factor-authentication-2fa %}
@ -48,18 +46,14 @@ versions:
{% link_in_list /configuring-two-factor-authentication-recovery-methods %}
{% link_in_list /accessing-github-using-two-factor-authentication %}
{% link_in_list /recovering-your-account-if-you-lose-your-2fa-credentials %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /changing-two-factor-authentication-delivery-methods-for-your-mobile-device %}
{% link_in_list /countries-where-sms-authentication-is-supported %}
<!-- endif -->
{% link_in_list /disabling-two-factor-authentication-for-your-personal-account %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /authenticating-with-saml-single-sign-on %}
{% link_in_list /about-authentication-with-saml-single-sign-on %}
{% link_in_list /authorizing-an-ssh-key-for-use-with-saml-single-sign-on %}
{% link_in_list /authorizing-a-personal-access-token-for-use-with-saml-single-sign-on %}
{% link_in_list /viewing-and-managing-your-active-saml-sessions %}
<!-- endif -->
{% topic_link_in_list /connecting-to-github-with-ssh %}
{% link_in_list /about-ssh %}
{% link_in_list /checking-for-existing-ssh-keys %}
@ -68,13 +62,9 @@ versions:
{% link_in_list /testing-your-ssh-connection %}
{% link_in_list /working-with-ssh-key-passphrases %}
{% topic_link_in_list /troubleshooting-ssh %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /using-ssh-over-the-https-port %}
<!-- endif -->
{% link_in_list /recovering-your-ssh-key-passphrase %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /deleted-or-missing-ssh-keys %}
<!-- endif -->
{% link_in_list /error-permission-denied-publickey %}
{% link_in_list /error-bad-file-number %}
{% link_in_list /error-key-already-in-use %}
@ -82,9 +72,7 @@ versions:
{% link_in_list /error-permission-to-userrepo-denied-to-userother-repo %}
{% link_in_list /error-agent-admitted-failure-to-sign %}
{% link_in_list /error-ssh-add-illegal-option----k %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /error-ssl-certificate-problem-verify-that-the-ca-cert-is-ok %}
<!-- endif -->
{% link_in_list /error-were-doing-an-ssh-key-audit %}
{% topic_link_in_list /managing-commit-signature-verification %}
{% link_in_list /about-commit-signature-verification %}

Просмотреть файл

@ -13,21 +13,15 @@ versions:
### Table of Contents
{% topic_link_in_list /setting-up-your-project-for-healthy-contributions %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /about-community-management-and-moderation %}
{% link_in_list /about-community-profiles-for-public-repositories %}
{% link_in_list /accessing-a-projects-community-profile %}
{% link_in_list /adding-a-code-of-conduct-to-your-project %}
<!-- endif -->
{% link_in_list /setting-guidelines-for-repository-contributors %}
{% link_in_list /adding-a-license-to-a-repository %}
{% link_in_list /adding-support-resources-to-your-project %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /creating-a-default-community-health-file %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /encouraging-helpful-contributions-to-your-project-with-labels %}
<!-- endif -->
{% topic_link_in_list /using-templates-to-encourage-useful-issues-and-pull-requests %}
{% link_in_list /about-issue-and-pull-request-templates %}
{% link_in_list /configuring-issue-templates-for-your-repository %}
@ -42,7 +36,6 @@ versions:
{% link_in_list /tracking-changes-in-a-comment %}
{% link_in_list /managing-how-contributors-report-abuse-in-your-organizations-repository %}
{% link_in_list /managing-reported-content-in-your-organizations-repository %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /maintaining-your-safety-on-github %}
{% link_in_list /blocking-a-user-from-your-personal-account %}
{% link_in_list /viewing-users-youve-blocked-from-your-personal-account %}
@ -51,7 +44,6 @@ versions:
{% link_in_list /viewing-users-who-are-blocked-from-your-organization %}
{% link_in_list /unblocking-a-user-from-your-organization %}
{% link_in_list /reporting-abuse-or-spam %}
<!-- endif -->
{% topic_link_in_list /documenting-your-project-with-wikis %}
{% link_in_list /about-wikis %}
{% link_in_list /adding-or-editing-wiki-pages %}
@ -60,10 +52,8 @@ versions:
{% link_in_list /viewing-a-wikis-history-of-changes %}
{% link_in_list /changing-access-permissions-for-wikis %}
{% link_in_list /disabling-wikis %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /collaborating-with-your-team %}
{% link_in_list /about-team-discussions %}
{% link_in_list /creating-a-team-discussion %}
{% link_in_list /editing-or-deleting-a-team-discussion %}
{% link_in_list /pinning-a-team-discussion %}
<!-- endif -->

Просмотреть файл

@ -29,9 +29,7 @@ versions:
{% link_in_list /what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility %}
{% topic_link_in_list /collaborating-on-repositories-with-code-quality-features %}
{% link_in_list /about-status-checks %}
<!-- if enterpriseServerVersions contains currentVersion -->
{% link_in_list /working-with-pre-receive-hooks %}
<!-- endif -->
{% topic_link_in_list /proposing-changes-to-your-work-with-pull-requests %}
{% link_in_list /about-branches %}
{% link_in_list /creating-and-deleting-branches-within-your-repository %}
@ -39,9 +37,7 @@ versions:
{% link_in_list /about-comparing-branches-in-pull-requests %}
{% link_in_list /creating-a-pull-request %}
{% link_in_list /creating-a-pull-request-from-a-fork %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /changing-the-stage-of-a-pull-request %}
<!-- endif -->
{% link_in_list /requesting-a-pull-request-review %}
{% link_in_list /changing-the-base-branch-of-a-pull-request %}
{% link_in_list /committing-changes-to-a-pull-request-branch-created-from-a-fork %}
@ -52,15 +48,11 @@ versions:
{% topic_link_in_list /reviewing-changes-in-pull-requests %}
{% link_in_list /about-pull-request-reviews %}
{% link_in_list /reviewing-proposed-changes-in-a-pull-request %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /filtering-files-in-a-pull-request %}
<!-- endif -->
{% link_in_list /finding-changed-methods-and-functions-in-a-pull-request %}
{% link_in_list /commenting-on-a-pull-request %}
{% link_in_list /viewing-a-pull-request-review %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /incorporating-feedback-in-your-pull-request %}
<!-- endif -->
{% link_in_list /approving-a-pull-request-with-required-reviews %}
{% link_in_list /dismissing-a-pull-request-review %}
{% link_in_list /checking-out-pull-requests-locally %}

Просмотреть файл

@ -16,9 +16,7 @@ versions:
{% topic_link_in_list /creating-and-editing-commits %}
{% link_in_list /about-commits %}
{% link_in_list /creating-a-commit-with-multiple-authors %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /creating-a-commit-on-behalf-of-an-organization %}
<!-- endif -->
{% link_in_list /changing-a-commit-message %}
{% topic_link_in_list /viewing-and-comparing-commits %}
{% link_in_list /commit-branch-and-tag-labels %}

Просмотреть файл

@ -18,16 +18,12 @@ versions:
{% link_in_list /about-repositories %}
{% link_in_list /about-repository-visibility %}
{% link_in_list /creating-a-new-repository %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.17" -->
{% link_in_list /creating-a-repository-from-a-template %}
<!-- endif -->
{% link_in_list /about-readmes %}
{% link_in_list /about-code-owners %}
{% link_in_list /about-repository-languages %}
{% link_in_list /licensing-a-repository %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.17" -->
{% link_in_list /creating-a-template-repository %}
<!-- endif -->
{% link_in_list /creating-an-issues-only-repository %}
{% link_in_list /limits-for-viewing-content-and-diffs-in-a-repository %}
{% link_in_list /duplicating-a-repository %}
@ -39,8 +35,6 @@ versions:
{% topic_link_in_list /archiving-a-github-repository %}
{% link_in_list /about-archiving-repositories %}
{% link_in_list /archiving-repositories %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /about-archiving-content-and-data-on-github %}
{% link_in_list /referencing-and-citing-content %}
<!-- endif -->
{% link_in_list /backing-up-a-repository %}

Просмотреть файл

@ -27,37 +27,27 @@ versions:
{% link_in_list /fork-a-repo %}
{% link_in_list /be-social %}
{% topic_link_in_list /learning-about-github %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /githubs-products %}
{% link_in_list /exploring-early-access-releases-with-feature-preview %}
<!-- endif -->
{% link_in_list /types-of-github-accounts %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /faq-about-changes-to-githubs-plans %}
{% link_in_list /github-cli %}
{% link_in_list /github-desktop %}
{% link_in_list /github-for-mobile %}
<!-- endif -->
{% link_in_list /access-permissions-on-github %}
{% link_in_list /github-glossary %}
{% link_in_list /git-cheatsheet %}
{% link_in_list /git-and-github-learning-resources %}
{% topic_link_in_list /signing-up-for-github %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /signing-up-for-a-new-github-account %}
{% link_in_list /verifying-your-email-address %}
<!-- endif -->
{% link_in_list /setting-up-a-trial-of-github-enterprise-cloud %}
{% link_in_list /setting-up-a-trial-of-github-enterprise-server %}
{% topic_link_in_list /exploring-projects-on-github %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /finding-ways-to-contribute-to-open-source-on-github %}
<!-- endif -->
{% link_in_list /saving-repositories-with-stars %}
{% link_in_list /following-people %}
{% topic_link_in_list /using-github %}
{% link_in_list /supported-browsers %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /troubleshooting-connectivity-problems %}
<!-- endif -->
{% link_in_list /keyboard-shortcuts %}

Просмотреть файл

@ -15,11 +15,9 @@ versions:
### Table of Contents
{% topic_link_in_list /importing-source-code-to-github %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /about-github-importer %}
{% link_in_list /importing-a-repository-with-github-importer %}
{% link_in_list /updating-commit-author-attribution-with-github-importer %}
<!-- endif -->
{% link_in_list /importing-a-git-repository-using-the-command-line %}
{% link_in_list /adding-an-existing-project-to-github-using-the-command-line %}
{% link_in_list /source-code-migration-tools %}

Просмотреть файл

@ -20,24 +20,14 @@ versions:
{% link_in_list /authenticating-to-github %}
<!-- Notifications v2 beta -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /managing-subscriptions-and-notifications-on-github %}
<!-- endif -->
<!-- Notifications v1 -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /receiving-notifications-about-activity-on-github %}
<!-- endif -->
{% link_in_list /setting-up-and-managing-organizations-and-teams %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /setting-up-and-managing-your-enterprise %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /setting-up-and-managing-billing-and-payments-on-github %}
<!-- endif -->
{% link_in_list /writing-on-github %}
@ -50,10 +40,7 @@ versions:
{% link_in_list /collaborating-with-issues-and-pull-requests %}
{% link_in_list /managing-your-work-on-github %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /developing-online-with-codespaces %}
<!-- endif -->
{% link_in_list /building-a-strong-community %}
@ -64,45 +51,21 @@ versions:
{% link_in_list /administering-a-repository %}
{% link_in_list /visualizing-repository-data-with-graphs %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /managing-security-vulnerabilities %}
<!-- endif -->
{% link_in_list /finding-security-vulnerabilities-and-errors-in-your-code %}
{% link_in_list /managing-files-in-a-repository %}
{% link_in_list /managing-large-files %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /customizing-your-github-workflow %}
<!-- endif -->
{% link_in_list /extending-github %}
{% link_in_list /working-with-github-pages %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /supporting-the-open-source-community-with-github-sponsors %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /teaching-and-learning-with-github-education %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /finding-talent-with-github-jobs %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /working-with-github-support %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /understanding-how-github-uses-and-protects-your-data %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /site-policy %}
<!-- endif -->

Просмотреть файл

@ -14,9 +14,7 @@ versions:
### Table of Contents
{% topic_link_in_list /managing-files-on-github %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /navigating-code-on-github %}
<!-- endif -->
{% link_in_list /creating-new-files %}
{% link_in_list /adding-a-file-to-a-repository %}
{% link_in_list /moving-a-file-to-a-new-location %}

Просмотреть файл

@ -15,16 +15,12 @@ versions:
{% link_in_list /conditions-for-large-files %}
{% link_in_list /removing-files-from-a-repositorys-history %}
{% link_in_list /distributing-large-binaries %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /what-is-my-disk-quota %}
<!-- endif -->
{% topic_link_in_list /versioning-large-files %}
{% link_in_list /about-git-large-file-storage %}
{% link_in_list /installing-git-large-file-storage %}
{% link_in_list /configuring-git-large-file-storage %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /about-storage-and-bandwidth-usage %}
<!-- endif -->
{% link_in_list /collaboration-with-git-large-file-storage %}
{% link_in_list /moving-a-file-in-your-repository-to-git-large-file-storage %}
{% link_in_list /removing-files-from-git-large-file-storage %}

Просмотреть файл

@ -9,8 +9,6 @@ versions:
### Table of Contents
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /managing-security-vulnerabilities-in-your-project %}
{% link_in_list /adding-a-security-policy-to-your-repository %}
{% link_in_list /about-github-security-advisories %}
@ -22,17 +20,12 @@ versions:
{% link_in_list /publishing-a-security-advisory %}
{% link_in_list /editing-a-security-advisory %}
{% link_in_list /withdrawing-a-security-advisory %}
<!-- endif -->
{% topic_link_in_list /managing-vulnerabilities-in-your-projects-dependencies %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /browsing-security-vulnerabilities-in-the-github-advisory-database %}
<!-- endif -->
{% link_in_list /about-alerts-for-vulnerable-dependencies %}
{% link_in_list /configuring-notifications-for-vulnerable-dependencies %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /about-dependabot-security-updates %}
{% link_in_list /configuring-dependabot-security-updates %}
{% link_in_list /viewing-and-updating-vulnerable-dependencies-in-your-repository %}
{% link_in_list /troubleshooting-the-detection-of-vulnerable-dependencies %}
{% link_in_list /troubleshooting-dependabot-errors %}
<!-- endif -->

Просмотреть файл

@ -17,15 +17,11 @@ versions:
{% topic_link_in_list /managing-your-work-with-issues-and-pull-requests %}
{% link_in_list /about-issues %}
{% link_in_list /creating-an-issue %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /deleting-an-issue %}
<!-- endif -->
{% link_in_list /opening-an-issue-from-a-comment %}
{% link_in_list /opening-an-issue-from-code %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.17" -->
{% link_in_list /transferring-an-issue-to-another-repository %}
{% link_in_list /pinning-an-issue-to-your-repository %}
<!-- endif -->
{% link_in_list /creating-a-permanent-link-to-a-code-snippet %}
{% link_in_list /managing-labels %}
{% link_in_list /about-task-lists %}
@ -43,9 +39,7 @@ versions:
{% link_in_list /linking-a-repository-to-a-project-board %}
{% link_in_list /about-automation-for-project-boards %}
{% link_in_list /configuring-automation-for-project-boards %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /copying-a-project-board %}
<!-- endif -->
{% link_in_list /closing-a-project-board %}
{% link_in_list /reopening-a-closed-project-board %}
{% link_in_list /deleting-a-project-board %}

Просмотреть файл

@ -14,16 +14,10 @@ versions:
{% link_in_list /choosing-the-delivery-method-for-your-notifications %}
{% topic_link_in_list /managing-your-notifications %}
{% link_in_list /marking-notifications-as-read %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /saving-notifications-for-later %}
<!-- endif -->
{% link_in_list /subscribing-to-and-unsubscribing-from-notifications %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /listing-the-issues-and-pull-requests-youre-subscribed-to %}
<!-- endif -->
{% link_in_list /watching-and-unwatching-repositories %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /watching-and-unwatching-releases-for-a-repository %}
<!-- endif -->
{% link_in_list /watching-and-unwatching-team-discussions %}
{% link_in_list /listing-the-repositories-youre-watching %}

Просмотреть файл

@ -25,8 +25,8 @@ versions:
{% link_in_list /searching-topics %}
{% link_in_list /searching-code %}
{% link_in_list /searching-commits %}
{% link_in_list /searching-issues-and-pull-requests %}{% if currentVersion == "free-pro-team@latest" %}
{% link_in_list /searching-github-marketplace %}{% endif %}
{% link_in_list /searching-issues-and-pull-requests %}
{% link_in_list /searching-github-marketplace %}
{% link_in_list /searching-users %}
{% link_in_list /searching-for-packages %}
{% link_in_list /searching-wikis %}

Просмотреть файл

@ -20,42 +20,30 @@ versions:
{% link_in_list /creating-a-new-organization-from-scratch %}
{% link_in_list /accessing-your-organizations-settings %}
{% link_in_list /about-your-organizations-news-feed %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /viewing-insights-for-your-organization %}
<!-- endif -->
{% topic_link_in_list /managing-membership-in-your-organization %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /inviting-users-to-join-your-organization %}
{% link_in_list /canceling-or-editing-an-invitation-to-join-your-organization %}
<!-- else -->
{% link_in_list /adding-people-to-your-organization %}
<!-- endif -->
{% link_in_list /removing-a-member-from-your-organization %}
{% link_in_list /reinstating-a-former-member-of-your-organization %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /can-i-create-accounts-for-people-in-my-organization %}
<!-- endif -->
{% topic_link_in_list /managing-peoples-access-to-your-organization-with-roles %}
{% link_in_list /permission-levels-for-an-organization %}
{% link_in_list /maintaining-ownership-continuity-for-your-organization %}
{% link_in_list /giving-team-maintainer-permissions-to-an-organization-member %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /adding-a-billing-manager-to-your-organization %}
{% link_in_list /removing-a-billing-manager-from-your-organization %}
<!-- endif -->
{% topic_link_in_list /organizing-members-into-teams %}
{% link_in_list /about-teams %}
{% link_in_list /creating-a-team %}
{% link_in_list /setting-your-teams-profile-picture %}
{% link_in_list /adding-organization-members-to-a-team %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.19" -->
{% link_in_list /managing-code-review-assignment-for-your-team %}
<!-- endif -->
{% link_in_list /renaming-a-team %}
{% link_in_list /changing-team-visibility %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /synchronizing-a-team-with-an-identity-provider-group %}
<!-- endif -->
{% link_in_list /moving-a-team-in-your-organizations-hierarchy %}
{% link_in_list /requesting-to-add-a-child-team %}
{% link_in_list /requesting-to-add-or-change-a-parent-team %}
@ -66,9 +54,7 @@ versions:
{% topic_link_in_list /managing-access-to-your-organizations-repositories %}
{% link_in_list /repository-permission-levels-for-an-organization %}
{% link_in_list /setting-base-permissions-for-an-organization %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /viewing-people-with-access-to-your-repository %}
<!-- endif -->
{% link_in_list /managing-an-individuals-access-to-an-organization-repository %}
{% link_in_list /managing-team-access-to-an-organization-repository %}
{% link_in_list /adding-outside-collaborators-to-repositories-in-your-organization %}
@ -84,83 +70,52 @@ versions:
{% link_in_list /managing-an-individuals-access-to-an-organization-project-board %}
{% link_in_list /adding-an-outside-collaborator-to-a-project-board-in-your-organization %}
{% link_in_list /removing-an-outside-collaborator-from-an-organization-project-board %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% topic_link_in_list /managing-access-to-your-organizations-apps %}
{% link_in_list /adding-github-app-managers-in-your-organization %}
{% link_in_list /removing-github-app-managers-from-your-organization %}
<!-- endif -->
{% topic_link_in_list /managing-organization-settings %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /verifying-your-organizations-domain %}
<!-- endif -->
{% link_in_list /renaming-an-organization %}
{% link_in_list /transferring-organization-ownership %}
{% link_in_list /restricting-repository-creation-in-your-organization %}
{% link_in_list /setting-permissions-for-deleting-or-transferring-repositories %}
{% link_in_list /restricting-repository-visibility-changes-in-your-organization %}
{% link_in_list /managing-the-forking-policy-for-your-organization %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /disabling-or-limiting-github-actions-for-your-organization %}
{% link_in_list /configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.15" -->
{% link_in_list /setting-permissions-for-adding-outside-collaborators %}
{% link_in_list /allowing-people-to-delete-issues-in-your-organization %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /setting-team-creation-permissions-in-your-organization %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.19" -->
{% link_in_list /managing-scheduled-reminders-for-your-organization %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" -->
{% link_in_list /managing-the-default-branch-name-for-repositories-in-your-organization %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.18" -->
{% link_in_list /managing-default-labels-for-repositories-in-your-organization %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /changing-the-visibility-of-your-organizations-dependency-insights %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.17" -->
{% link_in_list /managing-the-display-of-member-names-in-your-organization %}
<!-- endif -->
{% link_in_list /disabling-publication-of-github-pages-sites-for-your-organization %}
{% link_in_list /deleting-an-organization-account %}
{% link_in_list /converting-an-organization-into-a-user %}
<!-- if enterpriseServerVersions contains currentVersion -->
{% link_in_list /integrating-jira-with-your-organization-project-board %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /upgrading-to-the-corporate-terms-of-service %}
<!-- endif -->
{% topic_link_in_list /migrating-to-improved-organization-permissions %}
{% link_in_list /converting-an-owners-team-to-improved-organization-permissions %}
{% link_in_list /converting-an-admin-team-to-improved-organization-permissions %}
{% link_in_list /migrating-admin-teams-to-improved-organization-permissions %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /restricting-access-to-your-organizations-data %}
{% link_in_list /about-oauth-app-access-restrictions %}
{% link_in_list /enabling-oauth-app-access-restrictions-for-your-organization %}
{% link_in_list /disabling-oauth-app-access-restrictions-for-your-organization %}
{% link_in_list /approving-oauth-apps-for-your-organization %}
{% link_in_list /denying-access-to-a-previously-approved-oauth-app-for-your-organization %}
<!-- endif -->
{% topic_link_in_list /keeping-your-organization-secure %}
{% link_in_list /viewing-whether-users-in-your-organization-have-2fa-enabled %}
{% link_in_list /preparing-to-require-two-factor-authentication-in-your-organization %}
{% link_in_list /requiring-two-factor-authentication-in-your-organization %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /managing-security-and-analysis-settings-for-your-organization %}
{% link_in_list /managing-secret-scanning-for-your-organization %}
<!-- endif -->
{% link_in_list /managing-allowed-ip-addresses-for-your-organization %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /restricting-email-notifications-to-an-approved-domain %}
<!-- endif -->
{% link_in_list /reviewing-the-audit-log-for-your-organization %}
{% link_in_list /reviewing-your-organizations-installed-integrations %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /managing-saml-single-sign-on-for-your-organization %}
{% link_in_list /about-identity-and-access-management-with-saml-single-sign-on %}
{% link_in_list /about-scim %}
@ -170,17 +125,12 @@ versions:
{% link_in_list /preparing-to-enforce-saml-single-sign-on-in-your-organization %}
{% link_in_list /enforcing-saml-single-sign-on-for-your-organization %}
{% link_in_list /downloading-your-organizations-saml-single-sign-on-recovery-codes %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /managing-team-synchronization-for-your-organization %}
<!-- endif -->
{% link_in_list /accessing-your-organization-if-your-identity-provider-is-unavailable %}
{% topic_link_in_list /granting-access-to-your-organization-with-saml-single-sign-on %}
{% link_in_list /managing-bots-and-service-accounts-with-saml-single-sign-on %}
{% link_in_list /viewing-and-managing-a-members-saml-access-to-your-organization %}
{% link_in_list /about-two-factor-authentication-and-saml-single-sign-on %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.18" -->
{% topic_link_in_list /managing-git-access-to-your-organizations-repositories %}
{% link_in_list /about-ssh-certificate-authorities %}
{% link_in_list /managing-your-organizations-ssh-certificate-authorities %}
<!-- endif -->

Просмотреть файл

@ -15,40 +15,26 @@ versions:
{% topic_link_in_list /managing-user-account-settings %}
{% link_in_list /about-your-personal-dashboard %}
{% link_in_list /changing-your-github-username %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /merging-multiple-user-accounts %}
{% link_in_list /converting-a-user-into-an-organization %}
<!-- endif -->
{% link_in_list /deleting-your-user-account %}
{% link_in_list /permission-levels-for-a-user-account-repository %}
{% link_in_list /permission-levels-for-user-owned-project-boards %}
{% link_in_list /managing-the-default-branch-name-for-your-repositories %}
{% link_in_list /managing-security-and-analysis-settings-for-your-user-account %}
{% link_in_list /managing-access-to-your-user-accounts-project-boards %}
<!-- if enterpriseServerVersions contains currentVersion -->
{% link_in_list /integrating-jira-with-your-personal-projects %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /best-practices-for-leaving-your-company %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /what-does-the-available-for-hire-checkbox-do %}
<!-- endif -->
{% topic_link_in_list /managing-email-preferences %}
{% link_in_list /adding-an-email-address-to-your-github-account %}
{% link_in_list /changing-your-primary-email-address %}
{% link_in_list /setting-a-backup-email-address %}
{% link_in_list /setting-your-commit-email-address %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /blocking-command-line-pushes-that-expose-your-personal-email-address %}
<!-- endif -->
{% link_in_list /remembering-your-github-username-or-email %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /types-of-emails-github-sends %}
<!-- endif -->
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /managing-marketing-emails-from-github %}
<!-- endif -->
{% topic_link_in_list /managing-access-to-your-personal-repositories %}
{% link_in_list /inviting-collaborators-to-a-personal-repository %}
{% link_in_list /removing-a-collaborator-from-a-personal-repository %}
@ -58,9 +44,7 @@ versions:
{% link_in_list /about-organization-membership %}
{% link_in_list /accessing-an-organization %}
{% link_in_list /viewing-peoples-roles-in-an-organization %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /requesting-organization-approval-for-oauth-apps %}
<!-- endif -->
{% link_in_list /publicizing-or-hiding-organization-membership %}
{% link_in_list /managing-your-scheduled-reminders %}
{% link_in_list /removing-yourself-from-an-organization %}

Просмотреть файл

@ -18,16 +18,12 @@ versions:
{% link_in_list /about-repository-graphs %}
{% link_in_list /viewing-a-summary-of-repository-activity %}
{% link_in_list /viewing-a-projects-contributors %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /viewing-traffic-to-a-repository %}
<!-- endif -->
{% topic_link_in_list /analyzing-changes-to-a-repositorys-content %}
{% link_in_list /visualizing-commits-in-a-repository %}
{% link_in_list /visualizing-additions-and-deletions-to-content-in-a-repository %}
{% topic_link_in_list /understanding-connections-between-repositories %}
{% link_in_list /viewing-a-repositorys-network %}
{% link_in_list /listing-the-forks-of-a-repository %}
<!-- if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.16" -->
{% link_in_list /about-the-dependency-graph %}
{% link_in_list /exploring-the-dependencies-of-a-repository %}
<!-- endif -->

Просмотреть файл

@ -23,15 +23,11 @@ versions:
{% topic_link_in_list /getting-started-with-github-pages %}
{% link_in_list /about-github-pages %}
{% link_in_list /creating-a-github-pages-site %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /adding-a-theme-to-your-github-pages-site-with-the-theme-chooser %}
<!-- endif -->
{% link_in_list /configuring-a-publishing-source-for-your-github-pages-site %}
{% link_in_list /creating-a-custom-404-page-for-your-github-pages-site %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% link_in_list /securing-your-github-pages-site-with-https %}
{% link_in_list /using-submodules-with-github-pages %}
<!-- endif -->
{% link_in_list /unpublishing-a-github-pages-site %}
{% topic_link_in_list /setting-up-a-github-pages-site-with-jekyll %}
{% link_in_list /about-github-pages-and-jekyll %}
@ -42,9 +38,7 @@ versions:
{% link_in_list /adding-a-theme-to-your-github-pages-site-using-jekyll %}
{% link_in_list /about-jekyll-build-errors-for-github-pages-sites %}
{% link_in_list /troubleshooting-jekyll-build-errors-for-github-pages-sites %}
<!-- if currentVersion == "free-pro-team@latest" -->
{% topic_link_in_list /configuring-a-custom-domain-for-your-github-pages-site %}
{% link_in_list /about-custom-domains-and-github-pages %}
{% link_in_list /managing-a-custom-domain-for-your-github-pages-site %}
{% link_in_list /troubleshooting-custom-domains-and-github-pages %}
<!-- endif -->

Просмотреть файл

@ -0,0 +1,15 @@
#!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const walk = require('walk-sync')
const contentDir = path.join(process.cwd(), 'content')
// remove legacy commented out conditionals in index.md files
walk(contentDir, { includeBasePath: true, directories: false })
.filter(file => file.endsWith('index.md'))
.forEach(file => {
const newContents = fs.readFileSync(file, 'utf8')
.replace(/\n<!-- (if|endif) .*?-->/g, '')
fs.writeFileSync(file, newContents)
})