Add default.nix and udpate README

This commit is contained in:
steve-chavez
2018-09-10 10:47:03 -05:00
parent bba1d35ade
commit 54436e2dc6
2 changed files with 22 additions and 0 deletions
+8
View File
@@ -14,6 +14,14 @@ To generate HTML version:
# open _build/index.html in your browser
```
If you use [nix](https://nixos.org/nix/), you can just run:
```
nix-shell
```
This will build the docs and start a livereload server on `http://localhost:5500`.
---
**Sphinx Installation Notes:**
+14
View File
@@ -0,0 +1,14 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "postgrest-docs";
buildInputs = [
python36Full
python36Packages.sphinx
python36Packages.sphinx_rtd_theme
python36Packages.livereload ];
shellHook = ''
sphinx-build -b html -a -n . _build
python reload_docs.py && exit
'';
}