Skip to content

Commit 18978d2

Browse files
authored
Migrate early access files to src (github#38711)
undefined
1 parent b236eaa commit 18978d2

18 files changed

+26
-23
lines changed

.github/actions/get-docs-early-access/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1717
GITHUB_TOKEN: ${{ inputs.token }}
1818
shell: bash
19-
run: node .github/actions-scripts/what-docs-early-access-branch.js
19+
run: node src/early-access/scripts/what-docs-early-access-branch.js
2020

2121
- name: Clone
2222
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
@@ -29,5 +29,5 @@ runs:
2929
- name: Merge docs-early-access repo's folders
3030
shell: bash
3131
run: |
32-
.github/actions-scripts/merge-early-access.sh
32+
src/early-access/scripts/merge-early-access.sh
3333
rm -fr docs-early-access

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160

161161
- if: ${{ env.IS_INTERNAL_BUILD == 'true' }}
162162
name: Merge docs-early-access repo's folders
163-
run: .github/actions-scripts/merge-early-access.sh
163+
run: src/early-access/scripts/merge-early-access.sh
164164

165165
- name: Determine if we should include translations?
166166
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410

.github/workflows/azure-prod-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
path: docs-early-access
7070

7171
- name: Merge docs-early-access repo's folders
72-
run: .github/actions-scripts/merge-early-access.sh
72+
run: src/early-access/scripts/merge-early-access.sh
7373

7474
- uses: ./.github/actions/warmup-remotejson-cache
7575
with:

.github/workflows/azure-staging-build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
ref: main
8989

9090
- name: Merge docs-early-access repo's folders
91-
run: .github/actions-scripts/merge-early-access.sh
91+
run: src/early-access/scripts/merge-early-access.sh
9292

9393
- name: 'Build and push image'
9494
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671

.github/workflows/link-check-daily.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
env:
3434
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
3535
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
36-
run: node .github/actions-scripts/what-docs-early-access-branch.js
36+
run: node src/early-access/scripts/what-docs-early-access-branch.js
3737

3838
- name: Check out docs-early-access too, if internal repo
3939
if: ${{ github.repository == 'github/docs-internal' }}
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Merge docs-early-access repo's folders
4848
if: ${{ github.repository == 'github/docs-internal' }}
49-
run: .github/actions-scripts/merge-early-access.sh
49+
run: src/early-access/scripts/merge-early-access.sh
5050

5151
- name: Restore disk-cache file for external link checking
5252
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8

.github/workflows/main-preview-docker-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- if: ${{ env.ENABLE_EARLY_ACCESS }}
6363
name: Merge docs-early-access repo's folders
64-
run: .github/actions-scripts/merge-early-access.sh
64+
run: src/early-access/scripts/merge-early-access.sh
6565

6666
# In addition to making the final image smaller, we also save time by not sending unnecessary files to the docker build context
6767
- name: 'Prune for preview env'

middleware/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import remoteIP from './remote-ip.js'
3434
import buildInfo from './build-info.js'
3535
import archivedEnterpriseVersions from './archived-enterprise-versions.js'
3636
import robots from './robots.js'
37-
import earlyAccessLinks from './contextualizers/early-access-links.js'
37+
import earlyAccessLinks from '#src/early-access/middleware/early-access-links.js'
3838
import categoriesForSupport from './categories-for-support.js'
3939
import triggerError from '#src/observability/middleware/trigger-error.js'
4040
import secretScanning from './contextualizers/secret-scanning.js'

src/early-access/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Early access
2+
3+
Early access allows the Docs team to publish docs to docs.github.com without putting the content files in github/docs or github/docs-internal. This allows the Docs team to publish articles about limited access features.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ git clone git@github.com:github/docs-early-access.git
2424
popd > /dev/null
2525

2626
# Symlink the local docs-early-access repo into this repo
27-
node script/early-access/symlink-from-local-repo.js -p ../docs-early-access
27+
node src/early-access/scripts/symlink-from-local-repo.js -p ../docs-early-access
2828

29-
echo -e '\nDone!'
29+
echo -e '\nDone!'

0 commit comments

Comments
 (0)