The open-source repo for docs.github.com
Перейти к файлу
Octomerger Bot c13fcf74aa
Merge pull request #75 from github/repo-sync
repo sync
2020-09-28 13:41:48 -07:00
.github update wording and labels of repo-sync PRs (#15783) 2020-09-28 12:09:21 -07:00
.vscode Hello git history spelunker! 2020-09-27 14:10:11 +02:00
assets/images Hello git history spelunker! 2020-09-27 14:10:11 +02:00
content Code scanning: autobuild update on Windows and macOS (#15078) 2020-09-28 11:32:02 -07:00
contributing Hello git history spelunker! 2020-09-27 14:10:11 +02:00
data Hello git history spelunker! 2020-09-27 14:10:11 +02:00
docs Hello git history spelunker! 2020-09-27 14:10:11 +02:00
includes use @github/rest-api-operations@2.0.1 (with github/github defs!) (#15602) 2020-09-28 13:27:37 -07:00
javascripts Send CSRF tokens over XHR (#15778) 2020-09-28 09:44:14 -07:00
layouts Set doctype html on all pages (#15779) 2020-09-28 10:06:04 -07:00
lib use @github/rest-api-operations@2.0.1 (with github/github defs!) (#15602) 2020-09-28 13:27:37 -07:00
middleware Send CSRF tokens over XHR (#15778) 2020-09-28 09:44:14 -07:00
script Hello git history spelunker! 2020-09-27 14:10:11 +02:00
stylesheets Wrap slash characters in tables (#15774) 2020-09-28 10:54:23 -04:00
tests Send CSRF tokens over XHR (#15778) 2020-09-28 09:44:14 -07:00
translations Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.all-contributorsrc Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.env.example Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.gitattributes Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.gitignore Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.node-version Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.npmrc Hello git history spelunker! 2020-09-27 14:10:11 +02:00
.pa11yci Hello git history spelunker! 2020-09-27 14:10:11 +02:00
CODE_OF_CONDUCT.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
CONTRIBUTING.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
Dockerfile Hello git history spelunker! 2020-09-27 14:10:11 +02:00
Gemfile Hello git history spelunker! 2020-09-27 14:10:11 +02:00
Gemfile.lock Hello git history spelunker! 2020-09-27 14:10:11 +02:00
LICENSE Hello git history spelunker! 2020-09-27 14:10:11 +02:00
Procfile Hello git history spelunker! 2020-09-27 14:10:11 +02:00
README.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
app.json Hello git history spelunker! 2020-09-27 14:10:11 +02:00
crowdin.yml Hello git history spelunker! 2020-09-27 14:10:11 +02:00
feature-flags.json Hello git history spelunker! 2020-09-27 14:10:11 +02:00
jest-puppeteer.config.js Hello git history spelunker! 2020-09-27 14:10:11 +02:00
jest.config.js Hello git history spelunker! 2020-09-27 14:10:11 +02:00
nodemon.json Hello git history spelunker! 2020-09-27 14:10:11 +02:00
ownership.yaml Hello git history spelunker! 2020-09-27 14:10:11 +02:00
package-lock.json use @github/rest-api-operations@2.0.1 (with github/github defs!) (#15602) 2020-09-28 13:27:37 -07:00
package.json use @github/rest-api-operations@2.0.1 (with github/github defs!) (#15602) 2020-09-28 13:27:37 -07:00
server.js Hello git history spelunker! 2020-09-27 14:10:11 +02:00
webpack.config.js Hello git history spelunker! 2020-09-27 14:10:11 +02:00

README.md

GitHub Docs

This repository contains the documentation website code and Markdown source files for docs.github.com.

GitHub's Docs team works on pre-production content in a private repo that regularly syncs with this public repo.

In this article:

Contributing

📝 To find out how you can best contribute to GitHub's product documentation, see CONTRIBUTING.md.

📣 If you'd like help troubleshooting a PR, have a great new idea, or want to share something amazing you've learned in our docs, join us in discussions.

🪲 If you've found a problem, you can open an issue using a template.

If you're having trouble with your GitHub account, contact Support.

💛 We do not accept pull requests for translated content - see CONTRIBUTING.md for more information.

READMEs

In addition to the README you're reading right now, this repo includes other READMEs that describe the purpose of each subdirectory in more detail:

Developing

This site is powered by Node.js! 🐢 🚀

You'll need Node.js v12 to run the site. If you're using nodenv (you can run nodenv version to find out which Node.js version you're on), read the nodenv section for instructions on switching to Node.js 12. If you're not using nodenv, the best way to install Node.js is to download the LTS installer from nodejs.org.

Once you've installed Node.js, open up Terminal and run the following:

git clone https://github.com/github/docs-internal
cd docs-internal
npm install
npm start

You should now have a running server! Visit localhost:4000 in your browser. It will automatically restart as you make changes to site content.

When you're ready to stop your local server, type CTRLc in your terminal window.

Site structure

This site was originally written in Jekyll and later Nanoc, both of which are Ruby static site generators. This site is now a dynamic Node.js webserver powered by Express, using middleware to add support for proper HTTP redirects, language header detection, and dynamic content generation to support the various flavors of GitHub's product documenation, like dotcom and GitHub Enterprise. For more context on why this change was made, see the new help.github.com proposal doc.

The tech powering the site is now different, but many of the tried-and-true authoring conventions of the original Jekyll site have been preserved:

  • Content is written in Markdown files which live in the content directory.
  • Content can use the Liquid templating language.
  • Files in the data directory are available to templates via the {% data %} tag.
  • Markdown files can contain frontmatter.
  • The redirect_from Jekyll plugin behavior is supported.

See the Content README for more info.

Error handling

Errors generated from requests will be sent to Sentry via middlware/handle-errors.js, and the lib/failbot.js client. This is a lightweight wrapper for sending exceptions to GitHub's Sentry instance.

This site's search functionality is powered by Algolia, a third-party service.

See search.md for details.

License

The GitHub product documentation in the assets, content, and data folders are licensed under a CC-BY license.

All other code in this repository is licensed under a MIT.

When using the GitHub logos, be sure to follow the GitHub logo guidelines.

Contributors

Thanks goes to these wonderful people (emoji key):


Alexandra Bourne

🖋 🐛

Cynthia Rich

🖋 🐛

Emily Gould

🖋 🐛

Felicity Chapman

🖋 🐛

Kevin Heis

🐛 💻

Alistair Christie

🖋 🐛

James M. Greene

🐛 💻

Janice

🖋 🐛

Jason Etcovitch

🐛 💻

James Fletcher

🖋 🐛

Jenn Leaver

🖋 🐛

jmarlena

🖋 🐛

John M. Wargo

🖋 🐛

Laura Coursen

🖋 🐛

Lucas Costi

🖋 🐛

Martin Lopes

🖋 🐛

Matt Pollard

🖋 🐛

mc

🖋 🐛

Meg Bird

🖋 🐛

Melanie Yarbrough

🖋 🐛

Rachael Sewell

🖋 🐛

Leona B. Campbell

🖋 🐛

Sarah Schneider

🐛 💻

Shati Patel

🖋 🐛

Kathy Korevec

🖋 🐛

Amy Burns

🖋 🐛

Vanessa Yuen

🐛 💻

Zeke Sikelianos

🐛 💻

This project follows the all-contributors specification. Contributions of any kind welcome!