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
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
---
|
||||
title: Viewing your GitHub Advanced Security usage
|
||||
intro: 'You can view usage of your {% data variables.product.prodname_GH_advanced_security %} license.'
|
||||
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
product: '{% data reusables.gated-features.ghas %}'
|
||||
versions:
|
||||
ghes: '>=3.1'
|
||||
type: how_to
|
||||
topics:
|
||||
- Advanced Security
|
||||
- Enterprise
|
||||
- Licensing
|
||||
shortTitle: View Advanced Security usage
|
||||
---
|
||||
|
||||
## About licenses for {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
{% data reusables.advanced-security.about-ghas-license-seats %} For more information, see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."
|
||||
|
||||
## Viewing license usage for {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
You can check how many seats your license includes and how many seats are currently in use.
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.license-tab %}
|
||||
The "{% data variables.product.prodname_GH_advanced_security %}" section shows details of the current usage. You can see the total number of seats used, as well as a table with the number of committers and unique committers for each organization.
|
||||

|
||||
5. Optionally, click the name of an organization where you are an owner to display the security and analysis settings for the organization.
|
||||

|
||||
6. On the "Security & analysis" settings page, scroll to the "{% data variables.product.prodname_GH_advanced_security %} repositories" section to see a detailed breakdown of usage by repository for this organization.
|
||||

|
||||
For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."
|
||||
@@ -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:
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 %}'
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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 %}'
|
||||
@@ -24,4 +24,3 @@ children:
|
||||
- /troubleshooting-custom-domains-and-github-pages
|
||||
shortTitle: Configure a custom domain
|
||||
---
|
||||
|
||||
|
||||
@@ -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 %}'
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 %}'
|
||||
|
||||
@@ -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 %}'
|
||||
@@ -25,4 +24,3 @@ children:
|
||||
- /setting-up-a-github-pages-site-with-jekyll
|
||||
- /configuring-a-custom-domain-for-your-github-pages-site
|
||||
---
|
||||
|
||||
|
||||
@@ -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 %}'
|
||||
|
||||
@@ -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 %}'
|
||||
@@ -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.
|
||||

