Skip to content

Commit

Permalink
check for redirect orphans (#23330)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
peterbe authored Dec 16, 2021
1 parent 17e33bb commit ed48eab
Show file tree
Hide file tree
Showing 23 changed files with 116 additions and 228 deletions.
2 changes: 0 additions & 2 deletions content/admin/advanced-security/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ children:
- /enabling-github-advanced-security-for-your-enterprise
- /configuring-code-scanning-for-your-appliance
- /configuring-secret-scanning-for-your-appliance
- /viewing-your-github-advanced-security-usage
- /overview-of-github-advanced-security-deployment
- /deploying-github-advanced-security-in-your-enterprise
---

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Managing disruptive comments
intro: 'You can {% ifversion fpt or ghec %}hide, edit,{% else %}edit{% endif %} or delete comments on issues, pull requests, and commits.'
redirect_from:
- /articles/editing-a-comment/
- /articles/deleting-a-comment/
- /articles/editing-a-comment
- /articles/deleting-a-comment
- /articles/managing-disruptive-comments
- /github/building-a-strong-community/managing-disruptive-comments
versions:
Expand All @@ -18,7 +18,7 @@ shortTitle: Manage comments

## Hiding a comment

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

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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Keyboard shortcuts
intro: 'You can use keyboard shortcuts in {% data variables.product.prodname_desktop %}.'
redirect_from:
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts-in-github-desktop/
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts-in-github-desktop
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts
- /desktop/installing-and-configuring-github-desktop/keyboard-shortcuts
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: Receiving payment for app purchases
intro: 'At the end of each month, you''ll receive payment for your {% data variables.product.prodname_marketplace %} listing.'
redirect_from:
- /apps/adding-integrations/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing/
- /apps/marketplace/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing/
- /apps/marketplace/pricing-payments-and-free-trials/receiving-payment-for-a-github-marketplace-listing/
- /apps/marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings/
- /apps/adding-integrations/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing
- /apps/marketplace/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing
- /apps/marketplace/pricing-payments-and-free-trials/receiving-payment-for-a-github-marketplace-listing
- /apps/marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings
- /marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings
- /developers/github-marketplace/receiving-payment-for-app-purchases
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ intro: 'Review common reasons that applications for the {% data variables.produc
redirect_from:
- /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
- /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
- /articles/why-was-my-application-for-a-student-developer-pack-denied/
- /articles/why-was-my-application-for-a-student-developer-pack-denied
- /articles/why-wasn-t-my-application-for-a-student-developer-pack-approved
- /articles/why-wasnt-my-application-for-a-student-developer-pack-approved
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ intro: 'If you''re an educator or a researcher, you can apply to receive {% data
redirect_from:
- /education/teach-and-learn-with-github-education/apply-for-an-educator-or-researcher-discount
- /github/teaching-and-learning-with-github-education/applying-for-an-educator-or-researcher-discount
- /articles/applying-for-a-classroom-discount/
- /articles/applying-for-a-discount-for-your-school-club/
- /articles/applying-for-an-academic-research-discount/
- /articles/applying-for-a-discount-for-your-first-robotics-team/
- /articles/applying-for-a-classroom-discount
- /articles/applying-for-a-discount-for-your-school-club
- /articles/applying-for-an-academic-research-discount
- /articles/applying-for-a-discount-for-your-first-robotics-team
- /articles/applying-for-an-educator-or-researcher-discount
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/apply-for-an-educator-or-researcher-discount
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ intro: Review common reasons that applications for an educator or researcher dis
redirect_from:
- /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
- /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
- /articles/why-was-my-application-for-an-educator-or-researcher-discount-denied/
- /articles/why-was-my-application-for-an-educator-or-researcher-discount-denied
- /articles/why-wasn-t-my-application-for-an-educator-or-researcher-discount-approved
- /articles/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: About custom domains and GitHub Pages
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.'
redirect_from:
- /articles/about-custom-domains-for-github-pages-sites/
- /articles/about-supported-custom-domains/
- /articles/custom-domain-redirects-for-your-github-pages-site/
- /articles/about-custom-domains-for-github-pages-sites
- /articles/about-supported-custom-domains
- /articles/custom-domain-redirects-for-your-github-pages-site
- /articles/about-custom-domains-and-github-pages
- /github/working-with-github-pages/about-custom-domains-and-github-pages
product: '{% data reusables.gated-features.pages %}'
Expand Down Expand Up @@ -58,7 +58,7 @@ An apex domain is configured with an `A`, `ALIAS`, or `ANAME` record through you

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

{% 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)."
{% 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)."

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
title: Configuring a custom domain for your GitHub Pages site
intro: 'You can customize the domain name of your {% data variables.product.prodname_pages %} site.'
redirect_from:
- /articles/tips-for-configuring-an-a-record-with-your-dns-provider/
- /articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/
- /articles/configuring-an-a-record-with-your-dns-provider/
- /articles/using-a-custom-domain-with-github-pages/
- /articles/tips-for-configuring-a-cname-record/
- /articles/setting-up-a-custom-domain-with-pages/
- /articles/setting-up-a-custom-domain-with-github-pages/
- /articles/tips-for-configuring-an-a-record-with-your-dns-provider
- /articles/adding-or-removing-a-custom-domain-for-your-github-pages-site
- /articles/configuring-an-a-record-with-your-dns-provider
- /articles/using-a-custom-domain-with-github-pages
- /articles/tips-for-configuring-a-cname-record
- /articles/setting-up-a-custom-domain-with-pages
- /articles/setting-up-a-custom-domain-with-github-pages
- /articles/configuring-a-custom-domain-for-your-github-pages-site
- /github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site
product: '{% data reusables.gated-features.pages %}'
Expand All @@ -24,4 +24,3 @@ children:
- /troubleshooting-custom-domains-and-github-pages
shortTitle: Configure a custom domain
---

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
title: Managing a custom domain for your GitHub Pages site
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.'
redirect_from:
- /articles/quick-start-setting-up-a-custom-domain/
- /articles/setting-up-an-apex-domain/
- /articles/setting-up-a-www-subdomain/
- /articles/setting-up-a-custom-domain/
- /articles/setting-up-an-apex-domain-and-www-subdomain/
- /articles/adding-a-cname-file-to-your-repository/
- /articles/setting-up-your-pages-site-repository/
- /articles/quick-start-setting-up-a-custom-domain
- /articles/setting-up-an-apex-domain
- /articles/setting-up-a-www-subdomain
- /articles/setting-up-a-custom-domain
- /articles/setting-up-an-apex-domain-and-www-subdomain
- /articles/adding-a-cname-file-to-your-repository
- /articles/setting-up-your-pages-site-repository
- /articles/managing-a-custom-domain-for-your-github-pages-site
- /github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site
product: '{% data reusables.gated-features.pages %}'
Expand Down Expand Up @@ -139,7 +139,7 @@ After you configure the apex domain, you must configure a CNAME record with your
## Securing your custom domain
{% 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)."
{% 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)."
## Further reading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: Troubleshooting custom domains and GitHub Pages
intro: 'You can check for common errors to resolve issues with custom domains or HTTPS for your {% data variables.product.prodname_pages %} site.'
redirect_from:
- /articles/my-custom-domain-isn-t-working/
- /articles/custom-domain-isn-t-working/
- /articles/troubleshooting-custom-domains/
- /articles/my-custom-domain-isn-t-working
- /articles/custom-domain-isn-t-working
- /articles/troubleshooting-custom-domains
- /articles/troubleshooting-custom-domains-and-github-pages
- /github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages
product: '{% data reusables.gated-features.pages %}'
Expand Down
12 changes: 5 additions & 7 deletions content/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ title: GitHub Pages Documentation
shortTitle: GitHub Pages
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 %}.'
redirect_from:
- /categories/20/articles/
- /categories/95/articles/
- /categories/github-pages-features/
- /pages/
- /categories/96/articles/
- /categories/github-pages-troubleshooting/
- /categories/20/articles
- /categories/95/articles
- /categories/github-pages-features
- /categories/96/articles
- /categories/github-pages-troubleshooting
- /categories/working-with-github-pages
- /github/working-with-github-pages
product: '{% data reusables.gated-features.pages %}'
Expand All @@ -25,4 +24,3 @@ children:
- /setting-up-a-github-pages-site-with-jekyll
- /configuring-a-custom-domain-for-your-github-pages-site
---

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: About Jekyll build errors for GitHub Pages sites
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.'
redirect_from:
- /articles/viewing-jekyll-build-error-messages/
- /articles/generic-jekyll-build-failures/
- /articles/viewing-jekyll-build-error-messages
- /articles/generic-jekyll-build-failures
- /articles/about-jekyll-build-errors-for-github-pages-sites
- /github/working-with-github-pages/about-jekyll-build-errors-for-github-pages-sites
product: '{% data reusables.gated-features.pages %}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Adding a theme to your GitHub Pages site using Jekyll
intro: You can personalize your Jekyll site by adding and customizing a theme.
redirect_from:
- /articles/customizing-css-and-html-in-your-jekyll-theme/
- /articles/adding-a-jekyll-theme-to-your-github-pages-site/
- /articles/customizing-css-and-html-in-your-jekyll-theme
- /articles/adding-a-jekyll-theme-to-your-github-pages-site
- /articles/adding-a-theme-to-your-github-pages-site-using-jekyll
- /github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll
product: '{% data reusables.gated-features.pages %}'
Expand All @@ -27,7 +27,7 @@ People with write permissions for a repository can add a theme to a {% data vari
{% data reusables.pages.navigate-publishing-source %}
2. Navigate to *_config.yml*.
{% data reusables.repositories.edit-file %}
4. Add a new line to the file for the theme name.
4. Add a new line to the file for the theme name.
- 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.
![Supported theme in config file](/assets/images/help/pages/add-theme-to-config-file.png)
- 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Setting a Markdown processor for your GitHub Pages site using Jekyll
intro: 'You can choose a Markdown processor to determine how Markdown is rendered on your {% data variables.product.prodname_pages %} site.'
redirect_from:
- /articles/migrating-your-pages-site-from-maruku/
- /articles/updating-your-markdown-processor-to-kramdown/
- /articles/migrating-your-pages-site-from-maruku
- /articles/updating-your-markdown-processor-to-kramdown
- /articles/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll
- /github/working-with-github-pages/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll
product: '{% data reusables.gated-features.pages %}'
Expand Down
Loading

0 comments on commit ed48eab

Please sign in to comment.