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

264 Commits

Author SHA1 Message Date
Arhell
42f6e614be fix dropdown on mobile 2020-12-03 00:50:27 +02:00
Sarah Schneider
f5fc721cfe do not show header notifications on 404 page 2020-12-02 15:00:00 -05:00
Sarah Schneider
5b49fdff58 do not link to early access landing page in sidebar and breadcrumbs 2020-12-02 13:40:24 -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
Jason Etcovitch
b081355d42 Default to "GitHub" as author in guide-card (#16717)
* Default authors to ['GitHub']

* Remove now-redundant GitHub authors
2020-12-02 16:32:37 +00: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
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
247e52b8d9 Fix the link (#16531)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-11-19 09:28:48 -05:00
James M. Greene
d402a60833 Merge branch 'main' into hidden-docs-alt 2020-11-17 17:56:25 -06:00
Jason Etcovitch
8f2b4eb450 Merge branch 'main' into repo-sync 2020-11-17 18:02:58 -05:00
Rachael Sewell
82407992d2 remove inactive sidebar links (#16500) 2020-11-17 14:26:14 -08:00
Kevin Heis
5bd61aa4b8 Experiment with moving Helpfulness Prompt to bottom of the page (#16448)
* Experiment with moving Helpfulness Prompt to bottom of the page

* Update experiment.js

* Update experiment.js
2020-11-17 14:10:03 -08:00
Chiedo John
a1a56f5a7e Merge branch 'main' into fix-footer 2020-11-17 13:25:34 -05:00
Kevin Heis
890e86cc46 Merge branch 'main' into hidden-docs-alt 2020-11-17 09:58:45 -08:00
Sarah Schneider
ee97fd40aa Merge branch 'main' into do-not-show-elements-in-archived-versions-followup 2020-11-17 11:38:11 -05:00
Jason Etcovitch
cddf1183c1 Add privacy link to helpfulness prompt (#16496)
* Add link

* Tweak spacing
2020-11-17 11:16:53 -05:00
Sarah Schneider
8243dee819 add space 2020-11-16 20:32:11 -05:00
Sarah Schneider
24af9b3b9b update deprecation banner include 2020-11-16 20:06:56 -05:00
Sarah Schneider
ded23fe119 update contribution and helpfulness includes 2020-11-16 20:06:43 -05:00
Sarah Schneider
a8f16c63f7 Do not include feedback links in deprecated GHES versions (#16485)
* do not render if this is the oldest supported GHES release

* add tests
2020-11-16 17:09:19 -05:00
Sarah Schneider
58533b1d50 Early access header notification (#16482)
* add early access reusable text

* add early access header notification

* we can use a boolean in this oneoff block
2020-11-16 13:37:24 -05:00
Kevin Heis
dd02bfa007 Merge main 2020-11-16 10:07:53 -08:00
Arhell
a9da64ccd5 add responsive to footer 2020-11-16 00:42:04 +02:00
Sarah Schneider
712003941f Release candidate banner script (#16427)
* remove middleware that sets notification flags

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

* update tests

* add release candidate header notification

* add release candidate banner text

* new script to add or remove a release candidate banner

* Update script/release-banner.js

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>

* clarify error message

* empty commit to rerun CI

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2020-11-13 12:12:53 -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
Jason Etcovitch
7b31c08e16 "All articles" component of Actions landing page (#16318)
* Spike out all-articles.html

* Use it somewhere

* Do the thing

* Use 3 columns

* Increase space between links

* Hide standalone categories

* Move all-articles to bottom of product-landing

* Add obj_size filter

* Add buttons if numArticles > 10

* Add click event to show

* Add a chevron ^

* Assign maxArticles for some DRY fun

* Add some comments
2020-11-12 12:57:30 -05:00
Jason Etcovitch
9e38a854b9 Filterable code examples on Actions landing page (#16276)
* 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

* Add contextualizers/actions-code-examples

* Use code-example-card include

* Tweak sizing/shadows

* Add a basic filterer

* Some visual tweaks

* labels => tags

* Cleanup some code

* Improve spacing on mobile

* Add "No results!" blurb

* Fix a boog

* Tweak spacing

* Remove support banner

* Improve "No results" state

* Just use login instead of name/avatarUrl

* Change card spacing

* Use circular avatars

* Add "Show more" button

* Add margin beneath "Guides"

* Use smaller font

* Assume github.com for code examples

* Show two columns at small screen

* Make "Show more" a btn

* Use the "repo" octicon

* Link to contributing guide

* Use a YAML file instead of a middleware

* Link straight to the file

* Fix some wonky markuip

* Fix a broken link

* Fix the borked test

* Allow variables that aren't strings

* Fix remaining tests
2020-11-12 11:35:43 -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
e1f3f6457e Merge branch 'main' into hidden-docs-alt 2020-11-09 13:09:52 -06:00
Chiedo John
5ea10fc4af Merge branch 'main' into fix-css-class 2020-11-04 09:41:56 -05:00
Sarah Schneider
0cf94f26b7 Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-11-03 17:09:22 -05:00
Jason Etcovitch
0b8d67464a Remove the thing (#16294)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-11-03 13:50:02 -05:00
Nick Schonning
b44d498903 fix: CSS class had single quote in name 2020-11-03 13:35:07 -05:00
Kevin Heis
8b8d6d24d3 Merge branch 'main' into hidden-docs-alt 2020-11-03 10:19:14 -08:00
Jason Etcovitch
5d09adb106 Add/use small-footer for Actions landing page (#16265)
* Add/use small-footer

* Fix borked HTML

* Extract scripts to new include

* Add spacing

* Fix some padding

* Fix a test that uses /actions

* Fix old links

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

* Update /developers in general footer

* Don't hard code free-pro-team

* Use the small-footer everywhere

* Tweak border

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-03 13:12:25 -05:00
James M. Greene
521d11b6a4 Merge branch 'main' into hidden-docs-alt 2020-11-02 18:03:48 -06:00
Laura Coursen
a3e1733aa1 GitHub AE (GHAE) (#16090) 2020-11-02 15:12:44 -06:00
Sarah Schneider
63e3f917c6 Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-11-02 14:21:19 -05:00
Jason Etcovitch
174d8539c6 Support arbitrary keys in new featuredLinks frontmatter (#16239)
* Add featuredLinks to frontmatter

* Parse them in featured-links.js

* Remove old raw setup

* Use them

* Missed a couple

* Update translation files

* Fix frontmatter schema

* Loop over the right object

* Also update translations' usage

* Update docs and tests

* Better README comment

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

* Return next()

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-10-27 13:53:10 -04:00
Jason Etcovitch
85ce256a6d Fix broken "Enabled for GitHub Apps" link (#16236)
* Fix the thing

* Use enabledForGitHubApps boolean properly

* Update includes/rest_operation.html

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

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-10-27 12:39:54 -04:00
Rachael Sewell
13c33d4039 [Shipping 10.23.20] add webhook config REST API (#16144)
* add webhook config REST API

* add versioning for dotcom/2.23+

* check for empty parameters with request bodies

* add latest rest-api-operation module

* Apply suggestions from code review

Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com>
2020-10-26 17:25:09 -07:00
Kevin Heis
d743ff9512 Remove more Google Analytics references (#16194) 2020-10-26 14:17:49 -07:00
Sarah Schneider
d7be84f277 Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-10-23 10:28:52 -04:00
Sarah Schneider
247fa66c09 hide contribution button on hidden docs 2020-10-20 17:20:44 -04:00
Sarah Schneider
d818c9ff4d restore old hidden docs implementation 2020-10-20 17:19:14 -04:00
Kevin Heis
4a1f549f75 Merge branch 'main' into fix-support-banner 2020-10-20 11:02:32 -07:00
Sarah Schneider
da60aa51e1 Support enterpriseServerVersions in Liquid statements (#16058)
* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions

* update references from context.enterpriseVersions -> context.enterpriseServerReleases

* add test

* also test oldest supported enterprise version in addition to the latest

* Script to update not-free-pro-team conditionals (#16060)

* script to update not-free-pro-team conditionals

* change string to regex so we can do replace all

* remove stray test.only

* Update middleware/context.js

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

* Update tests/unit/page.js

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

* Update tests/unit/page.js

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

* Update tests/fixtures/page-versioned-for-all-enterprise-releases.md

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

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2020-10-15 16:20:41 -04:00
Arhell
1585172da7 add support banner container 2020-10-12 00:39:12 +03:00
Ihor Sychevskyi
3d05341a5a ui update support buttons (#248)
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2020-10-08 10:58:59 -04:00