Skip to content

Commit 5acc239

Browse files
authored
Merge pull request #691 from ojacques/codespaces
Add Codespaces capability to contribute to the site
2 parents a1873b5 + c3f3cf2 commit 5acc239

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

.devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Codespaces environment for docs.github.com
2+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json
3+
{
4+
"name": "docs.github.com",
5+
"service": "container-doc",
6+
"settings": {
7+
"terminal.integrated.shell.linux": "/bin/bash",
8+
"cSpell.language": ",en"
9+
},
10+
// Install pre-requisites, and start to serve docs.github.com locally
11+
"postCreateCommand": "npm install && npm start",
12+
"forwardPorts": [4000],
13+
// Visual Studio Code extensions which help authoring for docs.github.com.
14+
"extensions": [
15+
"yzhang.markdown-all-in-one",
16+
"streetsidesoftware.code-spell-checker"
17+
]
18+
}

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ Fork using GitHub Desktop:
2727
- Once Desktop is set up, you can use it to [fork the repo](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/cloning-and-forking-repositories-from-github-desktop)!
2828

2929
Fork using the command line:
30+
3031
- [Fork the repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo#fork-an-example-repository) so that you can make your changes without affecting the original project until you're ready to merge them.
3132

33+
Fork with [GitHub Codespaces](https://github.com/features/codespaces):
34+
35+
- [Fork, edit, and preview](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace) using [GitHub Codespaces](https://github.com/features/codespaces) without having to install and run the project locally.
36+
3237
### Make your update:
3338
Make your changes to the file(s) you'd like to update. Here are some tips and tricks for [using the docs codebase](#working-in-the-githubdocs-repository).
3439
- Are you making changes to the application code? You'll need **Node.js v14** to run the site locally. See [contributing/development.md](contributing/development.md).

contributing/development.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ When you're ready to stop your local server, type <kbd>CTRL</kbd><kbd>c</kbd> in
2626

2727
Note that `npm run build` is a one-time step that create static assets.
2828

29+
### Using GitHub Codespaces
30+
31+
As an alternative, you can simply use [GitHub Codespaces](https://github.com/features/codespaces).
32+
33+
In a matter of minutes, you will be ready to edit, preview and test your changes directly from the comfort of your browser.
34+
2935
## Site structure
3036

3137
This site was originally a Ruby on Rails web application. Some time later it was converted into a static site powered by [Jekyll](https://jekyllrb.com/). A few years after that it was migrated to [Nanoc](https://nanoc.ws/), another Ruby static site generator.

0 commit comments

Comments
 (0)