1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Commit Graph

273 Commits

Author SHA1 Message Date
Sarah Schneider
d0e894ffd1 Merge branch 'main' into check-for-outdated-links 2021-02-24 16:07:55 -05:00
Sarah Schneider
7fb5ab6da5 Update script/update-internal-links.js
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-02-24 15:33:23 -05:00
Sarah Schneider
50bbee7793 lint 2021-02-23 21:27:16 -05:00
Sarah Schneider
d747ab227d preserve any inline markup in link titles 2021-02-23 21:18:06 -05:00
Sarah Schneider
a687c39e8a lint 2021-02-23 20:48:38 -05:00
Sarah Schneider
6fa5bd69f0 add script to update internal links 2021-02-23 20:29:57 -05:00
Sarah Schneider
4c052c20da update archival script to create top-level redirects.json file instead of a million stubbed redirects 2021-02-22 11:13:20 -05:00
James M. Greene
8148677058 "Enable TLS" for Heroku Redis by ignoring self-signed TLS certificates (#17911)
* 'Enable TLS' for Heroku Redis by ignoring self-signed TLS certificates when creating Redis connections

https://devcenter.heroku.com/articles/heroku-redis#ioredis-module

* Clarify comments
2021-02-18 14:39:18 -06:00
Sarah Schneider
39b68544ec add comment 2021-02-18 14:47:56 -05:00
Sarah Schneider
5d819336c3 fix buggy output if 1 invalid link is found and add do-not-retry option for debugging 2021-02-17 10:02:03 -05:00
Rachael Sewell
01e52046f0 migrate away from AWS S3 (#17669) 2021-02-12 10:25:45 -08:00
Jason Etcovitch
e68e6a5185 Revert "Revert "Absorb @github-docs/frontmatter (#17783)" (#17793)" (#17799)
* Revert "Revert "Absorb @github-docs/frontmatter (#17783)" (#17793)"

This reverts commit 11baf43eee.

* Move revalidator to depedencies
2021-02-11 11:15:59 -05:00
Jason Etcovitch
11baf43eee Revert "Absorb @github-docs/frontmatter (#17783)" (#17793)
This reverts commit 1e96c03489.
2021-02-10 20:28:41 +00:00
Jason Etcovitch
1e96c03489 Absorb @github-docs/frontmatter (#17783) 2021-02-10 15:10:46 -05:00
Vanessa Yuen
25ff6b94ff Translation tools to make our lives easier (#17712)
* create script to fix easy-to-fix frontmatter errors in translation

* improve reset-translated-file.js: allow reverting to the same file from `main` branch

* fix release-notes as well

* also lints liquid in frontmatter
2021-02-09 10:11:12 -05:00
Kevin Heis
e07c603b7d Remove html-truncate, truncate with CSS instead (#17630)
* Remove html-truncate, truncate with CSS instead

* Update search.js
2021-02-02 17:55:05 +00:00
Jason Etcovitch
8d4f3e65fe Move test & script utils out of /lib (#17517)
* Remove an unused file

* Move authenticate-to-aws to scripts/utils

* Move crowdin-config to tests/utils

* Remove add-frontmatter-to-file

* Move find-unused-assets

* Move git-utils to script/utils

* Move lib/github to script/utils

* Revert "Remove an unused file"

This reverts commit cd93ad846a0354e957359f23124eb0724c9147cf.

* Move find-extraneous-translation-files to script/utils

* We already have tests/helpers

* Rename script/utils => helpers for consistency

* Forgot a path

* Fix path to crowdin-config

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-29 10:30:51 -05:00
Kevin Heis
8b86fd8fef Reduce minified JS bundle size from 189kb to 73kb (#17552) 2021-01-28 22:12:04 +00:00
Sarah Schneider
72f506ca0b Merge branch 'main' of github.com:github/docs-internal into exclude-some-links 2021-01-28 16:48:32 -05:00
Sarah Schneider
8fd2b9899f change VERSION to more specific DOCS_VERSION 2021-01-28 16:42:59 -05:00
Sarah Schneider
9b5b81fa1b add allowed values enum 2021-01-28 16:40:02 -05:00
Sarah Schneider
d2f66584d5 lint 2021-01-26 15:15:31 -05:00
Sarah Schneider
5f148ce71f support checking of separate versions via env var 2021-01-26 15:06:45 -05:00
Sarah Schneider
f9d52043c8 do not check deprecated docs, homepages and child pages alike 2021-01-26 13:22:18 -05:00
Jason Etcovitch
b4171bf0d5 Use AST parsing for lint file checking (#17471)
* Add markdown parsing dependencies

* Use it for the link test

* Use ast tests for hard-coded language

* Dedupe visiting for links

* Add new mdast utils to check-deps exclusions
2021-01-26 17:45:23 +00:00
Sarah Schneider
108b9b6d4a Merge branch 'main' of github.com:github/docs-internal into error-handling-for-link-check-script 2021-01-25 16:35:33 -05:00
Sarah Schneider
65be8e0cff add some prompts 2021-01-25 16:35:26 -05:00
Kevin Heis
99a85ff4ef Push query string when searching (#17417)
* Push query string when searching

* Update search.js

* Fix browser test, remove querystring dependency (new shiny!)

* Remove language and version from visible URL

* Avoid casting event interface

* Update search.js

* Update browser.js
2021-01-25 11:52:55 -08:00
Chiedo John
852a8cde15 Use self-hosted runners for docs-internal (#17442)
Use self hosted runners for docs-internal

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-01-25 08:41:53 -05:00
Sarah Schneider
5f35c67d72 ran script/update-readme 2021-01-22 16:05:43 -05:00
Sarah Schneider
7cc8b3bbd1 add clarifying comments 2021-01-22 16:05:29 -05:00
Sarah Schneider
f1b2a41a26 make broken link output easier to find 2021-01-22 13:58:59 -05:00
Sarah Schneider
37177a0977 bump concurrency down to see if that improves perf via Actions 2021-01-22 10:49:25 -05:00
Sarah Schneider
b0677b2442 use script instead of jest, much faster 2021-01-22 09:28:06 -05:00
Kevin Heis
2fb2e962bc Move site search to use an endpoint (#17359)
* Move site search to use an endpoint

* Update browser.js

* Update search.js

* Update lib/search/versions.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Fix URLs

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-01-20 15:37:42 +00:00
James M. Greene
c5c2347f0a Prevent overly verbose broken link logging from linkinator (#17381)
* Prevent overly verbose broken link logging from linkinator

* Reduce unnecessary second 'map' call

* Be VERY sure we aren't logging the failureDetails in case the linkinator implementation changes

* Really smoosh that '.map' call down to size
2021-01-20 15:12:59 +00:00
Rachael Sewell
58aae970cf add troubleshooting message to openapi script (#17253)
* add troubleshooting message to openapi script

* i always forget to lint
2021-01-17 00:35:10 +00:00
James M. Greene
72140bb8bb Remove use of commander from release script rather than adding it as a required production dependency (#17215) 2021-01-07 14:15:10 -06:00
James M. Greene
bca0682e93 Add release script to soft-purge all rendered pages from the Redis cache (#17164)
* Create a release script to soft-purge all rendered pages from the Redis cache

* Set NODE_ENV

* Pass the Redis database number as an option rather than in the URL

* Change key scanning pattern based on Heroku metadata presence

* Shorten purge TTL to 30 minutes

* Only fail hard on Heroku production releases

* Don't return TOO early or else we forget to resume the scanStream!

* Correct ioredis command casing to all lowercase

* Add unexpectedly necessary exit

* Tweak wording of dry run logging

* Add some polish

* Prevent accidental soft-purging of the current release's keys

* Simplify the key check

* Fix lint error
2021-01-07 13:50:24 -06:00
Kevin Heis
d7eb248a10 Fix a bunch of random typos (#17129)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-05 16:07:27 +00:00
Sarah Schneider
d4140663c2 Merge branch 'main' into update-dates-script 2020-12-10 13:58:02 -05:00
Sarah Schneider
dcb4d30ca3 Merge branch 'main' into early-access-branch-script 2020-12-09 21:07:34 -05:00
Sarah Schneider
4275c87be0 add comment 2020-12-09 20:29:40 -05:00
Sarah Schneider
63a6fa98d3 use release_candidate instead of start date if present 2020-12-09 20:19:40 -05:00
Sarah Schneider
8ee0ac619e add enterpriseServerVersions to fake context in s3 script 2020-12-09 11:21:57 -05:00
James M. Greene
27c371b75e Update script/early-access/create-branch 2020-12-08 09:46:52 -06:00
Sarah Schneider
ff2bf89803 add script 2020-12-04 11:22:35 -05:00
Sarah Schneider
7aabec9de0 Merge branch 'main' into domain-verification-enterprise-account-beta-redux 2020-12-04 09:22:12 -05:00
James M. Greene
fb30a0766f Unravel pages (the array + map object) (#16708)
* Revise the 'pages' module to export two methods: 'loadPages' and 'loadPageMap'

Update all existing references to use 'loadPages' for now

* Remove explicit Promise resolutions on loadPage* methods

* Condense reduction method into its now-singular usage spot

* Opt for for-of instead of forEach

* Make require of pages in warm-server more explicit

* Be more explicit about find-page using a pageMap

* Be more explicit about find-page-in-version using a pageMap

* Be more explicit about site-tree using a pageMap

* Extract the map creation from loadPageMap

* Be more explicit about using a pageMap

* Update redirects precompile to take two arguments: pageList, pageMap

* Rename internal loadPages method to loadPageList

* Clarify pageMap is what is stored in context.pages

* Use loadPageMap in tests and stuff
2020-12-03 22:31:10 +00:00
Sarah Schneider
7618fea5e4 Merge branch 'main' into domain-verification-enterprise-account-beta-redux 2020-12-03 16:37:53 -05:00