Skip to content

Commit 5f35c67

Browse files
committed
ran script/update-readme
1 parent 1f5bd00 commit 5f35c67

File tree

1 file changed

+71
-15
lines changed

1 file changed

+71
-15
lines changed

script/README.md

Lines changed: 71 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,16 @@ This script is run automatically when you run the server locally. It checks whet
7171
---
7272

7373

74+
### [`check-internal-links.js`](check-internal-links.js)
75+
76+
This script runs in CI via GitHub Action to check all *internal* links in English content, not including deprecated Enterprise Server content. This is different from script/check-english-links.js, which checks *all* links in the site, both internal and external, and is much slower.
77+
78+
---
79+
80+
7481
### [`check-s3-images.js`](check-s3-images.js)
7582

76-
Run this script in your branch to check whether any images referenced in content are not in an expected S3 bucket. You will need to authenticate to S3 via `awssume` to use this script.
83+
Run this script in your branch to check whether any images referenced in content are not in an expected S3 bucket. You will need to authenticate to S3 via `awssume` to use this script. Instructions for the one-time setup are at docs-content/doc-team-workflows/workflow-information-for-all-writers/setting-up-awssume-and-s3cmd.md
7784

7885
---
7986

@@ -89,6 +96,13 @@ Run this script in your branch to check whether any images referenced in content
8996

9097

9198

99+
---
100+
101+
102+
### [`content-migrations/remove-html-comments-from-index-files.js`](content-migrations/remove-html-comments-from-index-files.js)
103+
104+
105+
92106
---
93107

94108

@@ -120,6 +134,41 @@ This script finds and lists all the Heroku staging apps and deletes any leftover
120134
---
121135

122136

137+
### [`early-access/clone-for-build.js`](early-access/clone-for-build.js)
138+
139+
This script is run as a postbuild script during staging and deployments on Heroku. It clones a branch in the early-access repo that matches the current branch in the docs repo; if one can't be found, it clones the `main` branch.
140+
141+
---
142+
143+
144+
### [`early-access/clone-locally`](early-access/clone-locally)
145+
146+
This script is run on a writer's machine to begin developing Early Access content locally.
147+
148+
---
149+
150+
151+
### [`early-access/create-branch`](early-access/create-branch)
152+
153+
This script is run on a writer's machine to create an Early Access branch that matches the current docs-internal branch.
154+
155+
---
156+
157+
158+
### [`early-access/symlink-from-local-repo.js`](early-access/symlink-from-local-repo.js)
159+
160+
This script is run on a writer's machine while developing Early Access content locally. You must pass the script the location of your local copy of the `github/docs-early-access` git repo as the first argument.
161+
162+
---
163+
164+
165+
### [`early-access/update-data-and-image-paths.js`](early-access/update-data-and-image-paths.js)
166+
167+
This script is run on a writer's machine while developing Early Access content locally. It updates the data and image paths to either include `early-access` or remove it.
168+
169+
---
170+
171+
123172
### [`enterprise-server-deprecations/archive-version.js`](enterprise-server-deprecations/archive-version.js)
124173

125174
Run this script during the Enterprise deprecation process to download static copies of all pages for the oldest supported Enterprise version. See the Enterprise deprecation issue template for instructions.
@@ -193,6 +242,12 @@ Given: /github/getting-started-with-github/using-github Returns: /free-pro-team@
193242

194243
Given: /enterprise/admin/installation/upgrading-github-enterprise Returns: /enterprise-server@2.22/admin/installation/upgrading-github-enterprise
195244

245+
---
246+
247+
248+
### [`graphql/build-changelog.js`](graphql/build-changelog.js)
249+
250+
196251

197252
---
198253

@@ -316,6 +371,13 @@ Run this script to manually purge the Fastly cache for all language variants of
316371
---
317372

318373

