forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* better caching, reduce context size, etc
- Loading branch information
1 parent
4ede312
commit 59b53a9
Showing
8 changed files
with
140 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
.devcontainer/ | ||
.git/ | ||
node_modules/ | ||
.github/ | ||
.vscode/ | ||
contributing/ | ||
docs/ | ||
script/ | ||
node_modules/ | ||
script/ | ||
tests/ | ||
lib/rest/static/dereferenced | ||
# Folder is cloned during the preview + prod workflows, the assets are merged into other locations for use before the build | ||
docs-early-access/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# [start-readme] | ||
# | ||
# This script takes docs-early-access files and merges them into docs-internal | ||
# | ||
# [end-readme] | ||
|
||
mv docs-early-access/assets assets/images/early-access | ||
mv docs-early-access/content content/early-access | ||
mv docs-early-access/data data/early-access |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# [start-readme] | ||
# | ||
# This script removes files that are unnecessary for our preview environments. | ||
# This is typically run before a docker build to reduce the size of the build context sent to docker | ||
# | ||
# [end-readme] | ||
|
||
# Remove all but the english search indexes | ||
find lib/search/indexes ! -name '*-en.json.br' ! -name '*-en-records.json.br' -maxdepth 1 -type f -delete | ||
|
||
# Translations are never tested in preview environments | ||
# but let's keep the empty directory. | ||
rm -rf translations | ||
mkdir translations | ||
|
||
# The assumption here is that a preview build will not | ||
# need these legacy redirects. Only the redirects from | ||
# front-matter will be at play. | ||
# These static redirects json files are notoriously large | ||
echo '[]' > lib/redirects/static/archived-frontmatter-fallbacks.json | ||
echo '{}' > lib/redirects/static/developer.json | ||
echo '{}' > lib/redirects/static/archived-redirects-from-213-to-217.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters