* Adjust heading level and only heading with intro text
* Adjust heading level
* Adjust code example and guide card heading levels
* Adjust tests for new heading levels
* Adjust rendering test for new heading levels
* Add crowdin translations
* Run script/i18n/homogenize-frontmatter.js
* Run script/i18n/lint-translation-files.js --check parsing
* run script/i18n/reset-files-with-broken-liquid-tags.js --language=ja
* run script/i18n/reset-known-broken-translation-files.js
* Check in ja CSV report
* correct fixture usage
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Static assets should set ETag and Last-Modified
* tests to prevent this ever happening again
* fix tests
Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
* cache asset images more aggressively
* more careful about which gets the manual surrogate key
* fix rendered-content-link-checker script too
* feedbacked
* 301 redirects should not set-cookie
Part of #1316
* Update release-notes.js
* No public facing doc changes (#23355)
Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com>
* New translation batch for pt (#23362)
* Add crowdin translations
* Run script/i18n/homogenize-frontmatter.js
* Run script/i18n/fix-translation-errors.js
* Run script/i18n/lint-translation-files.js --check parsing
* Run script/i18n/lint-translation-files.js --check rendering
* run script/i18n/reset-known-broken-translation-files.js
* Check in pt CSV report
* 24h cache all internal redirects without language prefix (#23354)
Part of #1271
* Redirects for root path should not set-cookie in all supported languages (#23377)
* test: add case when unsupported language is specified in redirect
* test: assert root redirects to appropriate language preference if specified
* refactor: remove redundant unit test
* refactor: re-order units starting with affirmative case
* refactor: remove single-use variable from unit
* fix: re-include previous unit with udpated description
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Rogan Ferguson <40493721+roferg@users.noreply.github.com>
Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com>
Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
Co-authored-by: Francis <15894826+francisfuzz@users.noreply.github.com>
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
* Experiment with making the tarball smaller
Part of #1248
* try this
* stop debugging
* delete translations too
* delete heavy search indexes too
* push and popd
* try this hack
* delete but leave directory
* debug more
* faster delete of translations
* less loud
* async await
* async await
* no tree
* simplify
* experimenting more
* unfinished
* only the large files
* change order
* brotli with level 6
* cope better with decorated rest json files
* tidying
* keep images
* cleaning
* cleaning up
* refactored function
* try this
* better comment
* remove console logging
* more important changes
* make lib/rest/index.js callable
Part of #1177
* memoize
* remove console logging
* updating images styling on design systems feedback
* maintaining ul li structure for accessiblity
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
* Move version picker next to product picker
* Always render in header
* Inline variant
* Remove topper-sidebar
* Handle breadcrumb length
* Have breadcrumbs use Primer breakpoint
* Make a breadcrumbs scss module
* Update Breadcrumbs.tsx
* Update Breadcrumbs.module.scss
* Update Breadcrumbs.module.scss
* Update server.js
* Use responsive classes for hide/show breadcrumb
* moving breadcrumbs to sticky header
* update scroll
* update color-bg-primary to color-bg-default
* change back to primary since were on primer 17
* add effect dependency
* not changing
* clip left box shadow of header and unmount
* update to default
* update breadcrumbs tests
* sticky editor
* Create migrate-colors-primer-18.js
* Update colors round 1
* upgrade primer packages
* Update index.scss
* Replace auto colors
* remove btn-primary-matte
* Turns out the class names and variables names DONT LINE UP... ugh....
* Check for allowed var colors
* homepage: reduce padding below search area
Bring as much useful content up "above the fold".
* homepage: add groups for the front page sections
Group the homepage links into sections that map to the GitHub features
page (`/features`) plus two groups that are bespoke to the docs ("Get
started" and "Developers").
* homepage: update group design
Group the feature list area using the design exploration work by
@arisacoba. Remove the description.
* homepage: remove ungrouped items from main area
Remove ungrouped items (like the external links) from the main feature
area. Users can still navigate to ungrouped items in the sidebar.
* fix tsc error, use Link component
* homepage: support empty icon in group
Don't assume that we have icons everywhere on the landing page groups.
* homepage: drop octocat/invertocat
Looks weird with the modern icons, looks bad in dark mode. Drop them
for now.
* homepage: document the childGroups frontmatter property
* homepage: don't test that sidebar == main content
We're reducing the links on the homepage in the main content area, but
the sidebar should be the complete list of products. Remove the tests
that ensure that the main content area has all the sidebar content. But
keep the tests that ensure that the sidebar content has all the links in
the main content area.
* homepage: remove "GitHub" doc set
The "GitHub" doc set "will be removed soon as we keep moving more content
out of it, so let's not include it here to keep the page more
evergreen."
* homepage: don't test that `/github` is linked on the main page
We're removing the `/github` doc set, and it's now not in the main page
grouped links. Remove the test that `/github` exists, now look for
`/get-started`.
* homepage: use octicons instead of images
The images from https://github.com/features will be updated 🔜 - in
the meantime, let's use octicons which are consistent and give visual
interest.
* homepage: use octicons from @primer/octicons-react
Using the react components adds `<svg>` elements instead of `<img>`
elements, which lets the element use the current fill color, supporting
both light and dark themes.
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
* semantic rendering of miniTocItems
* feat: create nested mini toc structure to simplify semantic rendering
* remove className usage of indentationLevel in miniToc rendering
* manually run script/graphql/update-files.js to update pre-rendered files
* use less brittle regex method to extract number
* close Language and ArticleVersion pickers after click
* cleanup ArticleGridLayout due to VersionPicker changes
* fix tsc errors resulting from primer upgrade
* fix / update tests
* cleanup mobile pickers visual consistency
* use btn-sm on VersionPicker
* update translation and close on click for enterprise releases
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>