1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Commit Graph

384 Commits

Author SHA1 Message Date
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
James M. Greene
1a732eae5e Let's 404 the /early-access page outside of local rather than 403-ing 2020-11-13 15:29:20 -06:00
Jason Etcovitch
0730158918 Datadoge (#16464)
* Install hot-shots

* Add statsd client

* Add some metrics

* Add a comment

* Comment typo fix

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2020-11-13 15:49:50 -05:00
Sarah Schneider
0df213dea6 add the barest minimal dev-toc 2020-11-13 14:31:59 -05:00
Sarah Schneider
5705d334ca Header notification updates (#16425)
* remove middleware that sets notification flags

* move all notification handling into includes/header-notification.html

* update tests
2020-11-12 16:27:29 -05:00
Sarah Schneider
d9b1fa9d40 use new module 2020-11-12 13:31:57 -05:00
Jason Etcovitch
dd91c5a707 "Guides" section of the Actions landing page (#16216)
* Add custom hover shadows

* Support avatars

* Add guide-card include

* Use it in product-landing

* Add gradient styles

* Add guides frontmatter

* Use guideArticles instead of full objects

* Add support for authors

* Add support for category header

* Just pass the whole page

* Use it

* guide.url => guide.href

* Use `*.githubusercontent.com`

* Fix mobile card width

* Remove showDescription check

* Use featureLinks.guideCards

* Forgot an if

* Remove support banner

* Just use login instead of name/avatarUrl

* Change card spacing

* Use circular avatars

* Add margin beneath "Guides"

* Use smaller font

* Even moar spacing

* Remove category

* Remove lead text, move button to bottom right

* update guide cards

* Change author of setting up ci to GitHub

* Attribute node js guide to GitHub

* Add author tag to powershell guide

* update top guides section with correct actions links

* Enforce size for single avatars

* Adjust spacing

Co-authored-by: Cynthia Rich <crichID@users.noreply.github.com>
2020-11-11 12:53:46 -05:00
James M. Greene
287ee2050c EA context middleware cleanup 2020-11-11 00:30:40 -06:00
James M. Greene
1b3af6e8c5 Add Early Access context via middleware to show list of pages 2020-11-11 00:28:12 -06:00
James M. Greene
6940bc3f6a Sort hidden page listing by relativePath 2020-11-10 15:12:06 -06:00