374+
### [`purge-redis-pages.js`](purge-redis-pages.js)
375+
376+
Run this script to manually purge the Redis rendered page cache. This will typically only be run by Heroku during the deployment process, as triggered via our Procfile's "release" phase configuration.
377+
378+
---
379+
380+
319381
### [`reconcile-category-dirs-with-ids.js`](reconcile-category-dirs-with-ids.js)
320382

321383
An automated test checks for discrepancies between category directory names and slugified category titles as IDs.
@@ -362,11 +424,11 @@ Examples:
362424

363425
reset a single translated file using a relative path: $ script/reset-translated-file.js translations/es-XL/content/actions/index.md
364426

365-
reset a single translated file using a full path: $ script/reset-translated-file.js /Users/z/git/github/docs/translations/es-XL/content/actions/index.md
427+
reset a single translated file using a full path: $ script/reset-translated-file.js /Users/z/git/github/docs-internal/translations/es-XL/content/actions/index.md
366428

367429
reset all language variants of a single English file (using a relative path): $ script/reset-translated-file.js content/actions/index.md $ script/reset-translated-file.js data/ui.yml
368430

369-
reset all language variants of a single English file (using a full path): $ script/reset-translated-file.js /Users/z/git/github/docs/content/desktop/index.md $ script/reset-translated-file.js /Users/z/git/github/docs/data/ui.yml
431+
reset all language variants of a single English file (using a full path): $ script/reset-translated-file.js /Users/z/git/github/docs-internal/content/desktop/index.md $ script/reset-translated-file.js /Users/z/git/github/docs-internal/data/ui.yml
370432

371433
---
372434

@@ -422,14 +484,14 @@ Starts the local development server with all of the available languages enabled.
422484

423485
### [`standardize-frontmatter-order.js`](standardize-frontmatter-order.js)
424486

425-
Run this script to standardize frontmatter fields in all content files.
487+
Run this script to standardize frontmatter fields in all content files, per the order: - title - intro - product callout - productVersion - map topic status - hidden status - layout - redirect
426488

427489
---
428490

429491

430-
### [`sync-algolia-search-indices.js`](sync-algolia-search-indices.js)
492+
### [`sync-search-indices.js`](sync-search-indices.js)
431493

432-
This script is run automatically via GitHub Actions on every push to `master` to generate searchable data and upload it to our Algolia account. It can also be run manually. For more info see [contributing/search.md](contributing/search.md)
494+
This script is run automatically via GitHub Actions on every push to `main` to generate searchable data. It can also be run manually. For more info see [contributing/search.md](contributing/search.md)
433495

434496
---
435497

@@ -443,15 +505,7 @@ List all the TODOs in our JavaScript files and stylesheets.
443505

444506
### [`update-enterprise-dates.js`](update-enterprise-dates.js)
445507

446-
Run this script during Enterprise releases and deprecations. It uses the GitHub API to get dates from `enterprise-releases` and updates `lib/enterprise-dates.json`. The help site uses this JSON to display dates at the top of some Enterprise versions.
447-
448-
This script requires that you have a GitHub Personal Access Token in a `.env` file. If you don't have a token, get one [here](https://github.com/settings/tokens/new?scopes=repo&description=docs-dev). If you don't have an `.env` file in your docs checkout, run this command in Terminal:
449-
450-
`cp .env.example .env`
451-
452-
Open the `.env` file in a text editor, and find the `GITHUB_TOKEN=` placeholder. Add your token after the equals sign.
453-
454-
Do not commit the `.env` file; just leave it in your checkout.
508+
This script fetches data from https://github.com/github/enterprise-releases/blob/master/releases.json and updates `lib/enterprise-dates.json`, which the site uses for various functionality.
455509

456510
---
457511

@@ -482,3 +536,5 @@ This script is used by other scripts to update temporary AWS credentials and aut
482536
Use this script to upload individual or batched asset files to a versioned S3 bucket. Run `upload-images-to-s3.js --help` for usage details.
483537

484538
---
539+
540+

0 commit comments

Comments
 (0)