Skip to content

Commit ed48eab

Browse files
authored
check for redirect orphans (#23330)
* check for redirect orphans Part of #1303 * timeout * avoid external redirects in redirects_from too * delete content/admin/advanced-security/viewing-your-github-advanced-security-usage.md * remove from children: too * remove some trailing slashes in redirect_froms * fix a few more trailing slash redirects * delete orphan pages
1 parent 17e33bb commit ed48eab

File tree

23 files changed

+116
-228
lines changed

23 files changed

+116
-228
lines changed

content/admin/advanced-security/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ children:
1515
- /enabling-github-advanced-security-for-your-enterprise
1616
- /configuring-code-scanning-for-your-appliance
1717
- /configuring-secret-scanning-for-your-appliance
18-
- /viewing-your-github-advanced-security-usage
1918
- /overview-of-github-advanced-security-deployment
2019
- /deploying-github-advanced-security-in-your-enterprise
2120
---
22-

content/admin/advanced-security/viewing-your-github-advanced-security-usage.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

content/communities/moderating-comments-and-conversations/managing-disruptive-comments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Managing disruptive comments
33
intro: 'You can {% ifversion fpt or ghec %}hide, edit,{% else %}edit{% endif %} or delete comments on issues, pull requests, and commits.'
44
redirect_from:
5-
- /articles/editing-a-comment/
6-
- /articles/deleting-a-comment/
5+
- /articles/editing-a-comment
6+
- /articles/deleting-a-comment
77
- /articles/managing-disruptive-comments
88
- /github/building-a-strong-community/managing-disruptive-comments
99
versions:
@@ -18,7 +18,7 @@ shortTitle: Manage comments
1818

1919
## Hiding a comment
2020

21-
Anyone with write access to a repository can hide comments on issues, pull requests, and commits.
21+
Anyone with write access to a repository can hide comments on issues, pull requests, and commits.
2222

2323
If a comment is off-topic, outdated, or resolved, you may want to hide a comment to keep a discussion focused or make a pull request easier to navigate and review. Hidden comments are minimized but people with read access to the repository can expand them.
2424

content/desktop/installing-and-configuring-github-desktop/overview/keyboard-shortcuts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Keyboard shortcuts
33
intro: 'You can use keyboard shortcuts in {% data variables.product.prodname_desktop %}.'
44
redirect_from:
5-
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts-in-github-desktop/
5+
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts-in-github-desktop
66
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts
77
- /desktop/installing-and-configuring-github-desktop/keyboard-shortcuts
88
versions:

content/developers/github-marketplace/selling-your-app-on-github-marketplace/receiving-payment-for-app-purchases.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: Receiving payment for app purchases
33
intro: 'At the end of each month, you''ll receive payment for your {% data variables.product.prodname_marketplace %} listing.'
44
redirect_from:
5-
- /apps/adding-integrations/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing/
6-
- /apps/marketplace/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing/
7-
- /apps/marketplace/pricing-payments-and-free-trials/receiving-payment-for-a-github-marketplace-listing/
8-
- /apps/marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings/
5+
- /apps/adding-integrations/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing
6+
- /apps/marketplace/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing
7+
- /apps/marketplace/pricing-payments-and-free-trials/receiving-payment-for-a-github-marketplace-listing
8+
- /apps/marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings
99
- /marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings
1010
- /developers/github-marketplace/receiving-payment-for-app-purchases
1111
versions:

content/education/explore-the-benefits-of-teaching-and-learning-with-github-education/use-github-for-your-schoolwork/why-wasnt-my-application-for-a-student-developer-pack-approved.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ intro: 'Review common reasons that applications for the {% data variables.produc
44
redirect_from:
55
- /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
66
- /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
7-
- /articles/why-was-my-application-for-a-student-developer-pack-denied/
7+
- /articles/why-was-my-application-for-a-student-developer-pack-denied
88
- /articles/why-wasn-t-my-application-for-a-student-developer-pack-approved
99
- /articles/why-wasnt-my-application-for-a-student-developer-pack-approved
1010
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved

content/education/explore-the-benefits-of-teaching-and-learning-with-github-education/use-github-in-your-classroom-and-research/apply-for-an-educator-or-researcher-discount.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ intro: 'If you''re an educator or a researcher, you can apply to receive {% data
44
redirect_from:
55
- /education/teach-and-learn-with-github-education/apply-for-an-educator-or-researcher-discount
66
- /github/teaching-and-learning-with-github-education/applying-for-an-educator-or-researcher-discount
7-
- /articles/applying-for-a-classroom-discount/
8-
- /articles/applying-for-a-discount-for-your-school-club/
9-
- /articles/applying-for-an-academic-research-discount/
10-
- /articles/applying-for-a-discount-for-your-first-robotics-team/
7+
- /articles/applying-for-a-classroom-discount
8+
- /articles/applying-for-a-discount-for-your-school-club
9+
- /articles/applying-for-an-academic-research-discount
10+
- /articles/applying-for-a-discount-for-your-first-robotics-team
1111
- /articles/applying-for-an-educator-or-researcher-discount
1212
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/apply-for-an-educator-or-researcher-discount
1313
versions:

content/education/explore-the-benefits-of-teaching-and-learning-with-github-education/use-github-in-your-classroom-and-research/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ intro: Review common reasons that applications for an educator or researcher dis
44
redirect_from:
55
- /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
66
- /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
7-
- /articles/why-was-my-application-for-an-educator-or-researcher-discount-denied/
7+
- /articles/why-was-my-application-for-an-educator-or-researcher-discount-denied
88
- /articles/why-wasn-t-my-application-for-an-educator-or-researcher-discount-approved
99
- /articles/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
1010
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved

content/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: About custom domains and GitHub Pages
33
intro: '{% data variables.product.prodname_pages %} supports using custom domains, or changing the root of your site''s URL from the default, like `octocat.github.io`, to any domain you own.'
44
redirect_from:
5-
- /articles/about-custom-domains-for-github-pages-sites/
6-
- /articles/about-supported-custom-domains/
7-
- /articles/custom-domain-redirects-for-your-github-pages-site/
5+
- /articles/about-custom-domains-for-github-pages-sites
6+
- /articles/about-supported-custom-domains
7+
- /articles/custom-domain-redirects-for-your-github-pages-site
88
- /articles/about-custom-domains-and-github-pages
99
- /github/working-with-github-pages/about-custom-domains-and-github-pages
1010
product: '{% data reusables.gated-features.pages %}'
@@ -58,7 +58,7 @@ An apex domain is configured with an `A`, `ALIAS`, or `ANAME` record through you
5858

5959
## Securing the custom domain for your {% data variables.product.prodname_pages %} site
6060

61-
{% data reusables.pages.secure-your-domain %} For more information, see "[Verifying your custom domain for {% data variables.product.prodname_pages %}](/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages)" and "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/articles/managing-a-custom-domain-for-your-github-pages-site)."
61+
{% data reusables.pages.secure-your-domain %} For more information, see "[Verifying your custom domain for {% data variables.product.prodname_pages %}](/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages)" and "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/articles/managing-a-custom-domain-for-your-github-pages-site)."
6262

6363
There are a couple of reasons your site might be automatically disabled.
6464

content/pages/configuring-a-custom-domain-for-your-github-pages-site/index.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: Configuring a custom domain for your GitHub Pages site
33
intro: 'You can customize the domain name of your {% data variables.product.prodname_pages %} site.'
44
redirect_from:
5-
- /articles/tips-for-configuring-an-a-record-with-your-dns-provider/
6-
- /articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/
7-
- /articles/configuring-an-a-record-with-your-dns-provider/
8-
- /articles/using-a-custom-domain-with-github-pages/
9-
- /articles/tips-for-configuring-a-cname-record/
10-
- /articles/setting-up-a-custom-domain-with-pages/
11-
- /articles/setting-up-a-custom-domain-with-github-pages/
5+
- /articles/tips-for-configuring-an-a-record-with-your-dns-provider
6+
- /articles/adding-or-removing-a-custom-domain-for-your-github-pages-site
7+
- /articles/configuring-an-a-record-with-your-dns-provider
8+
- /articles/using-a-custom-domain-with-github-pages
9+
- /articles/tips-for-configuring-a-cname-record
10+
- /articles/setting-up-a-custom-domain-with-pages
11+
- /articles/setting-up-a-custom-domain-with-github-pages
1212
- /articles/configuring-a-custom-domain-for-your-github-pages-site
1313
- /github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site
1414
product: '{% data reusables.gated-features.pages %}'
@@ -24,4 +24,3 @@ children:
2424
- /troubleshooting-custom-domains-and-github-pages
2525
shortTitle: Configure a custom domain
2626
---
27-

content/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: Managing a custom domain for your GitHub Pages site
33
intro: 'You can set up or update certain DNS records and your repository settings to point the default domain for your {% data variables.product.prodname_pages %} site to a custom domain.'
44
redirect_from:
5-
- /articles/quick-start-setting-up-a-custom-domain/
6-
- /articles/setting-up-an-apex-domain/
7-
- /articles/setting-up-a-www-subdomain/
8-
- /articles/setting-up-a-custom-domain/
9-
- /articles/setting-up-an-apex-domain-and-www-subdomain/
10-
- /articles/adding-a-cname-file-to-your-repository/
11-
- /articles/setting-up-your-pages-site-repository/
5+
- /articles/quick-start-setting-up-a-custom-domain
6+
- /articles/setting-up-an-apex-domain
7+
- /articles/setting-up-a-www-subdomain
8+
- /articles/setting-up-a-custom-domain
9+
- /articles/setting-up-an-apex-domain-and-www-subdomain
10+
- /articles/adding-a-cname-file-to-your-repository
11+
- /articles/setting-up-your-pages-site-repository
1212
- /articles/managing-a-custom-domain-for-your-github-pages-site
1313
- /github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site
1414
product: '{% data reusables.gated-features.pages %}'
@@ -139,7 +139,7 @@ After you configure the apex domain, you must configure a CNAME record with your
139139
140140
## Securing your custom domain
141141
142-
{% data reusables.pages.secure-your-domain %} For more information, see "[Verifying your custom domain for {% data variables.product.prodname_pages %}](/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages)."
142+
{% data reusables.pages.secure-your-domain %} For more information, see "[Verifying your custom domain for {% data variables.product.prodname_pages %}](/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages)."
143143
144144
## Further reading
145145

content/pages/configuring-a-custom-domain-for-your-github-pages-site/troubleshooting-custom-domains-and-github-pages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Troubleshooting custom domains and GitHub Pages
33
intro: 'You can check for common errors to resolve issues with custom domains or HTTPS for your {% data variables.product.prodname_pages %} site.'
44
redirect_from:
5-
- /articles/my-custom-domain-isn-t-working/
6-
- /articles/custom-domain-isn-t-working/
7-
- /articles/troubleshooting-custom-domains/
5+
- /articles/my-custom-domain-isn-t-working
6+
- /articles/custom-domain-isn-t-working
7+
- /articles/troubleshooting-custom-domains
88
- /articles/troubleshooting-custom-domains-and-github-pages
99
- /github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages
1010
product: '{% data reusables.gated-features.pages %}'

content/pages/index.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ title: GitHub Pages Documentation
33
shortTitle: GitHub Pages
44
intro: 'You can create a website directly from a repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}.'
55
redirect_from:
6-
- /categories/20/articles/
7-
- /categories/95/articles/
8-
- /categories/github-pages-features/
9-
- /pages/
10-
- /categories/96/articles/
11-
- /categories/github-pages-troubleshooting/
6+
- /categories/20/articles
7+
- /categories/95/articles
8+
- /categories/github-pages-features
9+
- /categories/96/articles
10+
- /categories/github-pages-troubleshooting
1211
- /categories/working-with-github-pages
1312
- /github/working-with-github-pages
1413
product: '{% data reusables.gated-features.pages %}'
@@ -25,4 +24,3 @@ children:
2524
- /setting-up-a-github-pages-site-with-jekyll
2625
- /configuring-a-custom-domain-for-your-github-pages-site
2726
---
28-

content/pages/setting-up-a-github-pages-site-with-jekyll/about-jekyll-build-errors-for-github-pages-sites.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: About Jekyll build errors for GitHub Pages sites
33
intro: 'If Jekyll encounters an error building your {% data variables.product.prodname_pages %} site locally or on {% data variables.product.product_name %}, you''ll receive an error message with more information.'
44
redirect_from:
5-
- /articles/viewing-jekyll-build-error-messages/
6-
- /articles/generic-jekyll-build-failures/
5+
- /articles/viewing-jekyll-build-error-messages
6+
- /articles/generic-jekyll-build-failures
77
- /articles/about-jekyll-build-errors-for-github-pages-sites
88
- /github/working-with-github-pages/about-jekyll-build-errors-for-github-pages-sites
99
product: '{% data reusables.gated-features.pages %}'

content/pages/setting-up-a-github-pages-site-with-jekyll/adding-a-theme-to-your-github-pages-site-using-jekyll.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Adding a theme to your GitHub Pages site using Jekyll
33
intro: You can personalize your Jekyll site by adding and customizing a theme.
44
redirect_from:
5-
- /articles/customizing-css-and-html-in-your-jekyll-theme/
6-
- /articles/adding-a-jekyll-theme-to-your-github-pages-site/
5+
- /articles/customizing-css-and-html-in-your-jekyll-theme
6+
- /articles/adding-a-jekyll-theme-to-your-github-pages-site
77
- /articles/adding-a-theme-to-your-github-pages-site-using-jekyll
88
- /github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll
99
product: '{% data reusables.gated-features.pages %}'
@@ -27,7 +27,7 @@ People with write permissions for a repository can add a theme to a {% data vari
2727
{% data reusables.pages.navigate-publishing-source %}
2828
2. Navigate to *_config.yml*.
2929
{% data reusables.repositories.edit-file %}
30-
4. Add a new line to the file for the theme name.
30+
4. Add a new line to the file for the theme name.
3131
- To use a supported theme, type `theme: THEME-NAME`, replacing _THEME-NAME_ with the name of the theme as shown in the README of the theme's repository. For a list of supported themes, see "[Supported themes](https://pages.github.com/themes/)" on the {% data variables.product.prodname_pages %} site.
3232
![Supported theme in config file](/assets/images/help/pages/add-theme-to-config-file.png)
3333
- To use any other Jekyll theme hosted on {% data variables.product.prodname_dotcom %}, type `remote_theme: THEME-NAME`, replacing THEME-NAME with the name of the theme as shown in the README of the theme's repository.

content/pages/setting-up-a-github-pages-site-with-jekyll/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Setting a Markdown processor for your GitHub Pages site using Jekyll
33
intro: 'You can choose a Markdown processor to determine how Markdown is rendered on your {% data variables.product.prodname_pages %} site.'
44
redirect_from:
5-
- /articles/migrating-your-pages-site-from-maruku/
6-
- /articles/updating-your-markdown-processor-to-kramdown/
5+
- /articles/migrating-your-pages-site-from-maruku
6+
- /articles/updating-your-markdown-processor-to-kramdown
77
- /articles/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll
88
- /github/working-with-github-pages/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll
99
product: '{% data reusables.gated-features.pages %}'

0 commit comments

Comments
 (0)