|
||||
- 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.
|
||||
|
||||
@@ -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 %}'
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
title: Troubleshooting Jekyll build errors for GitHub Pages sites
|
||||
intro: 'You can use Jekyll build error messages to troubleshoot problems with your {% data variables.product.prodname_pages %} site.'
|
||||
redirect_from:
|
||||
- /articles/page-build-failed-missing-docs-folder/
|
||||
- /articles/page-build-failed-invalid-submodule/
|
||||
- /articles/page-build-failed-missing-submodule/
|
||||
- /articles/page-build-failed-markdown-errors/
|
||||
- /articles/page-build-failed-config-file-error/
|
||||
- /articles/page-build-failed-unknown-tag-error/
|
||||
- /articles/page-build-failed-tag-not-properly-terminated/
|
||||
- /articles/page-build-failed-tag-not-properly-closed/
|
||||
- /articles/page-build-failed-file-does-not-exist-in-includes-directory/
|
||||
- /articles/page-build-failed-file-is-a-symlink/
|
||||
- /articles/page-build-failed-symlink-does-not-exist-within-your-sites-repository/
|
||||
- /articles/page-build-failed-file-is-not-properly-utf-8-encoded/
|
||||
- /articles/page-build-failed-invalid-post-date/
|
||||
- /articles/page-build-failed-invalid-sass-or-scss/
|
||||
- /articles/page-build-failed-invalid-highlighter-language/
|
||||
- /articles/page-build-failed-relative-permalinks-configured/
|
||||
- /articles/page-build-failed-syntax-error-in-for-loop/
|
||||
- /articles/page-build-failed-invalid-yaml-in-data-file/
|
||||
- /articles/page-build-failed-date-is-not-a-valid-datetime/
|
||||
- /articles/troubleshooting-github-pages-builds/
|
||||
- /articles/troubleshooting-jekyll-builds/
|
||||
- /articles/page-build-failed-missing-docs-folder
|
||||
- /articles/page-build-failed-invalid-submodule
|
||||
- /articles/page-build-failed-missing-submodule
|
||||
- /articles/page-build-failed-markdown-errors
|
||||
- /articles/page-build-failed-config-file-error
|
||||
- /articles/page-build-failed-unknown-tag-error
|
||||
- /articles/page-build-failed-tag-not-properly-terminated
|
||||
- /articles/page-build-failed-tag-not-properly-closed
|
||||
- /articles/page-build-failed-file-does-not-exist-in-includes-directory
|
||||
- /articles/page-build-failed-file-is-a-symlink
|
||||
- /articles/page-build-failed-symlink-does-not-exist-within-your-sites-repository
|
||||
- /articles/page-build-failed-file-is-not-properly-utf-8-encoded
|
||||
- /articles/page-build-failed-invalid-post-date
|
||||
- /articles/page-build-failed-invalid-sass-or-scss
|
||||
- /articles/page-build-failed-invalid-highlighter-language
|
||||
- /articles/page-build-failed-relative-permalinks-configured
|
||||
- /articles/page-build-failed-syntax-error-in-for-loop
|
||||
- /articles/page-build-failed-invalid-yaml-in-data-file
|
||||
- /articles/page-build-failed-date-is-not-a-valid-datetime
|
||||
- /articles/troubleshooting-github-pages-builds
|
||||
- /articles/troubleshooting-jekyll-builds
|
||||
- /articles/troubleshooting-jekyll-build-errors-for-github-pages-sites
|
||||
- /github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites
|
||||
product: '{% data reusables.gated-features.pages %}'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Guides
|
||||
intro: 'Learn about getting started with the REST API, authentication, and how to use the REST API for a variety of tasks.'
|
||||
redirect_from:
|
||||
- /guides/
|
||||
- /guides
|
||||
- /v3/guides
|
||||
versions:
|
||||
fpt: '*'
|
||||
|
||||
46
tests/content/redirect-orphans.js
Normal file
46
tests/content/redirect-orphans.js
Normal file
@@ -0,0 +1,46 @@
|
||||
import path from 'path'
|
||||
import { jest, beforeAll } from '@jest/globals'
|
||||
|
||||
import { loadPages } from '../../lib/page-data.js'
|
||||
import Permalink from '../../lib/permalink.js'
|
||||
|
||||
describe('redirect orphans', () => {
|
||||
let pageList
|
||||
|
||||
// Because calling `loadPages` will trigger a warmup, this can potentially
|
||||
// be very slow in CI. So we need a timeout.
|
||||
jest.setTimeout(60 * 1000)
|
||||
|
||||
beforeAll(async () => {
|
||||
// Only doing English because they're the only files we do PRs for.
|
||||
pageList = (await loadPages()).filter((page) => page.languageCode === 'en')
|
||||
})
|
||||
|
||||
test('no page is a redirect in another file', () => {
|
||||
const redirectFroms = new Map()
|
||||
for (const page of pageList) {
|
||||
for (const redirectFrom of page.redirect_from || []) {
|
||||
if (redirectFrom.endsWith('/') && redirectFrom.startsWith('/')) {
|
||||
console.warn(
|
||||
`In ${path.join(
|
||||
'content',
|
||||
page.relativePath
|
||||
)} redirect entry (${redirectFrom}) has a trailing slash`
|
||||
)
|
||||
}
|
||||
redirectFroms.set(redirectFrom, page.relativePath)
|
||||
}
|
||||
}
|
||||
|
||||
const errors = []
|
||||
for (const page of pageList) {
|
||||
const asPath = Permalink.relativePathToSuffix(page.relativePath)
|
||||
if (redirectFroms.has(asPath)) {
|
||||
errors.push(
|
||||
`${asPath} is a redirect_from in ${path.join('content', redirectFroms.get(asPath))}`
|
||||
)
|
||||
}
|
||||
}
|
||||
expect(errors.length, errors.join('\n')).toBe(0)
|
||||
})
|
||||
})
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
title: Visualizar tu uso de GitHub Advanced Security
|
||||
intro: 'Puedes ver el uso de tu licencia de {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
product: '{% data reusables.gated-features.ghas %}'
|
||||
versions:
|
||||
ghes: '>=3.1'
|
||||
type: how_to
|
||||
topics:
|
||||
- Advanced Security
|
||||
- Enterprise
|
||||
- Licensing
|
||||
shortTitle: Visualizar el uso de la Seguridad Avanzada
|
||||
---
|
||||
|
||||
## Acerca de las licencias para {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
{% data reusables.advanced-security.about-ghas-license-seats %} Para obtener más información, consulta "[Acerca de la facturación para {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)".
|
||||
|
||||
## Visualizar el uso de licencia para la {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
Puedes verificar cuántas plazas incluye tu licencia y cuántas plazas se utilizan actualmente.
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.license-tab %}
|
||||
La sección de "{% data variables.product.prodname_GH_advanced_security %}" muestra los detalles del uso actual. Puedes ver la cantidad total de plazas utilizadas, así como una tabla con la cantidad de confirmantes y confirmantes únicos para cada organización. 
|
||||
5. Opcionalmente, haz clic en el nombre de una organización que te pertenezca para mostrar la configuración de seguridad y análisis para la organización. 
|
||||
6. En la página de configuración de "Seguridad & análisis", desplázate hacia la sección de "repositorios de {% data variables.product.prodname_GH_advanced_security %}" para ver un resumen detallado del uso de este repositorio en esta organización.  Para obtener más información, consulta la sección "[Administrar la configuración de seguridad y análisis de tu organización](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)".
|
||||
@@ -1,33 +0,0 @@
|
||||
---
|
||||
title: Viewing your GitHub Advanced Security usage
|
||||
intro: 'You can view usage of your {% data variables.product.prodname_GH_advanced_security %} license.'
|
||||
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
product: '{% data reusables.gated-features.ghas %}'
|
||||
versions:
|
||||
ghes: '>=3.1'
|
||||
type: how_to
|
||||
topics:
|
||||
- Advanced Security
|
||||
- Enterprise
|
||||
- Licensing
|
||||
shortTitle: View Advanced Security usage
|
||||
---
|
||||
|
||||
## About licenses for {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
{% data reusables.advanced-security.about-ghas-license-seats %} For more information, see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."
|
||||
|
||||
## Viewing license usage for {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
You can check how many seats your license includes and how many seats are currently in use.
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.license-tab %}
|
||||
The "{% data variables.product.prodname_GH_advanced_security %}" section shows details of the current usage. You can see the total number of seats used, as well as a table with the number of committers and unique committers for each organization.
|
||||

