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

519 Commits

Author SHA1 Message Date
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
James M. Greene
72d1265ebc Fix lint-files tests for Early Access to use newly established pattern 2020-11-17 16:30:08 -06:00
James M. Greene
b04f01d890 Ignore early-access as a product for the category-pages tests? 2020-11-17 16:22:44 -06:00
James M. Greene
1280f6f06c Fix rendering tests for /early-access 2020-11-17 16:18:54 -06:00
Sarah Schneider
a3559e12bd remove test that should have been removed in #16490 2020-11-17 16:34:20 -05:00
Nick Schonning
b6de7c6887 chore: Convert Standard to eslint-config-standard (#1328)
* chore: Move standard to ESLint config

* fix: auto-fix ESLint indent issues

* fix: ESLint prefer-regex-literals

* fix: ESLint array-callback-return

- .filter must return a boolean value
- .map replaced with forEach when the value isn't used

* fix: ESLint no-extra-semi
2020-11-17 16:18:18 -05:00
Kevin Heis
890e86cc46 Merge branch 'main' into hidden-docs-alt 2020-11-17 09:58:45 -08:00
James M. Greene
04dff854c2 Include other actions-only EA-cloning tests now 2020-11-17 11:50:18 -06:00
Sarah Schneider
8bb7120185 lint 2020-11-17 11:45:18 -05:00
Sarah Schneider
bed7ecc890 Update tests/routing/deprecated-enterprise-versions.js
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2020-11-17 11:37:54 -05:00
James M. Greene
a53255c8c9 Add tests for site-data-references within article metadata 2020-11-17 09:56:21 -06:00
James M. Greene
5c6f5bb351 Fix site-data-references tests by using uniqWith instead of uniqBy 2020-11-17 09:55:34 -06:00
Sarah Schneider
a895ef68ba update tests 2020-11-16 20:07:04 -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
Kevin Heis
dd02bfa007 Merge main 2020-11-16 10:07:53 -08:00
Kevin Heis
714ca0263b Add hostname to events (#16419)
...so that its easier to filter out localhost and herokuapp domains
2020-11-16 09:49:12 -08:00
James M. Greene
510a0e3871 Add test to verify Early Access does not show up as a product in the sidebar 2020-11-13 15:48:10 -06:00
James M. Greene
272c4722d2 Add new content-linting tests for Early Access 2020-11-13 13:40:25 -06:00
jmarlena
45398e709c Password authentication and OAuth Authorizations API deprecation (#16375)
* Version password examples for GHES only

* Remove unnecessary note

* Versioned deprecation reusable for GHES only?

* Update troubleshooting article

* Version OAuthorizations REST API page for enterprise-only

* Remove deprecations reusable

* Add tentative note

* Rework two-factor authentication sections

* Fix double redirect reference

* versioning tweak

* Versioning tweaks

* adding back the endifs

* random link reformatting

* OAuth Authorization API versioned for 2.22

* /

* Fix internal docs links

* remove static redirect for dotcom

* Try deleting redirect

* Apply @martin389's suggested changes

Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com>

* Remove best practice assumptions

* Apply suggestions from code review

Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com>

* Add note

* restore redirects in content file and remove free-pro-team expected path from test fixture

* change note position

* handle path that was available on dotcom in developer site but is now GHES only

Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
2020-11-13 11:01:17 -08: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
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
James M. Greene
b75cb104c2 Make Early Access tests only run on the docs-internal repo 2020-11-10 15:25:18 -06:00
James M. Greene
3e0d94ec91 Fix pathing on CrowdIn config tests 2020-11-09 23:05:42 -06:00
James M. Greene
4fac3decec Comment out premature tests 2020-11-09 23:04:24 -06:00
James M. Greene
e1f3f6457e Merge branch 'main' into hidden-docs-alt 2020-11-09 13:09:52 -06:00
James M. Greene
f410fd175c Mostly reverting github/docs-internal#15313 2020-11-09 13:07:04 -06:00
Sarah Schneider
dfb29cfb59 Remove no longer needed middleware (#16384)
* remove no longer needed middleware

* remove accompanying test
2020-11-06 14:14:28 -05:00
Nick Schonning
87e8d1b4b0 chore: Remove locales from docs.microsoft.com urls (#1011) 2020-11-04 14:43:27 -08:00
Sarah Schneider
c4b50183a2 update docs path in newly added robots test 2020-11-03 17:17:43 -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
Sarah Schneider
ba310bf991 Support GHAE in Algolia (#16315)
* add frontend search support for GHAE version

* add support for GHAE version to Algolia sync

* add browser tests for frontend search

* if a version can be derived from a path, but it is not a real version (like from a path that 404s), fall back to dotcom

* Update javascripts/search.js

* Update lib/algolia/sync.js
2020-11-03 15:35:56 -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
Chiedo John
7924aea2f8 Instruct search engines to not crawl archived versions (#16292)
* Instruct search engines to not crawl archived versions

* Update middleware/robots.js

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

* Add test

* Fix spooky bug

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-03 08:23:22 -05:00
Matt Pollard
2484cd3f16 Add external GitHub CLI product (#16277) 2020-11-03 08:11:49 +01: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
Rachael Sewell
f22a82fcfb translate openapi versioning (#16202) 2020-10-26 14:38:30 -07:00
Kevin Heis
d743ff9512 Remove more Google Analytics references (#16194) 2020-10-26 14:17:49 -07:00
Sarah Schneider
dc50c7464e Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-10-26 09:52:58 -04:00
Sarah Schneider
1e9a319647 conditional test of early access in actions only 2020-10-26 09:52:16 -04:00
Sarah Schneider
e122f8c706 give link checker access to enterpriseServerVersions (#16198)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2020-10-23 16:19:28 -05:00
Sarah Schneider
a36c112240 test for presence of content/early-access dir 2020-10-23 14:00:25 -04:00
Kevin Heis
3daacd9a6b Add new schemas for redirect, copy, print (#16175)
* Add new schemas for redirect, copy, print

* Update schema-event.js

* Update events.js

* Copy -> Clipboard

* Update events.js
2020-10-23 09:31:58 -07:00
Sarah Schneider
095410dcb0 Throw error on mismatched versioning (#16191)
* throw an error if a page is available in a version that its parent product is not available in

* add tests

* fix one Insights content file versioned for FPT when Insights is only available in GHES currently
2020-10-23 11:13:05 -04: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
Kevin Heis
8940279c82 Remove Google Analytics (#16158) 2020-10-22 15:41:46 -07:00