1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Commit Graph

519 Commits

Author SHA1 Message Date
Sarah Schneider
ef82435371 check repo 2020-12-07 09:55:24 -05:00
Rachael Sewell
0244ff4ad5 add openapi test from rest-api-operations (#16630) 2020-12-03 15:36:58 -08: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
c0b7195057 Fix Early Access tests (#16749)
* fix early access tests

* Update lint-files.js

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2020-12-03 21:07:22 +00:00
Sarah Schneider
e469cf25b4 Merge branch 'main' into check-links-improvement-redux 2020-12-03 15:54:18 -05:00
James M. Greene
c7870f44b7 Skip EA articles test temporarily (#16748) 2020-12-03 20:52:38 +00:00
Kevin Heis
30cdb3173b Allow repo sync in public repo (#16746)
* Allow repo sync in public repo

* Update repository-references.js

* Update lint-files.js
2020-12-03 19:19:23 +00:00
Sarah Schneider
ca39999daf update hidden page expectations 2020-12-03 12:55:57 -05:00
Sarah Schneider
82644efc7c Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-03 12:06:18 -05:00
Kevin Heis
11d8e415da Check repository references (#16680)
* Check repository references

* Remove "foundRepoNames" that I used to find all the unique names

* A little speed up with Set

* Ignore a few files

* Remove remaining references

* Update README.md
2020-12-03 16:41:03 +00:00
Sarah Schneider
2f10991ea5 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-03 10:29:46 -05:00
James M. Greene
4e1d62b91a Remove free-pro-team support from Spanish translation of Insights doc (#16730)
* Remove free-pro-team support from Spanish translation of Insights doc

* Throw errors for mismatched products in non-English content pages as well
2020-12-02 22:07:56 +00:00
Sarah Schneider
1b051afa18 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 15:13:43 -05:00
Kevin Heis
e3cfacd8df Fix robots.txt from being self repeating (#16705)
* Fix robots.txt from being self repeating

* Add test to make sure robots doesnt have duplicate lines
2020-12-02 19:45:22 +00:00
Sarah Schneider
1258092a41 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 14:22:10 -05:00
Robert Mosolgo
a7d042a898 Merge branch 'main' into build-changelog 2020-12-02 13:56:50 -05:00
Sarah Schneider
7628caa417 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 12:47:54 -05:00
Kevin Heis
685e7a3655 Remove unsafe eval (#16704)
* Remove unsafe eval

* Actually, we're not using this anyways

* Reset package-lock, I have no idea why this keeps changing

* Update csp.js

* Update server.js
2020-12-02 16:19:14 +00:00
James M. Greene
684a72077f Fix the browser tests by using a newer version of Puppeteer (#16707)
Improve 2 async-callback-based tests by counting their assertions
2020-12-01 19:17:05 -06:00
Sarah Schneider
6304c863fe lint 2020-12-01 13:07:00 -05:00
Sarah Schneider
b244d447dd Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-01 12:38:48 -05:00
Sarah Schneider
432d13fd32 Add more detail in comment 2020-12-01 10:25:23 -05:00
Sarah Schneider
74fe86d91e clarify what is happening with the context objects 2020-12-01 10:16:05 -05:00
Sarah Schneider
da1427f812 Merge branch 'main' of github.com:github/docs-internal into build-changelog 2020-12-01 09:40:04 -05:00
Sarah Schneider
a8e12608fa Update tests/helpers/links-checker.js
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2020-11-30 13:26:41 -05:00
Sarah Schneider
f483874687 lint 2020-11-25 20:12:45 -05:00
Sarah Schneider
7ee7d1ef26 delete no longer needed link checking code 2020-11-25 20:04:30 -05:00
Sarah Schneider
08d548a978 add new link checking code 2020-11-25 20:04:04 -05:00
Sarah Schneider
23ca5270b7 add test 2020-11-25 19:22:32 -05:00
Robert Mosolgo
9e5d72eb42 Merge branch 'main' into build-changelog 2020-11-25 16:32:10 -05:00
Robert Mosolgo
fc54b4d43c Fix lint errors 2020-11-25 16:30:37 -05:00
Jason Etcovitch
4484068e01 Move render-content code to this repo (#16544)
* Move render-content files in here

* Replace existing file with nested index.js

* Copy in tests and jest-ify

* Update docs

* Uninstall @github-docs/render-content

* Bring over README

* Add missing dependencies

* Fix require paths
2020-11-25 11:20:23 -05:00
Robert Mosolgo
aeedfac37e Add graphql tests to CI, move snapshots to fixures, use mockdate 2020-11-25 11:12:13 -05:00
Jason Etcovitch
1ec8c35e34 Refactor indented_data_reference to use Liquid internals (#16623)
* Refactor indented-data-reference

* Add spacing around referenced reusables

* Update expected test output

* Fail silently with empty valuer
2020-11-24 16:50:20 -05:00
Sarah Schneider
18d25f6129 update references to old helpers.js 2020-11-24 15:42:11 -05:00
Sarah Schneider
3121eae634 move tests/helpers.js into subdir and rename 2020-11-24 15:41:38 -05:00
Sarah Schneider
6662e027b0 let, not const and one more regex tweak 2020-11-23 13:04:11 -05:00
Sarah Schneider
10c7ba7855 include full content including frontmatter, and tweak some regexes 2020-11-23 12:51:15 -05:00
Robert Mosolgo
b87ca3b3e3 Fix lint errors 2020-11-23 08:55:05 -05:00
Robert Mosolgo
2400be9528 Merge branch 'main' into build-changelog 2020-11-23 08:44:32 -05:00
Robert Mosolgo
ab06aadf82 Add changelog creation to update-files.js 2020-11-23 08:42:12 -05:00
Robert Mosolgo
f2119bc619 Add a test for updating the changelog file on disk 2020-11-23 08:17:57 -05:00
Robert Mosolgo
360c517a7d Add upcoming changes to build-changelog 2020-11-23 08:08:00 -05:00
Robert Mosolgo
9d5af1f98d Create preview changes entries 2020-11-23 07:15:22 -05:00
Robert Mosolgo
96e4ea9499 Set up tests, start formatting messages 2020-11-20 17:02:21 -05:00
Kevin Heis
912ac50034 End AB test on moving helpfulness prompt to bottom (#16552)
* End AB test on moving helpfulness prompt to bottom

* Move helpfulness to bottom of page only

* Update helpfulness.js

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-11-20 12:24:33 -08:00
Jason Etcovitch
cc719ffb6f Render Enterprise release notes on docs.github.com (#16367)
* Create basic layout

* Create stubbed out release note YAML

* Get a real implementation going

* Simplify using site-data

* Add a real page to send from render-page.js

* Use array of patches

* Render patches

* Add sidebar and breadcrumbs

* Reverse order

* Add date

* Tweak labels

* Redirect to entweb for missing versions

* Render patch.intro

* Move to separate files for patches

* Show support for RC versions

* Improve some comments

* Sticky headers!

* Remove a console log

* Improve example formatting

* Add a link on /admin

* Add a schema and test

* Move to /index.md, add version_num filter

* Improve layout

* Use <details>

* Placeholder more realistic notes

* Don't require links in index pages

* Remove admin/index link for now

* Remove unused frontmatter field

* Add a test for middleware

* Fix remaining YAML file to test CI

* Update 2-rc.yml

* Don't call it RC

* Just push

* Make a main a div

* Fix a borked class

* Lint YAML files

* Improve Download link

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Improve check order

* Move to contextualizers

* Use alternative version thing

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Move back to `release-notes.md`

* Use version for anchor IDs

* Undo category-pages test change

* Fix borked details layout in Chrome

* Improve mobile setup

* Render markdown in note tags

* Use allVersions[currentVersion] again

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Undo change to extended-markdown

* Add whitespace so it renders markdown bits

* Remove 2-22 files

* Add check for any release notes

* Fix the failing tests

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-20 13:33:11 -05:00
Jason Etcovitch
52dbd92144 Rewrite links in Page.intro with language (#16550)
* Add defaultLanguage behavior

* Add a million logs because I'm confused

* Rewrite intro links

* Undo changes to detect-language

* Add a test
2020-11-19 15:53:35 -05:00
Sarah Schneider
0c3a46f205 update asset path for <2.13 CSS files 2020-11-18 12:53:39 -05:00
Sarah Schneider
84f0aac8f6 Merge branch 'main' of github.com:github/docs-internal into deprecate-2.19 2020-11-17 21:20:38 -05:00