Instructions for building docs locally

This commit is contained in:
Joe Nelson
2017-02-27 09:38:21 -08:00
parent f1181cce73
commit b8f2ffc0a3
+20
View File
@@ -0,0 +1,20 @@
#### Sphinx source files for PostgREST documentation
To generate HTML version:
1. Install Sphinx from the [sphinx website](http://sphinx-doc.org/latest/install.html)
2. Clone this repository
4. Generate HTML
```bash
cd postgrest-docs
sphinx-build -b html -a -n . _build
# open _build/index.html in your browser
```
---
**Sphinx Installation Notes:**
* If you're on OSX you might want to install the Python from homebrew - then a simple `pip install sphinx` does the trick.
* For an easier time refreshing your local preview of docs as you change it, try [sphinx-autobuild](https://github.com/GaretJax/sphinx-autobuild).