* pull changes from docs-playground
* cleanup, add callout banner
* cleanup linting and test fixes
* add discussion link
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Clear out some non-fn references to Algolia
* Update .github/workflows/dry-run-sync-search-indices.yml
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Update contributing/search.md
Co-authored-by: James M. Greene <JamesMGreene@github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* turn article.scss into a module + componentized
* Update Survey to use only component styles, add cancel button
* Update GenericError + 404 page to use only standard classes
* update LearningTrack to not use markdown-body
* remove / consolidate stylesheets
* cleanup Graphiql explorer page and scss
* Componentize Breadcrumb styles
* Componentize DeprecationBanner styles
* scope h2 a link style to markdown-body
* cleanup nav, organize page-header and page-footer components
* remove unused scroll-button.scss
* organize LanguagePicker and ProductPicker
* add declarations file
* remove featured-links.scss, update tests
* update list utility and toc test
* fix bad merge resolution
* update breadcrumbs test
* Update some readFileSync to await readFile with top level await
* More updates
* Update all-products.js
* Use 'lib/readfile-async.js' in runtime files for better performance
* Remove unnecessary use of 'for await...of' loops
* Revert to importing 'fs/promises'
Co-authored-by: James M. Greene <jamesmgreene@github.com>
* First run of script
* Get the app running --- ish
* Get NextJS working
* Remove `node:`
* Get more tests passing in unit directory
* Update FailBot test to use nock
* Update test.yml
* Update Dockerfile
* tests/content fixes
* Update page.js
* Update build-changelog.js
* updating tests/routing
* Update orphan-tests.js
* updating tests/rendering
* Update .eslintrc.js
* Update .eslintrc.js
* Install jest/globals
* "linting" tests
* staging update to server.mjs
* Change '.github/allowed-actions.js' to a ESM export
* Lint
* Fixes for the main package.json
* Move Jest to be last in the npm test command so we can pass args
* Just use 'npm run lint' in the npm test command
* update algolia label script
* update openapi script
* update require on openapi
* Update enterprise-algolia-label.js
* forgot JSON.parse
* Update lunr-search-index.js
* Always explicitly include process.cwd() for JSON file reads pathed from project root
* update graphql/update-files.js script
* Update other npm scripts using jest to pass ESM NODE_OPTIONS
* Update check-for-enterprise-issues-by-label.js for ESM
* Update create-enterprise-issue.js for ESM
* Import jest global for browser tests
* Convert 'script/deploy' to ESM
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
* Update packages landing page
* Docs updates for Container reg GA
* Update billing note
* Delete CR feature preview files
* Fix broken link
* Remove github.ref from workflows
See https://github.com/github/docs-internal/pull/19953
* Put 3rd party action message in a reusable
* Update content/billing/managing-billing-for-github-packages/about-billing-for-github-packages.md
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Update content/packages/learn-github-packages/deleting-and-restoring-a-package.md
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Update content/packages/working-with-a-github-packages-registry/migrating-to-the-container-registry-from-the-docker-registry.md
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Update content/packages/working-with-a-github-packages-registry/migrating-to-the-container-registry-from-the-docker-registry.md
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Update content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Update content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* fix bug with wbr breaking a link inside a code tag inside a table
* Make revisions suggested by Nilofer
See https://github.com/github/docs-internal/pull/19987/files#r655014673
* Mention that migration is happening gradually
* Reapply change suggested by Shayne
* Fix punctuation
* Remove bad link
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com>
* Move category to top-level doc set
* Move doc set to the top and update short title
* Undo package-lock changes
* updated hardcoded refs in tests
* Update test
* Fix hardcoded link in test
Co-authored-by: Sarah Schneider <sarahs@github.com>
* adding new tables and linking to info on audit logs
* editing some text:
* adding new info on how to add image registry login
* adding link and fixing table
* formatting
* formatting
* Apply suggestions from code review
Co-authored-by: Laura Coursen <lecoursen@github.com>
* updaing private image registry secret info and other improvements
* some minor fixes
* fixing test errors
* rewriting registry secret section
* rewriting registry secret section
* updating link to reflect title
* Update content/github/developing-online-with-codespaces/managing-encrypted-secrets-for-codespaces.md
Co-authored-by: Laura Coursen <lecoursen@github.com>
* updating bullet point
* moving codespaces to top-level item
* fixing duplicated redirect
* Adding some organization for contributors
* adding learning codespaces to index file
* do not error out if category array is empty
* Apply suggestions from code review
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* fixing broken link
* Document choosing machine type for a codespace in the GitHub UI (#19055)
* Document choosing machine type in the GitHub UI
* Replace link placeholder with actual path
* Update content/codespaces/changing-the-machine-type-for-your-codespace.md
Co-authored-by: Amy Burns <timeyoutakeit@github.com>
Co-authored-by: Amy Burns <timeyoutakeit@github.com>
* reoganizing based on CD
* putting machine type doc in correct location
* fixing broken redirects
* removing quickstart example from index page
* updating main index file
* Fixing broken links
* adding intros
* adding js quickstart (#18960)
* adding js quickstart
* clarify walkthrough
* adding more images and last few sections
* fixing broken links
* fixing broken links and formatting
* formatting fixes
* Apply suggestions from code review
Co-authored-by: hubwriter <hubwriter@github.com>
* adding index file for learn folder
* adding some feedback changes
* adding some review comments
* fixing broken links
Co-authored-by: hubwriter <hubwriter@github.com>
* doing some additional re-org
* fixing topics
* adding Codespaces as a topic
* fixing so title matches slug
* Update data/reusables/codespaces/codespaces-machine-types.md
Co-authored-by: Meg Bird <megbird@github.com>
* expanding intro
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Meg Bird <megbird@github.com>
* Add actions category name as first commit
* Package reorganization: rename articles for "Learning..." and "Managing..." categories (#18880)
* Initial prep work for Packages reorg
* Make changes for Learning and Managing categories
* Match file name to revised article title
* Rework packages guides (#18902)
* Create new directory
* Delete guides directory and index.md link
* Remove duplicated redirects to fix test
* fix folder name
* delete temporary directory of old content
* Add Gradle article
* Update landing page with new links
* Update test to fix CI failure for deleted articles
* Update links and titles for reorg-ed articles
* Fix broken links
Co-authored-by: hubwriter <hubwriter@github.com>
* Update more changed article titles in links (#18911)
* remove test line to test PR build failure
* Add sections to permissions article
* Add draft reusable
* restore versioning tests
* Remove accidental inclusion of new reusable from a different branch
* Package registry content redesign updates (#18930)
* Update container registry product variable
* First round of edits
* Update tidbit
* Apply suggestions from code review
Co-authored-by: hubwriter <hubwriter@github.com>
* Update docker-vs-container-registry.md
* Update authentication section to resolve bug/confusion
* Revisions
* Last touchups
* Migration from intro article
Co-authored-by: hubwriter <hubwriter@github.com>
* Add versioned diagrams
* Add packages actions revisions (#18956)
* Add refreshed content
* Update content/packages/managing-github-packages-using-github-actions-workflows/example-workflows-for-publishing-a-package.md
Due to tightness of time on this I'm going to commit this suggestion so that I can merge this PR into the Packages megabranch.
Co-authored-by: hubwriter <hubwriter@github.com>
* Packages reorg: "Introduction to GitHub Packages" article (#18906)
* Initial commit. Remove stray comma
* Initial CC work - WiP
* More changes for the Introduction article
* Make changes as per Jessica's review
* Fix broken reusable ref
* improve test failure message and add clarifying comments
* Packages reorganization: More updates to the 'Learn GitHub Packages' articles" (#18961)
* Viewing - WiP
* More updates to the 'Learn...' category
* revisions to intro article
* Add permissions article and make a few other streamlined updates
* Fix links 🌿
Co-authored-by: jmarlena <>
* Apply suggestions from code review
* Apply product input
* Fix versioning
* Apply some straight-forward suggested changes ⚡
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Apply suggestions from code review
* Add "GitHub Packages" before container registry mention
* Standardize visibility & permsisions section into a reusable
* Add link
* Replace outdated 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>
* Apply suggestions from code review
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* ✂️ cut note
* 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>
* Superseded rewrite?
* bye single-use reusable
* Apply suggestions from code review
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Condense packages & actions conceptual content
* Apply suggestions from code review
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* remove "package registries"
* Apply suggestions from code review
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Add reusable
* Add these redirects from the deleted containers conceptual article
* Incorporate changes from main into retitled articles 💫
* Missing endif
* Fix unexpected redirect behavior
* Revamp and consolidate actions access settings
* Further reading section
* Last fix for now
* standardize steps
* Apply suggestions from code review
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: jmarlena <>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
- add `script/test-render-translation.js` to render all translated content to catch malformed liquid that would cause render errors
- improve test output for `script/fix-translation-errors.js` and `tests/content/lint-files.js`
- make it so `script/reset-translated-file.js` can handle files that have been renamed
* create script to fix easy-to-fix frontmatter errors in translation
* improve reset-translated-file.js: allow reverting to the same file from `main` branch
* fix release-notes as well
* also lints liquid in frontmatter
* Install liquidjs, uninstall liquid
* Comment a bunch of stuff out to get going
* Fix invalid includes
* Fix all includes (path => 'path')
* Get the homepage to render
* Do link-in-list kinda
* Revert "Fix all includes (path => 'path')"
This reverts commit d6fead646353aa5041d9229470a62a1d487456b9.
* Support non-dynamic partials
* Extract getTemplate helper
* Do remaining custom Liquid tags
* Fix some custom tag bugs
* Moar bugs
* Re-add link tag
* Cleaner diff
* Actually fix extended markdown tags
* Fully comment out version matchers
* Smaller diff
* Rely only on Liquid internals for conditionals
* Use new operators option in Liquid engine
* Fix link.js
* Don't need options
* Updoot to the right doot
* Fix some bugs
* Fix another bug
* Pass a test
* Fix the translate bits
* Adjust a test
* Fix another invalid Liquid bug
* Two more borked translations
* Found some more
* Don't need this change
* Revert "Don't need this change"
This reverts commit a916d619747f0492865a69c3e237c97c4d4e7fad.
* This should fix the broken links
* Missed one
* Revert "This should fix the broken links"
This reverts commit e6c2cc0d9055d958706260d57edbe293281c150e.
* Revert "Missed one"
This reverts commit bbe1f23baf16e020f6f7931589decb1afc75dfbd.
* Updoot liquidjs
### Why:
A lot of content gets mistranslated, some common patterns are: frontmatter date and enums getting translated, liquid tags get translated or go missing during the translation process. These translation errors are tough to catch, especially when they often come in huge PRs.
### What's being changed:
- Frontmatter is also getting linted against schema as part of `lint-files`
- When an environment variable `TEST_TRANSLATION` is passed,
- `lint-files` will run its tests against all files that have been newly translated (by git-diffing between `translations` branch and `main` branch), and
- results are outputted using a custom jest reporter. The output is formatted in a way that makes it easy to exclude the problematic translated files from being merged, and to share the errors with [localization support](https://github.com/github/localization-support/issues/489).
- Run the implemented translation test as part of the existing `Node.js Tests - Translations` workflow