File tree Expand file tree Collapse file tree 12 files changed +178
-262
lines changed
actions/get-docs-early-access Expand file tree Collapse file tree 12 files changed +178
-262
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -88,28 +88,10 @@ jobs:
88
88
89
89
- uses : ./.github/actions/node-npm-setup
90
90
91
- - name : Figure out which docs-early-access branch to checkout, if internal repo
91
+ - uses : ./.github/actions/get- docs-early-access
92
92
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
102
93
with :
103
- repository : github/docs-early-access
104
94
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
113
95
114
96
- name : Check the test fixture data (if applicable)
115
97
if : ${{ matrix.test-group == 'rendering-fixtures' }}
Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Deeper secrets
3
+ versions : ' *'
4
+ hidden : true
5
+ children :
6
+ - /mariana-trench
7
+ ---
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Early days
3
+ hidden : true
4
+ versions :
5
+ fpt : ' *'
6
+ ---
7
+
8
+ This page is only available in ** free, pro, & team** .
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : GitHub Secrets
3
+ versions : ' *'
4
+ hidden : true
5
+ children :
6
+ - /early-days
7
+ - /deeper
8
+ ---
Original file line number Diff line number Diff line change
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... ` .
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ versions:
9
9
children :
10
10
- /hello-world
11
11
- /link-rewriting
12
+ - /dynamic-title
12
13
---
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ children:
17
17
# as if the URL had been `/en/free-pro-team@latest/get-started/anything`.
18
18
- search
19
19
- get-started
20
+ - early-access
20
21
# - account-and-profile
21
22
# - authentication
22
23
# - repositories
@@ -42,7 +43,6 @@ children:
42
43
# - pages
43
44
# - education
44
45
# - desktop
45
- # - early-access
46
46
# - support
47
47
childGroups :
48
48
- name : Get started
You can’t perform that action at this time.
0 commit comments