@@ -17,6 +17,9 @@ from https://unpkg.com/highlight.js@9.15.8/styles/github.css
|
||||
}
|
||||
|
||||
// Updating color for code comments from prettylights to codemirror due to accessibility issues: audit 4975
|
||||
// - variable fixed in 7.15.4
|
||||
// - https://github.com/primer/css/blob/main/package.json
|
||||
// TODO when above updates, upgrade the primer/css package and change this variable back
|
||||
.hljs-comment {
|
||||
color: var(--color-codemirror-syntax-comment);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ title: Article with redirect_from string
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
redirect_from: /redirect-string
|
||||
---
|
||||
|
||||
@@ -6,7 +6,6 @@ product: This is the callout text
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /map-topic
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: 'This page uses < and > in the title and `shortTitle` to demonstrate that
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: tutorial
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: "Here's the intro for {% data variables.product.prodname_actions %}."
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /article
|
||||
|
||||
@@ -8,7 +8,6 @@ layout: product-landing
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /category
|
||||
|
||||
@@ -4,7 +4,6 @@ hidden: true
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /secrets
|
||||
|
||||
@@ -3,7 +3,6 @@ title: Deeper secrets
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
hidden: true
|
||||
children:
|
||||
|
||||
@@ -3,7 +3,6 @@ title: Mariana Trench
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
hidden: true
|
||||
---
|
||||
|
||||
@@ -3,7 +3,6 @@ title: GitHub Secrets
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
hidden: true
|
||||
children:
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: If the author use an anchor link for AUTOTITLE it should fail
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Internal links that use AUTOTITLE should just work
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: This page doesn't really have an intro
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Testing to cross the version boundary with hardcoded cross-version links
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Exists for a Playwright test
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: Note that this page's `shortTitle` needs HTML escaping
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: 'The most basic of fixture data for {% data variables.product.product_nam
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /bar
|
||||
|
||||
@@ -6,7 +6,6 @@ product: '{% data reusables.gated-features.not-for-ghes %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: If the author typos the word "AUTOTITLE" it will throw
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Images within procedural steps
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
@@ -14,4 +13,4 @@ type: how_to
|
||||
1. Cold brew is great.
|
||||
1. French press is also great
|
||||

|
||||
3. Drip coffee is not so great.
|
||||
3. Drip coffee is not so great.
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Testing various image functionality
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /single-image
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: You can link directly to an asset
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: A simple page that has 1 asset image
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: 'This is the intro'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
layout: product-landing
|
||||
introLinks:
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'Learn how you can use {% data variables.product.company_short %} product
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /github-glossary
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates the HTML that becomes of a `danger` Liquid tag
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: The `data` Liquid tag can understand where it was used
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'Tests functionality of `ifversion` and its operators {% ifversion not fp
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Testing various fancy Liquid rendering functionality
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /warnings
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: When Liquid is used to generate a Markdown link
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates the HTML that becomes of a `note` Liquid tag
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates the HTML that becomes of a `mac`, `windows`, and `linux` Liq
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
defaultPlatform: windows
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates the use of {% raw %}{% raw %}{% endraw %}
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: A table with a Liquid tag that turns the first column into `<th>` cells
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates the HTML that becomes of a `tip` Liquid tag
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -6,7 +6,6 @@ defaultPlatform: mac
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: tutorial
|
||||
---
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
---
|
||||
title: Tool switching Liquid tags
|
||||
title: Tool switching Liquid tags
|
||||
intro: Demonstrates the HTML that becomes of a the different tool Liquid tags like `webui`, `cli`, and `codespaces`
|
||||
defaultTool: desktop
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: tutorial
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates the HTML that becomes of a `warning` Liquid tag
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Demonstrates use of `-` in Liquid tags
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: This page has code annotations
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
layout: inline
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Testing various Markdown rendering functionality
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /intro
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: This intro has **Markdown** `syntax` for *{% data variables.product.produ
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ permissions: 'People with **admin** can configure a {% data variables.product.pr
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'Fixtures for testing the mini TOCs'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /no-heading
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Fixture for testing Mini TOCs with markup in the heading
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
@@ -18,4 +17,4 @@ Some content
|
||||
|
||||
## Subheading 2
|
||||
|
||||
More content
|
||||
More content
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: Fixture for testing Mini TOCs with multiple headings
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
@@ -18,4 +17,4 @@ Some content
|
||||
|
||||
## Subheading 2
|
||||
|
||||
More content
|
||||
More content
|
||||
|
||||
@@ -4,10 +4,8 @@ intro: Fixture for testing mini TOCs with no headings
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
Here is some content with no heading.
|
||||
|
||||
|
||||
@@ -4,11 +4,9 @@ intro: Fixture for testing mini TOCs with one heading
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: how_to
|
||||
---
|
||||
|
||||
## Single heading
|
||||
Here is some content with a single heading.
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ title: '{% ifversion fpt %}Hello{% else %}Greetings{% endif %} {% data variables
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: quick_start
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'Follow this Hello World exercise to get started with {% data variables.p
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: quick_start
|
||||
topics:
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'Get started using {% data variables.product.product_name %} to manage Gi
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /hello-world
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'When rendered, links are rewriting to perfection for viewing'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: quick_start
|
||||
---
|
||||
|
||||
@@ -4,8 +4,7 @@ hidden: true
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /transcript--my-awesome-video
|
||||
---
|
||||
---
|
||||
|
||||
@@ -4,8 +4,7 @@ product_video: 'https://www.yourube.com/abc123'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
This is a transcript
|
||||
This is a transcript
|
||||
|
||||
@@ -15,8 +15,8 @@ redirect_from:
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
ghae: '*'
|
||||
children:
|
||||
# The list of children in the fixtures has to be the same names
|
||||
# as we use in the real content. It can have fewer but can't include
|
||||
|
||||
@@ -9,7 +9,6 @@ product: '{% data reusables.gated-features.pages %}'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Pages
|
||||
|
||||
@@ -5,7 +5,6 @@ allowTitleToDifferFromFilename: true
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
type: quick_start
|
||||
permissions: These are permissions details, for more pages info start at the beginning with this "[article intro link](#introduction)". Also here's [another link](/get-started/start-your-journey/hello-world).
|
||||
|
||||
@@ -4,7 +4,6 @@ intro: 'Gentle and fun intro about APIs'
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ intro: 'Learn about resources, libraries, previews and troubleshooting for {% da
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /comparing-githubs-rest-api-and-graphql-api
|
||||
|
||||
@@ -9,7 +9,6 @@ topics:
|
||||
- API
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
ghes: '*'
|
||||
autogenerated: rest
|
||||
|
||||
@@ -7,7 +7,6 @@ redirect_from:
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /artifacts
|
||||
|
||||
@@ -15,7 +15,6 @@ layout: product-landing
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
children:
|
||||
- /about-the-rest-api
|
||||
|
||||
@@ -5,6 +5,4 @@ versions:
|
||||
fpt: '*'
|
||||
ghec: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
## Use these variables when referring specifically to a location within a product
|
||||
product_location: >-
|
||||
{% ifversion ghes %}your GitHub Enterprise Server instance{% elsif ghae %}your enterprise{% else %}GitHub.com{% endif %}
|
||||
{% ifversion ghes %}your GitHub Enterprise Server instance{% else %}GitHub.com{% endif %}
|
||||
|
||||
# Used ONLY when you need to refer to a GHES instance in an article that is versioned for non-GHES versions.
|
||||
# Do not use in other situations!
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
company_short: 'HubGit'
|
||||
|
||||
product_name: >-
|
||||
{% ifversion ghec %}HubGit Enterprise Cloud{% elsif ghes %}HubGit Enterprise Server{% elsif ghae %}HubGit AE{% else %}HubGit{% endif %}
|
||||
{% ifversion ghec %}HubGit Enterprise Cloud{% elsif ghes %}HubGit Enterprise Server{% else %}HubGit{% endif %}
|
||||
|
||||
prodname_dotcom: 'HubGit'
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ title: Sample page
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ title: Good sample page
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ title: My attributes are empty if not FPT
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
product: '{% ifversion fpt %}FPT rulez!{% endif %}'
|
||||
permissions: '{% ifversion fpt %}FPT only!{% endif %}'
|
||||
|
||||
@@ -5,6 +5,5 @@ intro: '{% data variables.product.prodname_dotcom %} を使用してソフトウ
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
---
|
||||
|
||||
@@ -274,11 +274,17 @@ export async function loadSiteTree(unversionedTree) {
|
||||
|
||||
export async function versionPages(obj, version, langCode) {
|
||||
// Add a versioned href as a convenience for use in layouts.
|
||||
obj.href = obj.page.permalinks.find(
|
||||
const permalink = obj.page.permalinks.find(
|
||||
(pl) =>
|
||||
pl.pageVersion === version ||
|
||||
(pl.pageVersion === 'homepage' && version === nonEnterpriseDefaultVersion),
|
||||
).href
|
||||
)
|
||||
if (!permalink) {
|
||||
throw new Error(
|
||||
`No permalink for ${obj.page.fullPath} in language ${langCode} for version ${version}`,
|
||||
)
|
||||
}
|
||||
obj.href = permalink.href
|
||||
|
||||
if (!obj.childPages) return obj
|
||||
const versionedChildPages = await Promise.all(
|
||||
|
||||
@@ -49,10 +49,7 @@ const plans = [
|
||||
openApiBaseName: 'ghes-',
|
||||
miscBaseName: 'ghes-',
|
||||
},
|
||||
// github-ae is gone, but we need to keep it in the array
|
||||
// for the validation of front matter when it checks the `versions`
|
||||
// keys.
|
||||
// All requests for github-ae@latest will be redirected in getRedirect().
|
||||
|
||||
{
|
||||
plan: 'github-ae',
|
||||
planTitle: 'GitHub AE',
|
||||
|
||||
Reference in New Issue
Block a user