documenting running up the docs locally, and a bit of cleanup

This commit is contained in:
Brendan Forster
2016-01-27 11:37:15 +10:30
parent 5ca6633cb1
commit 47e06b5300
2 changed files with 32 additions and 2 deletions
+30
View File
@@ -0,0 +1,30 @@
These instructions are for users who would like to get this documentation site running locally,
so you can edit changes and view them immediately.
## Windows
You need these things:
- this repo - `git clone https://github.com/octokit/octokit.net.git`
- Python - install it from Chocolatey: `cinst python`
- mkdocs - install it with pip: `pip install mkdocs`
**NOTE**: of course mkdocs doesn't appear on your PATH after this. Ugh. It's 2016. Come on people.
**HACK**: add this to your PATH - `C:\ProgramData\chocolatey\lib\python3\tools\Scripts` and restart your shell.
Once you've got all that, run `mkdocs serve` from the root of your repository and then point your browser
to `http://localhost:8000/`
**NOTE**: You'll probably get a dialog here to give `python.exe` permission to open port 8000 on your firewall. This is fine.
## OS X
You need these things:
- this repo - `git clone https://github.com/octokit/octokit.net.git`
- Python - if you don't have it already, get it from homebrew: `brew install python3`
- mkdocs - install it with pip: `pip install mkdocs`
Once you've got all that, run `mkdocs serve` from the root of your repository and then point your browser
to `http://localhost:8000/`
+2 -2
View File
@@ -15,8 +15,7 @@ theme: readthedocs
pages:
- 'Home' : 'index.md'
- 'Getting Started' :
- 'Creating a GitHubClient' : 'getting-started.md'
- 'Getting Started' : getting-started.md
- Features:
- 'Issues' : 'issues.md'
@@ -34,3 +33,4 @@ pages:
- Contributing:
- 'Shipping Releases' : 'shipping-releases.md'
- 'Strong Naming' : 'strong-naming.md'
- 'Documentation': 'contributing.md'