1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Commit Graph

102 Commits

Author SHA1 Message Date
Sarah Schneider
c14063d22f use regex to be more precise in href matching than just startsWith 2021-05-19 11:58:34 -04:00
Sarah Schneider
023f8a5ff4 we want to run generic-toc middleware on hidden pages too 2021-05-19 10:45:23 -04:00
Sarah Schneider
7c4e1a1f0d add localization fallback 2021-05-18 20:44:02 -04:00
Sarah Schneider
a5d52dcef0 Add landing page for GitHub Enterprise (#19041) 2021-05-12 11:55:32 +00:00
Sarah Schneider
b1e1a3835f update the middleware 2021-05-07 17:34:43 -04:00
Sarah Schneider
aa0c801f9c Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes 2021-05-06 15:57:26 -04:00
Sarah Schneider
af519b5131 use article layout for TOCs instead of new separate generic-toc layout that has to be maintained 2021-04-21 13:05:52 -04:00
Sarah Schneider
324d5d7da7 use rendered title in breadcrumbs 2021-04-20 14:04:42 -04:00
Sarah Schneider
b5ffeb8e73 parse Liquid in titles in siteTree and use full titles in generic TOC but short titles in sidebar 2021-04-20 14:02:12 -04:00
Sarah Schneider
5d03537551 differentiate between TOCs with grandchildren vs. only children 2021-04-20 11:15:03 -04:00
Sarah Schneider
d1524b16a5 add feature flagged middleware 2021-04-15 14:46:16 -04:00
Sarah Schneider
974b3bb148 add new middleware contextualizers that are feature flagged 2021-04-15 14:36:16 -04:00
Sarah Schneider
03ee839af6 Merge branch 'main' into add-layouts-middleware 2021-04-13 16:03:36 -04:00
Sarah Schneider
1623191243 extract layout handling into separate middleware 2021-04-13 14:24:06 -04:00
Mike Surowiec
02cfde71bf Merge branch 'main' into prerender-gql-input-objects 2021-04-12 07:21:18 -07:00
Mike Surowiec
9185eb3c2a pre-render graphql input-objects
resolves #18269
2021-04-09 08:32:42 -07:00
Vanessa Yuen
bbd9f03f6e Populate product-landing "What's new" section using GitHub Changelog (#18328)
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2021-04-08 20:51:37 +00:00
Rachael Sewell
0df04f99c5 deprecate 2.20 version (#18354) 2021-03-23 19:38:04 +00:00
Sarah Schneider
fb0cb29b94 add convenience props to context obj for use in release notes layout 2021-03-19 10:20:14 -04:00
James M. Greene
c940dcd98b Middleware overhaul! (#18218)
* Middleware overhaul!

- Remove unnecessary 'async' keywords from middleware functions
- Ensure all middleware functions we create have names
- Wrap the method contents of all async middleware functions in a try-catch+next(error) pattern

* Use asyncMiddleware wrapper instead of try-catch+next(error) pattern

* Remove unnecessary try-catch+next(error) pattern from context middleware
2021-03-11 01:12:41 +00:00
Sarah Schneider
063e22d151 re-combine release notes middleware 2021-03-08 15:03:34 -05:00
Sarah Schneider
b3fa73acd8 filter out deprecated patches in release notes middleware 2021-03-04 14:48:38 -05:00
Sarah Schneider
8eb1e69586 separate the middleware for enterprise server vs. github-ae release notes 2021-03-01 17:03:33 -05:00
Jason Etcovitch
5cabf531da Convert .rc* versions to proper semver, then compare (#17600) 2021-02-01 19:13:35 +00:00
Jason Etcovitch
1bf93673ec Add release notes for GHES 3.0.0.rc2 (#17547)
* Add 0-rc2

* Started adding release notes

* added more line items

* finished initial draft of enterprise 2 fix notes

* some more line items added

* updated known issues and took out rc1 fixes

* added download link bug fix

* added new known issues identified in rc2

* Fix a typo

* Lint YAML

* Tweak sorting for new version schem

* Use today's date

* removed links to PRs and reduced notes to most important ones

* Fix indentation

* bug_fixes => bugs

* spruce it up

* typo

* update without changes

Co-authored-by: Amulya Raja <53104849+amulyaraja@users.noreply.github.com>
Co-authored-by: Maya <maya-ross@github.com>
Co-authored-by: Meg Bird <megbird@github.com>
2021-01-29 15:25:50 -07:00
Jason Etcovitch
591e22d8b1 Rename release notes for 3.0.0-rc to 3.0.0.rc (#17510)
* Change -rc versions to .rc\d*

* Fix the download link

* Rename to 3.0.0.rc1
2021-01-27 15:27:48 +00:00
Sarah Schneider
3bf432e656 refactor 2021-01-15 11:21:52 -05:00
Sarah Schneider
a394190ad6 Merge branch 'remove-fpt' of github.com:github/docs-internal into remove-fpt-helper 2021-01-14 17:13:06 -05:00
Sarah Schneider
ecaec6e78e Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-14 17:12:27 -05:00
Rachael Sewell
81a9415ff4 fix GraphQL exception (#17274) 2021-01-14 11:17:43 -08:00
Sarah Schneider
b511758057 add remove-fpt helper function 2021-01-14 13:34:32 -05:00
Sarah Schneider
ed8b46267c Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-14 12:08:27 -05:00
Sarah Schneider
b6032f285c remove helper from this branch (to be re-added in child branch for easier reviewing) 2021-01-14 12:07:49 -05:00
Melanie Yarbrough
c2336bb11e [DO NOT MERGE] GitHub Enterprise Server 3.0 release candidate megabranch (#16479) 2021-01-13 19:16:05 -08:00
Sarah Schneider
d752732b16 update refs to reinstated findPage() 2021-01-13 16:49:35 -05:00
Sarah Schneider
9d318e0380 Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-08 11:06:27 -05:00
Rachael Sewell
3194a2db0b fix exception with unsupported version (#17088)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-08 14:08:05 +00:00
Sarah Schneider
33f93e39c7 remove overloaded helper functions and move code directly where it is used 2021-01-07 13:14:44 -05:00
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
Sarah Schneider
d43acb967a Merge branch 'main' into move-explorer-to-docs 2020-12-10 11:29:37 -05:00
Sarah Schneider
a4f2444654 new Explorer layout with iFrame 2020-12-08 13:38:37 -05:00
Sarah Schneider
c55080e866 updates for refactored req.context.pages 2020-12-08 11:10:10 -05:00
Sarah Schneider
bf61f53d4f lint 2020-12-03 12:24:41 -05: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
77576177b1 move early-access link middleware to contextualizers 2020-12-01 16:20:09 -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
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
Laura Coursen
a3e1733aa1 GitHub AE (GHAE) (#16090) 2020-11-02 15:12:44 -06:00
Rachael Sewell
f22a82fcfb translate openapi versioning (#16202) 2020-10-26 14:38:30 -07:00