From dbdb8868a817bba7fa085bc897b913435c5cad07 Mon Sep 17 00:00:00 2001 From: pr0PM Date: Tue, 10 Nov 2020 19:15:54 +0530 Subject: [PATCH 1/9] Fixes #1190 --- content/developers/overview/about-githubs-apis.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/developers/overview/about-githubs-apis.md b/content/developers/overview/about-githubs-apis.md index 39e74b19f1e3..656d13605ec8 100644 --- a/content/developers/overview/about-githubs-apis.md +++ b/content/developers/overview/about-githubs-apis.md @@ -9,11 +9,9 @@ versions: github-ae: '*' --- -There are two stable versions of the GitHub API: the [REST API](/v3/) and the [GraphQL API](/v4/). - -When using the REST API, we encourage you to [request v3 via the `Accept` header](/v3/media/#request-specific-version). - -For information on using the GraphQL API, see the [v4 docs](/v4/). +You can use the stable GitHub API via: +- [GraphQL API](https://docs.github.com/en/free-pro-team@latest/v4) +- [REST API](https://docs.github.com/en/free-pro-team@latest/v3) where we encourage you to [request v3 via the `Accept` header.](https://docs.github.com/en/free-pro-team@latest/v3/media/#request-specific-version) ## Deprecated versions From 486973a5a34fc17888d1af4e8aa5ae34d5ea8e86 Mon Sep 17 00:00:00 2001 From: Diego Assencio Date: Tue, 1 Dec 2020 13:34:00 +0100 Subject: [PATCH 2/9] Add missing space --- content/admin/overview/about-enterprise-accounts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/admin/overview/about-enterprise-accounts.md b/content/admin/overview/about-enterprise-accounts.md index 02c92ad31de7..26731d2fac88 100644 --- a/content/admin/overview/about-enterprise-accounts.md +++ b/content/admin/overview/about-enterprise-accounts.md @@ -15,7 +15,7 @@ An enterprise account allows you to manage multiple organizations{% if enterpris - Member access and management (organization members, outside collaborators){% if enterpriseServerVersions contains currentVersion %} - Billing and usage ({% data variables.product.prodname_ghe_server %} instances, user licenses, {% data variables.large_files.product_name_short %} packs){% endif %} -- Security{% if enterpriseServerVersions contains currentVersion %}(single sign-on, two factor authentication) +- Security {% if enterpriseServerVersions contains currentVersion %}(single sign-on, two factor authentication) - Requests {% if enterpriseServerVersions contains currentVersion %}and support bundle sharing {% endif %}with {% data variables.contact.enterprise_support %}{% endif %} {% if enterpriseServerVersions contains currentVersion %}{% data reusables.enterprise-accounts.enterprise-accounts-billing %} For more information about managing your {% data variables.product.prodname_ghe_cloud %} subscription, see "[Viewing the subscription and usage for your enterprise account](/articles/viewing-the-subscription-and-usage-for-your-enterprise-account)." {% endif %}For more information about managing your {% data variables.product.product_name %} billing settings, see "[Managing billing for your enterprise](/admin/overview/managing-billing-for-your-enterprise)." From 891705583011e4bf8c81adcadf575599fefcafd8 Mon Sep 17 00:00:00 2001 From: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com> Date: Wed, 2 Dec 2020 16:01:51 -0600 Subject: [PATCH 3/9] Add entry for indentation to style guide (#16728) * Add entry for indentation * Update contributing/content-style-guide.md Co-authored-by: Laura Coursen Co-authored-by: Laura Coursen --- contributing/content-style-guide.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/contributing/content-style-guide.md b/contributing/content-style-guide.md index 7bdee3207c4f..1603764c1d10 100644 --- a/contributing/content-style-guide.md +++ b/contributing/content-style-guide.md @@ -12,6 +12,7 @@ These guidelines are specific to GitHub’s documentation. For general style que - [Code blocks](#code-blocks) - [Commands](#commands) - [Examples](#examples) + - [Indentation](#indentation) - [Headers](#headers) - [Images](#images) - [Alt text](#alt-text) @@ -129,6 +130,21 @@ schedule: - cron: "40 19 * * *" ``` +### Indentation + +In YAML examples, such as actions and workflow files, use two spaces to indent lines within nested lists and block sequences. + +- **Use:** + +```yaml + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} +``` + ## Headers Use H3 for headers, and H4 for subheaders. When referring to headers, surround the header name with quotation marks. From 4e1d62b91a424c9c345af5d941e047af9bb32fb0 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Wed, 2 Dec 2020 16:07:56 -0600 Subject: [PATCH 4/9] Remove free-pro-team support from Spanish translation of Insights doc (#16730) * Remove free-pro-team support from Spanish translation of Insights doc * Throw errors for mismatched products in non-English content pages as well --- lib/page.js | 2 +- tests/unit/page.js | 14 +++++++++++++- .../updating-github-insights.md | 1 - 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/page.js b/lib/page.js index c97e49470f7f..75cf90210e68 100644 --- a/lib/page.js +++ b/lib/page.js @@ -65,7 +65,7 @@ class Page { // only the homepage will not have this.parentProduct .filter(availableVersion => this.parentProduct && !this.parentProduct.versions.includes(availableVersion)) - if (versionsParentProductIsNotAvailableIn.length && this.languageCode === 'en') { + if (versionsParentProductIsNotAvailableIn.length) { throw new Error(`\`versions\` frontmatter in ${this.fullPath} contains ${versionsParentProductIsNotAvailableIn}, which ${this.parentProduct.id} product is not available in!`) } diff --git a/tests/unit/page.js b/tests/unit/page.js index 0f44158b09b3..5d1b46a0c3ad 100644 --- a/tests/unit/page.js +++ b/tests/unit/page.js @@ -389,7 +389,7 @@ describe('catches errors thrown in Page class', () => { expect(getPage).toThrowError('versions') }) - test('page with a version in frontmatter that its parent product is not available in', () => { + test('English page with a version in frontmatter that its parent product is not available in', () => { function getPage () { return new Page({ relativePath: 'admin/some-category/some-article-with-mismatched-versions-frontmatter.md', @@ -400,4 +400,16 @@ describe('catches errors thrown in Page class', () => { expect(getPage).toThrowError(/`versions` frontmatter.*? product is not available in/) }) + + test('non-English page with a version in frontmatter that its parent product is not available in', () => { + function getPage () { + return new Page({ + relativePath: 'admin/some-category/some-article-with-mismatched-versions-frontmatter.md', + basePath: path.join(__dirname, '../fixtures/products'), + languageCode: 'es' + }) + } + + expect(getPage).toThrowError(/`versions` frontmatter.*? product is not available in/) + }) }) diff --git a/translations/es-XL/content/insights/installing-and-configuring-github-insights/updating-github-insights.md b/translations/es-XL/content/insights/installing-and-configuring-github-insights/updating-github-insights.md index 809cb0f65909..f8576d1013ac 100644 --- a/translations/es-XL/content/insights/installing-and-configuring-github-insights/updating-github-insights.md +++ b/translations/es-XL/content/insights/installing-and-configuring-github-insights/updating-github-insights.md @@ -6,7 +6,6 @@ redirect_from: - /github/installing-and-configuring-github-insights/updating-github-insights permissions: 'Las personas con permisos de lectura para el repositorio de `github/insights-releases` y el acceso administrativo al servidor de aplicaciones pueden actualizar {% data variables.product.prodname_insights %}.' versions: - free-pro-team: '*' enterprise-server: '*' --- From 42f6e614be75c747fde95b96dfaa4476b4d1b9ff Mon Sep 17 00:00:00 2001 From: Arhell Date: Thu, 3 Dec 2020 00:50:19 +0200 Subject: [PATCH 5/9] fix dropdown on mobile --- includes/article-version-switcher.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/article-version-switcher.html b/includes/article-version-switcher.html index c422bc853f44..96b1732a3a49 100644 --- a/includes/article-version-switcher.html +++ b/includes/article-version-switcher.html @@ -6,7 +6,7 @@ -