Граф коммитов

93 Коммитов

Автор SHA1 Сообщение Дата
Jason Etcovitch 92d5722103
Add 2.22 release notes (#16586)
* Add 2.22.0

* Add 2.22.1

* Add 2.22.2

* Add 2.22.3

* Add 2.22.4

* Lint YAML files

* intro shouldn't be required

* Align all notes

* Full height sidebar

* Make the sidebar full height properly

* Get the real layout going

* Include full name

* Move details > summary around

* Fix sticky sidebar

* Tweak bottom of page

* Add more label colors

* Change heading title

* Don't be <details>, change sticky header

* Include other releases' info

* Show prev/next links

* Change sidenav to show all releases

* Fix ordering of chevron

* Fix link underlines

* Collapsing minor versions

* Moar padding

* Setup schema for sub-sections

* Update a YAML file to match schema

* Redo rendering/sorting logic

* Update layout

* Convert remaining notes

* Improve schema

* Use proper min properties

* Custom bullet points

* Show details control for version picker

* Improve layout on small screens

* One more tiny fix

* Order by semver

* Use proper version in details

* Fix extra arrows showing up

* Change label colors

* Pass the reference check

* Add gradients

* Gradient all the things
2020-12-11 13:43:11 -05:00
Jason Etcovitch eaf2a67fa1
Use connectDatadog(e) (#16888)
* npm i connect-datadog

* Add connectDatadog middleware

* Add comments

* Use DD_API_KEY to gate

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-12-11 13:13:18 -05:00
Sarah Schneider 7d474b4141 attempt to fix CSP content blocked issue 2020-12-10 12:07:14 -05:00
Sarah Schneider d43acb967a
Merge branch 'main' into move-explorer-to-docs 2020-12-10 11:29:37 -05:00
Sarah Schneider cada14981b Merge branch 'main' of github.com:github/docs-internal into list-of-deprecated-versions 2020-12-09 22:05:26 -05:00
Sarah Schneider cfc4f6754d
Merge branch 'main' into early-access-tweaks 2020-12-09 21:13:50 -05:00
Sarah Schneider d24e54a75c
Merge branch 'main' into fix-deprecated-versions-bug 2020-12-09 15:11:21 -05:00
Sarah Schneider f21c2f322c update CSP for specific versions only 2020-12-09 14:46:55 -05:00
Sarah Schneider 575752a715 re-add unsafe-eval to the CSP for deprecated docs 2020-12-09 13:38:49 -05:00
Kevin Heis a7cfb88b7a
Use async file reads in categories-for-support-team middleware (#16781)
* Use async file reads in categories-for-support-team middleware

* Update categories-for-support-team.js

* Update categories-for-support-team.js

* Update categories-for-support-team.js

* Update glossary.js
2020-12-09 15:52:33 +00:00
Sarah Schneider a4f2444654 new Explorer layout with iFrame 2020-12-08 13:38:37 -05:00
Sarah Schneider 5a07447a14 add comment clarifying purpose of separate middleware 2020-12-08 11:49:18 -05:00
Sarah Schneider 3ca261ac82 add Developer deprecated docs to the list and also add a mini-toc 2020-12-08 10:38:39 -05:00
Sarah Schneider c52a9ba1ef rename page to enterprise-server-releases 2020-12-08 10:15:23 -05:00
Sarah Schneider 38659b37f4 return an empty breadcrumbs object on the landing page 2020-12-08 09:50:05 -05:00
Sarah Schneider dc38acdde8 support custom Early Access breadcrumbs 2020-12-07 16:18:03 -05:00
Sarah Schneider c98ed3a159 add enterprise release list middleware 2020-12-06 20:43:33 -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
Jason Etcovitch a7466b685b
Actions video (#16744)
* Support video frontmatter

* Add CSP rule

* Actually put in the video
2020-12-03 21:18:42 +00:00
Sarah Schneider b46e881557 properly concat versioned hidden product hrefs 2020-12-03 12:45:05 -05:00
Sarah Schneider bf61f53d4f lint 2020-12-03 12:24:41 -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 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 98e567a4a2 add message when there are no links for a version 2020-12-02 13:50:17 -05:00
Sarah Schneider 2ad6101bf1 show link titles and sort alphabetically 2020-12-02 13:40:41 -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
Sarah Schneider 77576177b1 move early-access link middleware to contextualizers 2020-12-01 16:20:09 -05:00
Sarah Schneider e49914f0b7 render early access links for the current version on the landing page 2020-12-01 13:30:58 -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
Jason Etcovitch 1750f3d48a
Fix missing webhook payloads on marketplace API page (#16641)
* Also check for github-marketplace path

* Check for webhook, no s
2020-11-26 20:42:31 -05:00
Sarah Schneider 26b9459048 Merge branch 'main' of github.com:github/docs-internal into find-page-in-version-redux 2020-11-23 12:14:45 -05: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 9332c62195
Sm0ller webpack output (#16543)
* Install friendly-errors-webpack-plugin

* Use it
2020-11-19 13:06:20 -05:00
Sarah Schneider d208a8951e
Merge branch 'main' into find-page-in-version-redux 2020-11-18 16:49:46 -05:00
Sarah Schneider 67f490752a move is-archived-version into a function instead of middleware 2020-11-18 15:18:50 -05:00
Sarah Schneider dbcb3a5cee use the referrer exclusively for asset paths 2020-11-18 14:50:58 -05:00
Sarah Schneider 60b834012b tweak comment 2020-11-18 12:57:24 -05:00
Sarah Schneider 6edd292fc7 proxy path is actually the same regardless of version 2020-11-18 12:53:17 -05:00
Sarah Schneider 18241fe808 use referrer path if it exists, otherwise use req.path 2020-11-18 12:52:53 -05:00
James M. Greene d6fcc369ea Render the nice 404 page for /early-access in non-local envs 2020-11-17 18:29:23 -06:00
Sarah Schneider 9942fd3950 dry up archived versions middleware checks 2020-11-17 18:46:30 -05:00
Kevin Heis 890e86cc46
Merge branch 'main' into hidden-docs-alt 2020-11-17 09:58:45 -08:00
Kevin Heis 08880d9ecb
Sort middleware by categories (#16494) 2020-11-17 09:49:10 -08:00
Sarah Schneider 4533dee334
Merge branch 'main' into add-dev-toc-redux 2020-11-16 20:47:48 -05:00
Kevin Heis 4d2e25b429
Use Redis Store for rate limiting when available (#16484) 2020-11-16 15:55:07 -08:00
Kevin Heis dd02bfa007 Merge main 2020-11-16 10:07:53 -08:00
Matt Pollard 5553e1cfec
Merge branch 'main' into add-dev-toc-redux 2020-11-16 09:12:50 +01:00