Skip to content

Commit ed1b9c7

Browse files
authored
Merge pull request #24186 from github/repo-sync
repo sync
2 parents 2b29946 + bf91d24 commit ed1b9c7

File tree

12 files changed

+178
-262
lines changed

12 files changed

+178
-262
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Clone and add docs-early-access
2+
3+
description: Clone docs-early-access and copy its content into the repo
4+
5+
inputs:
6+
token:
7+
description: PAT
8+
required: true
9+
10+
runs:
11+
using: 'composite'
12+
steps:
13+
- name: Figure out which branch to checkout
14+
id: check-early-access
15+
env:
16+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
17+
GITHUB_TOKEN: ${{ inputs.token }}
18+
shell: bash
19+
run: node .github/actions-scripts/what-docs-early-access-branch.js
20+
21+
- name: Clone
22+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
23+
with:
24+
repository: github/docs-early-access
25+
token: ${{ inputs.token }}
26+
path: docs-early-access
27+
ref: ${{ steps.check-early-access.outputs.branch }}
28+
29+
- name: Merge docs-early-access repo's folders
30+
shell: bash
31+
run: |
32+
.github/actions-scripts/merge-early-access.sh
33+
rm -fr docs-early-access

.github/workflows/test.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,10 @@ jobs:
8888

8989
- uses: ./.github/actions/node-npm-setup
9090

91-
- name: Figure out which docs-early-access branch to checkout, if internal repo
91+
- uses: ./.github/actions/get-docs-early-access
9292
if: ${{ github.repository == 'github/docs-internal' }}
93-
id: check-early-access
94-
env:
95-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
96-
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }}
97-
run: node .github/actions-scripts/what-docs-early-access-branch.js
98-
99-
- name: Check out docs-early-access too, if internal repo
100-
if: ${{ github.repository == 'github/docs-internal' }}
101-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
10293
with:
103-
repository: github/docs-early-access
10494
token: ${{ secrets.DOCUBOT_REPO_PAT }}
105-
path: docs-early-access
106-
ref: ${{ steps.check-early-access.outputs.branch }}
107-
108-
- name: Merge docs-early-access repo's folders
109-
if: ${{ github.repository == 'github/docs-internal' }}
110-
run: |
111-
.github/actions-scripts/merge-early-access.sh
112-
rm -fr docs-early-access
11395

11496
- name: Check the test fixture data (if applicable)
11597
if: ${{ matrix.test-group == 'rendering-fixtures' }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Early Access documentation
3+
hidden: true
4+
versions: '*'
5+
children:
6+
- /secrets
7+
---
8+
9+
👋 Hello, local test developer! This page is not visible on production.
10+
11+
These are the Early Access pages for {{ allVersions[currentVersion].versionTitle }}:
12+
13+
{{ earlyAccessPageLinks }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Deeper secrets
3+
versions: '*'
4+
hidden: true
5+
children:
6+
- /mariana-trench
7+
---
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Mariana Trench
3+
versions: '*'
4+
hidden: true
5+
---
6+
7+
## This is a deep early-access article
8+
9+
Exists to test stuff like breadcrumbs.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Early days
3+
hidden: true
4+
versions:
5+
fpt: '*'
6+
---
7+
8+
This page is only available in **free, pro, & team**.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: GitHub Secrets
3+
versions: '*'
4+
hidden: true
5+
children:
6+
- /early-days
7+
- /deeper
8+
---
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: '{% ifversion fpt %}Hello{% else %}Greetings{% endif %} {% data variables.product.product_name %}'
3+
versions:
4+
fpt: '*'
5+
ghes: '*'
6+
ghae: '*'
7+
ghec: '*'
8+
type: quick_start
9+
---
10+
11+
## Introduction
12+
13+
This page has a single `title` and it uses Liquid that depends on
14+
`ifversion` and `data variables...`.

tests/fixtures/content/get-started/quickstart/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ versions:
99
children:
1010
- /hello-world
1111
- /link-rewriting
12+
- /dynamic-title
1213
---

tests/fixtures/content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ children:
1717
# as if the URL had been `/en/free-pro-team@latest/get-started/anything`.
1818
- search
1919
- get-started
20+
- early-access
2021
# - account-and-profile
2122
# - authentication
2223
# - repositories
@@ -42,7 +43,6 @@ children:
4243
# - pages
4344
# - education
4445
# - desktop
45-
# - early-access
4646
# - support
4747
childGroups:
4848
- name: Get started

0 commit comments

Comments
 (0)