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

356 Коммитов

Автор SHA1 Сообщение Дата
Kevin Heis 1d5e216404
Speed up warmServer by loading pages (and files) asynchronously (#16752)
* Async `new Page`

* Update pages.js

* Update pages.js

* Update pages.js

* Update pages.js

* Update pages.js

* Using mapLimit

* Update pages.js

* Test updates

* Update pages.js

* Move exists to page class

* Test fixes

* Slightly faster localized paths process
2020-12-09 16:57:18 +00:00
Simran 2a3fdd43ac
Merge branch 'main' into default-platform 2020-12-09 02:06:46 +01:00
Simran Spiller 4dc1ce1322 Lint 2020-12-09 02:01:54 +01:00
Simran Spiller 64f2d638d5 Add support for defaultPlatform frontmatter
TODO: add 'all' to frontmatter schema enum?
2020-12-09 01:28:09 +01:00
Sarah Schneider fe29938bf7 Merge branch 'main' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-08 15:57:26 -05:00
Melanie Yarbrough 91d3857341
[DO NOT MERGE] Universe 2020 Day 1: December 8, 2020 (#16480)
* Update README

* [Universe] Dark mode (#16545)

* Dark mode updates (#16696)

* [Universe] Corporate sponsors (#16457)

* Dependency review beta (#16563)

* Add placeholder topic file

* Revert change I didn't make

I'm not sure where this change came from or why it's showing up in my PR here but I didn't make this change and it's not part of Dependency Review so I'm reverting it.

* Un-revert previous change

OK I see what happened there. I was comparing the PR to main rather than the Universe megabranch, hence it showed a change I didn't make.
This commit undoes the change I do not want to revert on the megabranch.

* Update image to add the Checks tab

* Finish updating topic to mention DR

* Fix check errors

* Fix another versioning error

* Add a sentence about supported ecosystems

* Add review changes

* Remove Further reading topics in same category

As suggested by James, I've removed the links to topics that are in the same `/collaborating-with-issues-and-pull-requests/` category as this topic.

* Update content/github/managing-security-vulnerabilities/about-managing-vulnerable-dependencies.md

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

* Update content/github/managing-security-vulnerabilities/about-managing-vulnerable-dependencies.md

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

* Update content/github/managing-security-vulnerabilities/about-managing-vulnerable-dependencies.md

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

* Update content/github/managing-security-vulnerabilities/about-managing-vulnerable-dependencies.md

* Updates in the light of Maya's review

* Remove use of "exploit" in description

* Change 'dependency review summary' to 'dependency review'

See PR review comment from Maya.

* Mention that the age of the dependency is given

* Update screenshots to latest GUI

* Add details of dependency ordering within a DR

* Update content/github/collaborating-with-issues-and-pull-requests/reviewing-dependency-changes-in-a-pull-request.md

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

* Update content/github/managing-security-vulnerabilities/about-managing-vulnerable-dependencies.md

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

* Update content/github/visualizing-repository-data-with-graphs/about-the-dependency-graph.md

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>

* [Universe 2020] New audit log REST API endpoint (#16699)

* Minimal updates for preview

*  API previews 

* Update beta note

*  Update API previews 

*  Update previews 

* Add draft section for git events

* Clean API previews

* More fixes + API previews

* Address review comments + update API previews

* Mention cursor-based pagination

* Update content/rest/overview/resources-in-the-rest-api.md

Co-authored-by: Jeff Saracco <jeffsaracco@github.com>

* Temporarily revert API previews

* Small tweaks from review comments + API previews

* revert json schemas

* Updating OpenAPI descriptions (#16776)

* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Jeff Saracco <jeffsaracco@github.com>
Co-authored-by: skedwards88 <skedwards88@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>

* [Universe 2020] GitHub Actions: Workflow visualization (#16629)

* initial empty commit

* replace image used only for dotcom

* add new image and version usage

* add new image and version usage

* add new image and version usage

* add new image and version usage, delete unneeded image

* add new image and version usage, fix incorrect image

* add new image and version usage

* add new image and version usage

* add new image and version usage

* add new image and version usage

* update screenshot update

* add new image and version usage

* add new image and version usage

* update text

* update images and fix list numbering

* add step with graph

* Add missing versioning

* add overview of visualization

* fix title to match filename

* add beta note

* update wording

* Restructuring packages (#16731)

* restructuring packages

* moving more content

* moving more content

* fixing the toc for guides

* removing CR from the landing page

* adjusting qs

* updating npm

* enhancing guides

* Update updating-github-insights.md

* fixing link problems

* fixing link problems

* redirecting the redirects

* another change

* fixing the guides landing page

* add packages quickstart

* moving CR content

* adding some descriptive text

* add packages landing page

* adding guide content back

* update popular articles based on data

* fix caps on product name

* try removing product from front matter

* Update content/packages/quickstart.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* Update content/packages/quickstart.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* add node package instructions to quickstart

* fixing links and adding redirect

* fixing redirects

* renaming to container guides

* renaming to container guides and fixing reusables

* adding context and about section to CR

* removign landign page extra titles and descriptions

* reverting the packages

* updating link

* Apply suggestions from code review

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* updating

* update test to reflect redesigned product landing page

* Add private vs public clarification

* Fix borked test

* filter out standalone category files from test

Co-authored-by: Cynthia Rich <crichID@github.com>
Co-authored-by: Cynthia Rich <crichID@users.noreply.github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>

* Add discussions video
See https://github.com/github/docs-internal/pull/16759

* Remove typos

* update article name in test

Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com>
Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
Co-authored-by: Jeff Saracco <jeffsaracco@github.com>
Co-authored-by: skedwards88 <skedwards88@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: Meg Bird <megbird@github.com>
Co-authored-by: Leona B. Campbell <3880403+runleonarun@users.noreply.github.com>
Co-authored-by: Cynthia Rich <crichID@github.com>
Co-authored-by: Cynthia Rich <crichID@users.noreply.github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2020-12-08 12:20:02 -05:00
Sarah Schneider e2d114b96b lint 2020-12-08 11:47:14 -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 5164fe95d3 yank outdated redirect code 2020-12-08 09:30:26 -05:00
Meg Bird 754ceda517
[Universe] Discussions Public Beta (#16547)
* Update README

* create structure for discussions landing page

* is everything broken

* [Universe] Dark mode (#16545)

* Fix title

* Add Discussions product

* Correct title

* Correct title

* Move quickstart article

* Move quickstart back out into article

* Add and incorporate reusables

* Move information about search

* Draft conceptual information

* Draft best practices

* Draft further reading

* Draft product introduction

* Draft introduction

* Add author metadata

* Pluralize

* Fix typos

* Add introduction

* Bump Octicons

* Add some reusables

* Add images

* Revise article

* Draft article

* Change word

* 🔪 the gerund

* Add reusable

* Revise introduction

* Revise list

* Simplify

* Revise reusable

* Fix reusable; add context

* Rename reusable

* Deduplicate conceptual information

* 🔪 gerund

* Add link to further reading

* Move link and dispose of tip

* Delete space

* Add images

* Add conceptual section

* Add word

* Delete newline

* Revert package.json to state on main

* Tweak images

* Draft article

* Add product name

* Remove beta note

* Use product name for future-proofing

* Begin adding search information

* Fix copypasta

* little edits

* build out a bit more of the guides content

* Don't mention integrations for now

* Escape quote

* Remove authorship information for new defaults

* Finish drafting article

* Replace encoded character to match description

* Revise away inline link

* Accommodate 'for more information' in reusable

* Fix links

* Fix one last bit of copypasta

* Update indices

* Temporarily remove heading

* Update introduction

* Add new article 💀

* Remove commits from universe-2020-megabranch

* Add article 💀

* update with a very rough draft

* Add content about collaboration options to "About repositories"

* Add content about discussions to "About issues"

* Reorder content

* Add is:discussion query

* update with a few mmore fleshed out sections

* update with more structure

* Add reusable

* Add screenshots

* Clear way for actual procedural

* Discussions landing page "Communities" section (#16692)

* Make button Overview-able

* Make card filtering more extensible

* Guard for missing attributes

* Use arbitrary dataset attributes

* Add section with discussions-community-card

* Tweak show more button behavior

* Conditionally show "Show more"

* Add beta_product frontmatter/label

* Remove beta callout note

* Hide changelog with no items

* Finish importing community info

* Fix borked markup

* Omit search abr

* Two columns should actually be two columns

* Use org image, change card layout

* Add two more examples

* Fix title

* Escape quote

* Escape another quote

* Draft article

* Lower case

* Relocate conceptual information

* Update qualifier name

* Draft article

* Add conceptual information and links

* Remove duplicative section

* Fix copypasta

* Revise reusable

* Update link

* Add content on categories

* Lint the discussions YAML file

* Update introduction and permissions

* 

* Reusablize; fix link

* more planning content stuff

* Escape quotes

* Align prerequisites

* Soften

* Clean up prerequisites

* Fix titles; version; add screenshot

* Fix links

* Actually fix links

* Use better variable

* Mention pinning

* Update screenshots

* Add screenshot

* forgot to committ

* update with reusable

* add that screenshot

* beef up landing page a bit

* remove extra space

* messed that up

* fix hardcoded linkks weirdo

* fix tests

* update with permissions content

* update with placeholder

* filter out standalone category files from test

* update

* update @becca's  feedback

* update with more feedback

* so many updates

* fix links

* fix some more tests

* flesh some more things out

* update with further reading blah blah

* fix some things

* remove the gate-features label for beta ship only

* Add discussions video to product landing page (#16759)

* Add discussions video placeholder

* This might work maybe

* fix tests

* apply all of @becca's and @lecoursen's  feedback ❤️

* rename to fix test

* Revert "Add discussions video to product landing page (#16759)"

This reverts commit 2247e5d0881ca6b36cee421218e8341a7cc12ac7.

* update with test fix

Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
2020-12-07 15:00:35 -07:00
Sarah Schneider 59c0b8f9b8 Merge branch 'check-links-improvement-redux' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-07 11:56:34 -05:00
Sarah Schneider 526c05f4ce support hardcoded versions in links 2020-12-07 11:32:39 -05:00
Sarah Schneider 17b21b6ec3 lint 2020-12-06 21:01:05 -05:00
Sarah Schneider f966af7a15 add new arrays to exported module 2020-12-06 20:44:56 -05:00
mc 8025d9216d
Secret scanning webhooks & APIs (#16608)
Co-authored-by: shati-patel <shati-patel@github.com>
Co-authored-by: Grey Baker <greysteil@github.com>
Co-authored-by: Prashanth Kannan <prashkan@github.com>
Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2020-12-04 09:39:29 +10: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 e469cf25b4
Merge branch 'main' into check-links-improvement-redux 2020-12-03 15:54:18 -05:00
Octomerger Bot 218d08f38d
Branch was updated using the 'autoupdate branch' Actions workflow. 2020-12-03 12:53:19 -08: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 c410020bda
Update engine.js 2020-12-03 08:56:24 -08:00
Kevin Heis 92ba8d904e
Merge branch 'main' into experiment-with-react-and-mdx 2020-12-03 08:49:34 -08: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 2f10991ea5 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-03 10:29:46 -05:00
Kevin Heis 8731b68025 Update engine.js 2020-12-02 14:19:30 -08:00
Kevin Heis 791c7c6296 Run lint 2020-12-02 14:15:18 -08:00
Kevin Heis 84473cbc8b Update engine.js 2020-12-02 14:14:12 -08:00
Kevin Heis 07a78222ae Merge branch 'main' into experiment-with-react-and-mdx 2020-12-02 14:10:51 -08:00
James M. Greene 4e1d62b91a
Remove free-pro-team support from Spanish translation of Insights doc (#16730)
* Remove free-pro-team support from Spanish translation of Insights doc

* Throw errors for mismatched products in non-English content pages as well
2020-12-02 22:07:56 +00:00
Sarah Schneider 1258092a41 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 14:22:10 -05:00
Robert Mosolgo a7d042a898
Merge branch 'main' into build-changelog 2020-12-02 13:56:50 -05:00
Sarah Schneider 3f64bb1d31 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 13:51:00 -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
Nick Schonning 3d00a7314b
fix: LinkHeader link trailing slash (#1503)
Co-authored-by: hubwriter <hubwriter@github.com>
2020-12-02 17:44:41 +00:00
github-openapi-bot 5f0dd145b7
Updating OpenAPI descriptions (#16712) 2020-12-02 15:31:14 +00:00
github-openapi-bot 8349bdfdf1
Updating OpenAPI descriptions (#16685)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2020-12-02 01:29:53 +00:00
James M. Greene 5f6994d001
Instrument the `warmServer` method more precisely (#16698)
* Instrument the `warmServer` method more precisely

This way we only report on it if we have to actually prime it vs. with every call to get the cached results

* Skip the extra variable

* Use Boolean to make intent more explicit
2020-12-01 19:05:24 -06:00
Robert Mosolgo 805db2e4df
Merge branch 'main' into build-changelog 2020-12-01 15:46:51 -05:00
Robert Mosolgo 69bd6f2dbd Remove build-changelog-from-markdown.js 2020-12-01 15:17:29 -05:00
Sarah Schneider 6304c863fe lint 2020-12-01 13:07:00 -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
Sarah Schneider 4bc53534ba Merge branch 'main' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-01 10:25:29 -05:00
Sarah Schneider 0240695739 Merge branch 'main' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-01 09:45:43 -05:00
Sarah Schneider 88d895fb50 Merge branch 'main' of github.com:github/docs-internal into deprecate-static-files 2020-12-01 09:15:29 -05:00
github-openapi-bot 336f2f0f91
Updating OpenAPI descriptions (#16667) 2020-12-01 10:09:48 +10:00
Sarah Schneider f66d1a472c Merge branch 'main' of github.com:github/docs-internal into deprecate-static-files 2020-11-30 13:56:11 -05:00
Sarah Schneider 8c1a9c1eed
Merge branch 'main' into version-graphql-objects-links 2020-11-30 13:29:07 -05:00
Sarah Schneider 0a36eaad02 ran script/enterprise-server-deprecations/remove-static-files.js 2020-11-30 13:16:13 -05:00
Sarah Schneider d9c4409fe7 reran script/graphql/update-files.js 2020-11-30 11:49:44 -05:00
Sarah Schneider 416bc384a6
Merge branch 'main' into fix-works-with-github-link 2020-11-30 11:41:29 -05:00
Sarah Schneider d0efefdc21
Merge branch 'main' into version-graphql-objects-links 2020-11-30 11:23:51 -05:00
github-openapi-bot 3daf8a4306
Updating OpenAPI descriptions (#16647) 2020-11-27 12:29:56 +10:00
Sarah Schneider a1517ce1da delete no longer needed link checking code 2020-11-25 20:05:34 -05:00
Sarah Schneider 3469049d70 delete no longer needed link checking code 2020-11-25 20:05:18 -05:00
Sarah Schneider 7ee7d1ef26 delete no longer needed link checking code 2020-11-25 20:04:30 -05:00
Sarah Schneider fdb86009aa ran script/graphql/update-files.js with the objects page objects 2020-11-25 19:22:59 -05:00
Sarah Schneider 739d8761d4
Merge branch 'main' into fix-works-with-github-link 2020-11-25 11:42:50 -05:00
Jason Etcovitch 4484068e01
Move render-content code to this repo (#16544)
* Move render-content files in here

* Replace existing file with nested index.js

* Copy in tests and jest-ify

* Update docs

* Uninstall @github-docs/render-content

* Bring over README

* Add missing dependencies

* Fix require paths
2020-11-25 11:20:23 -05:00
Sarah Schneider aa0facaba5 ran script/rest/update-files.js --decorate-only 2020-11-25 09:21:37 -05:00
Jason Etcovitch 1ec8c35e34
Refactor indented_data_reference to use Liquid internals (#16623)
* Refactor indented-data-reference

* Add spacing around referenced reusables

* Update expected test output

* Fail silently with empty valuer
2020-11-24 16:50:20 -05:00
Sarah Schneider 8f0093c63a
OpenAPI tooling updates (#16320) 2020-11-24 12:20:10 -08:00
Lucas Costi 2ca2698703
Merge branch 'main' into find-page-in-version-redux 2020-11-24 10:40:08 +10:00
Jason Etcovitch 18561c059f
Remove additional whitespace (#16593) 2020-11-23 15:06:57 -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
Sarah Schneider 642e669dec Merge branch 'main' of github.com:github/docs-internal into build-indices-for-given-version 2020-11-20 16:02:49 -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 86c9bbf7c3
Instrument warm-server via Datadog (#16566)
Co-author: @chiedo

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-11-20 13:09:39 -05:00
Sarah Schneider 180c7c7db1 build specified language or version indices only 2020-11-20 10:43:39 -05:00
Sarah Schneider 1a3412ee27
Merge branch 'main' into format-broken-links-report 2020-11-19 16:58:03 -05:00
Jason Etcovitch 52dbd92144
Rewrite links in Page.intro with language (#16550)
* Add defaultLanguage behavior

* Add a million logs because I'm confused

* Rewrite intro links

* Undo changes to detect-language

* Add a test
2020-11-19 15:53:35 -05:00
Sarah Schneider cae6b3439e
Merge branch 'main' into format-broken-links-report 2020-11-19 15:47:58 -05:00
Rachael Sewell 4219c176ad
run graphQL updater script (#16546) 2020-11-19 11:55:36 -08:00
Sarah Schneider 018b1316bf format excluded links for use in regex 2020-11-19 11:34:41 -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 84f0aac8f6 Merge branch 'main' of github.com:github/docs-internal into deprecate-2.19 2020-11-17 21:20:38 -05:00
Leona B. Campbell 73e326ffdd
adding latest graphql changes (#16507) 2020-11-17 17:37:17 -08: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
Sarah Schneider 75bf7a99f6 move 2.19 to deprecated and remove dev docs routes for 2.19 from static redirect file 2020-11-17 16:33:52 -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 88a889a97f Ensure early-access site-data-references are detected by the tests 2020-11-17 09:56:48 -06:00
Sarah Schneider b5dddd4ac9 move deprecation date calculation from client side to server side 2020-11-16 20:06:16 -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
Jason Etcovitch a333b6552f
Use the right Datadog API key (#16468)
* Do the thing

* Retrigger Actions
2020-11-16 11:29:27 -05:00
James M. Greene 53910e2b9d Changes to handle a symlink Early Access environment 2020-11-13 15:27:27 -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
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 cdb935cc63 Merge branch 'main' of https://github.com/github/docs-internal into find-page-in-version-redux 2020-11-12 13:32:04 -05:00
Sarah Schneider 9bfaee1dc1 use new module 2020-11-12 13:28:38 -05:00
Sarah Schneider 5822fa4747 add new module 2020-11-12 13:28:32 -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 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 10b9000ef2 Add early-access back in as a product 2020-11-10 14:37:03 -06:00
Sarah Schneider ce33df1cd3
New broken link report (#16412)
* add linkinator npm package

* add new script that uses Linkinator

* reorg the excluded links file and update comments

* replace blc artifacts with linkinator artifacts in .gitignore

* update the scheduled workflow to use the new script

* dismantle BLC scripts

* add workflow_dispatch event so we can test this manually

* npm uninstall broken-link-checker

* use different exit codes depending on whether broken links are found
2020-11-10 15:28:44 -05:00
James M. Greene 2c030a8967 Remove early-access from the sorted product ID list??? 2020-11-09 19:44:10 -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
Leona B. Campbell 1e33237812
graphql latest (#16370) 2020-11-05 17:23:25 -08:00
Sarah Schneider e9c09f1f7d
ran script/update-enterprise-dates.js (#16337) 2020-11-04 10:49: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
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
Jason Etcovitch 7d55775285
Actions landing page top bits (#16266)
* Add changelog frontmatter

* Reorganize some properties

* Move sections to product-landing

* Add more items

* Changing heading design

* Redesign hero

* Remove "GitHub Actions:"

* Popular ~articles~

* Use proper date formatting

* Quick start => Quickstart

* Add a comment

* Add to content/README
2020-11-03 13:23:50 -05:00
Kevin Heis 8b8d6d24d3
Merge branch 'main' into hidden-docs-alt 2020-11-03 10:19:14 -08: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
Rachael Sewell 1fe4e51eaa
update openapi schema name (#16231) 2020-10-27 11:28:33 -07: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 93849795e0
Record redirect events (#16181)
* Record redirect events

* Update index.js

* Update record-redirect.js

* Only run when it can send to Hydro

* Update record-redirect.js
2020-10-26 10:18:42 -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
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 f4e05b189c exclude hidden products in addition to hidden pages from Algolia 2020-10-22 10:07:41 -04:00
Sarah Schneider e44bef852a Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-10-21 15:37:31 -04:00
Kevin Heis 380c4dcc82
Hydro exit event (#16067)
* Start a basic exit event

* Combine to one performance function

* Lint

* Fancy operators

* Update events.js

* Update events.js

* Update cookie-settings.js

* Add scroll tracking

* Tell "standard" to use babel-eslint

* Throttle scroll tracking

* Lint

* Use sendBeacon

* Update index.js
2020-10-21 09:42:02 -07:00
Sarah Schneider beaf73378d hide early-access from public list of products 2020-10-21 09:43:23 -04:00
Chiedo a48998c789 Keep all the React Engine logic in one file 2020-10-21 09:25:50 -04:00
Chiedo fe812048a4 Make the rendering engine safe 2020-10-21 08:43:04 -04:00
Sarah Schneider f40f2419be support hidden products, which will just be early-access in practice 2020-10-20 17:22:08 -04:00
Sarah Schneider d818c9ff4d restore old hidden docs implementation 2020-10-20 17:19:14 -04:00
Chiedo 7573ff2471 Add some comments that explain logic 2020-10-20 09:26:52 -04:00
Chiedo b8c8e0f545 Minor performance improvement 2020-10-20 09:25:28 -04:00
Chiedo 3c71bc71ed Minor patches 2020-10-20 09:06:43 -04:00
Chiedo 89d745b164 Remove uneeded code 2020-10-20 09:03:32 -04:00
Chiedo 8ef2822b48 Add performance optimization 2020-10-20 09:00:22 -04:00
Kevin Heis 8982d200cc
Migrate experiments and helpfulness to Hydro (#16059)
* Migrate experiments and helpfulness to Hydro

* Clean out old tests

* ...and more old tests to delete
2020-10-19 14:31:54 -07:00
Chiedo d51688b281 Everything working but CodeEditor 2020-10-19 09:04:03 -04:00
Chiedo c5a34e49e3 Set up foundations for code switcher 2020-10-18 22:03:44 -04:00
Chiedo 797adb1a0d Add a cool table component 2020-10-18 17:35:50 -04:00
Chiedo b781e43893 Add experimental react support within markdown
Also added fronmatter for interactive: true to turn on React on a file by file
basis and prevent slowing down the builds for non-react files
2020-10-18 14:44:34 -04:00
Leona B. Campbell 5b725ddc27
ran the script (#16078) 2020-10-16 11:42:01 -07:00
Jason Etcovitch 207695312c
Actions landing page tweaks (#15927)
* Learn `more => GitHub Actions`

* Getting started => Guides

* Remove features row

* Guides => Code examples

* Shouldn't remove gettingStartedLinks

* Add introLinks frontmatter

* Fix wrong articles in "Manage workflows"

* Change more guides wording
2020-10-15 16:01:28 -04:00
Sarah Schneider f42530c35d
Support redirects to /v3 and /v4 links that have the new version format (#16037)
* add temporary redirect support

* add temporary redirect tests

* add ENDYANK comments per @zeke suggestion
2020-10-15 09:20:27 -04:00
Leona B. Campbell 7ce476db7b
adding latest graphql docs (#16003) 2020-10-13 13:27:46 +10:00
Chiedo 8872f6373d Merge remote-tracking branch 'origin/jeffmcaffer-patch-2' into bulk-windows-fixes-1602277955 2020-10-09 17:18:21 -04:00
Jeff McAffer c906187cf7
handle windows paths in product definitions 2020-10-09 08:52:59 -07:00
Jeff McAffer d16c1f2087
add missing slash require 2020-10-08 19:59:15 -07:00
Jeff McAffer b1f1e1cb6a
correct for windows slashes in redirect `precompile` 2020-10-08 19:20:27 -07:00
Zeke Sikelianos 03e728f184
fix endpoints-available-for-github-apps page (#15933)
* fix endpoints-available-for-github-apps page

* lint
2020-10-08 14:11:43 -07:00
Kevin Heis 7c0c493c35
Sending events to POST /events endpoint (#15796) 2020-10-08 09:24:41 -07:00
Sarah Schneider cf7ffc9cfb
Fix bug in path handler (#15858)
* minor clarification in comment

* handle scenario where a new version has been injected into an old path

* update oldEnterprisePath regex and comment

* lint
2020-10-02 19:36:23 -04:00
Kevin Heis b9a691f429
Create schema for events to Hydro (#15776)
* Create schema-event-2.js

* Update schema-event-2.js

* Expand a few field names

* Avoid id and timestamp from the FAQ

* Update schema-event-2.js

* Update from meeting with Kath and Jason

* Update schema-event-2.js

* Update schema-event-2.js

* Update schema-event-2.js
2020-10-02 15:22:37 -07:00
Rachael Sewell 001d63860a
update GraphQL and changelog (#15869) 2020-10-02 12:09:48 -07:00
Zeke Sikelianos f298882078
add contributing/development.md (#15806)
* add contributing/development.md

* Update CONTRIBUTING.md

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

* Update contributing/development.md

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

* Update contributing/development.md

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

* Update contributing/development.md

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

* Update contributing/development.md

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

* Update contributing/development.md

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

* Update contributing/development.md

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

* cross-link to various liquid docs

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
2020-10-01 11:27:27 -07:00
Sarah Schneider 0b1c7ad466
Update Enterprise Liquid deprecation handling to use new versions (#15818)
* update Liquid deprecation fixtures to use new versions

* update module that removes deprecated GHES frontmatter for new versions

* update module that removes deprecated GHES conditionals for new versions

* update script to use new versions and also remove internal-developer checkout option

* update deprecated Liquid tests to use new versions

* remove unnecessary leading slash in getEnterpriseServerNumber pattern

* include a step that runs script/remove-unused-assets.js

* Update script/remove-deprecated-enterprise-version-markup.js

Co-authored-by: Jason Etcovitch <jasonetco@github.com>

* require script instead of execSync

Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2020-09-30 19:29:08 -04:00
Jason Etcovitch 239643b094
Add basic Hydro SDK (#15725)
* Add back changes from prior to purge

* Add back in updates since main change

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2020-09-30 12:49:27 -04:00
Sarah Schneider 5caa6f282c
satisifies -> satisfies (#15814) 2020-09-30 10:28:47 -04:00
Jason Etcovitch caaee7a124
Update all files to use `{% data %}` (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00
Sarah Schneider aa5a62d49d
Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04:00
Zeke Sikelianos 42fda8ec4d
use @github/rest-api-operations@2.0.1 (with github/github defs!) (#15602) 2020-09-28 13:27:37 -07:00
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00