|
||||
5. Optionally, click the name of an organization where you are an owner to display the security and analysis settings for the organization.
|
||||

|
||||
6. On the "Security & analysis" settings page, scroll to the "{% data variables.product.prodname_GH_advanced_security %} repositories" section to see a detailed breakdown of usage by repository for this organization.
|
||||

|
||||
For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
title: Visualizar o seu uso do GitHub Advanced Security
|
||||
intro: 'Você pode visualizar o uso de sua licença do {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
product: '{% data reusables.gated-features.ghas %}'
|
||||
versions:
|
||||
ghes: '>=3.1'
|
||||
type: how_to
|
||||
topics:
|
||||
- Advanced Security
|
||||
- Enterprise
|
||||
- Licensing
|
||||
shortTitle: Visualizar o uso avançado de segurança
|
||||
---
|
||||
|
||||
## Sobre as licenças para {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
{% data reusables.advanced-security.about-ghas-license-seats %} Para obter mais informações, consulte "[Sobre a cobrança do {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)".
|
||||
|
||||
## Visualizar o uso de licença para {% data variables.product.prodname_GH_advanced_security %}
|
||||
|
||||
Você pode verificar quantas estações a sua licença inclui e quantas estações estão atualmente em uso.
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.license-tab %}
|
||||
A seção "{% data variables.product.prodname_GH_advanced_security %}" mostra os detalhes do uso atual. Você pode ver o número total de estações usadas, bem como uma tabela com o número de committers e committers únicos para cada organização. 
|
||||
5. Opcionalmente, clique no nome de uma organização em que você é um proprietário para exibir as configurações de segurança e análise para a organização. 
|
||||
6. Na página de configurações "Análise de & segurança" desça até a seção "repositórios de {% data variables.product.prodname_GH_advanced_security %}" para ver uma descrição detalhada do uso por repositório para esta organização.  Para obter mais informações, consulte "[Gerenciar configurações de segurança e análise para a sua organização](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)".
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
title: 查看您的 GitHub 高级安全使用情况
|
||||
intro: '您可以查看 {% data variables.product.prodname_GH_advanced_security %} 许可证的使用情况。'
|
||||
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
|
||||
product: '{% data reusables.gated-features.ghas %}'
|
||||
versions:
|
||||
ghes: '>=3.1'
|
||||
type: how_to
|
||||
topics:
|
||||
- Advanced Security
|
||||
- Enterprise
|
||||
- Licensing
|
||||
shortTitle: 查看高级安全用法
|
||||
---
|
||||
|
||||
## 关于 {% data variables.product.prodname_GH_advanced_security %} 的许可
|
||||
|
||||
{% data reusables.advanced-security.about-ghas-license-seats %} 更多信息请参阅“[关于 {% data variables.product.prodname_GH_advanced_security %} 的计费](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)”。
|
||||
|
||||
## 查看 {% data variables.product.prodname_GH_advanced_security %} 的许可证使用情况
|
||||
|
||||
您可以检查您的许可证包含多少个座位以及当前使用的座位数。
|
||||
|
||||
{% data reusables.enterprise-accounts.access-enterprise %}
|
||||
{% data reusables.enterprise-accounts.settings-tab %}
|
||||
{% data reusables.enterprise-accounts.license-tab %}
|
||||
“{% data variables.product.prodname_GH_advanced_security %}”部分显示了当前使用详情。 您可以查看已使用的席位总数,以及一份表格,其中包含每个组织的提交者数量和唯一提交者。 
|
||||
5. (可选)单击您是所有者的组织的名称,以显示组织的安全和分析设置。 
|
||||
6. 在“Security & analysis(安全性和分析)”设置页面上,滚动到“{% data variables.product.prodname_GH_advanced_security %} 仓库”部分以查看此组织的仓库使用明细。  更多信息请参阅“[管理组织的安全性和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)”。
|
||||
Reference in New Issue
Block a user