Skip to content
This repository was archived by the owner on Feb 24, 2024. It is now read-only.

Move *.rst files to docs/ folder #498

Merged
merged 1 commit into from
Jan 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
sphinx:
configuration: docs/conf.py
python:
install:
- requirements: requirements.txt
8 changes: 4 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ in
# clean previous build, otherwise some errors might be supressed
rm -rf _build

${python}/bin/sphinx-build --color -W -b html -a -n . _build
${python}/bin/sphinx-build --color -W -b html -a -n docs _build
'';

serve =
Expand All @@ -50,7 +50,7 @@ in
''
set -euo pipefail

FILES=$(find . -type f -iname '*.rst' | tr '\n' ' ')
FILES=$(find docs -type f -iname '*.rst' | tr '\n' ' ')

cat $FILES \
| grep -v '^\(\.\.\| \)' \
Expand All @@ -67,7 +67,7 @@ in
''
set -euo pipefail

FILES=$(find . -type f -iname '*.rst' | tr '\n' ' ')
FILES=$(find docs -type f -iname '*.rst' | tr '\n' ' ')

cat postgrest.dict \
| tail -n+2 \
Expand All @@ -81,6 +81,6 @@ in
''
set -euo pipefail

${python}/bin/sphinx-build --color -b linkcheck . _build
${python}/bin/sphinx-build --color -b linkcheck docs _build
'';
}
4 changes: 2 additions & 2 deletions diagrams/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The ER diagrams were created with https://github.com/BurntSushi/erd/.
You can go download erd from https://github.com/BurntSushi/erd/releases and then do:

```bash
./erd_static-x86-64 -i diagrams/film.er -o _static/film.png
./erd_static-x86-64 -i diagrams/film.er -o docs/_static/film.png
```

## LaTeX
Expand All @@ -18,7 +18,7 @@ Then use this command to generate the png file.
pdflatex --shell-escape -halt-on-error db.tex

## and move it to the static folder(it's not easy to do it in one go with the pdflatex)
mv db.png ../_static/
mv db.png ../docs/_static/
```

LaTeX is used because it's a tweakable plain text format.
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions livereload_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from livereload import Server, shell
from subprocess import call
## Build docs at startup
call(['sphinx-build', '-b', 'html', '-a', '-n', '.', '_build'])
call(['sphinx-build', '-b', 'html', '-a', '-n', 'docs', '_build'])
server = Server()
server.watch('*.rst', shell('sphinx-build -b html -a -n . _build'))
server.watch('tutorials/*.rst', shell('sphinx-build -b html -a -n . _build'))
server.watch('how-tos/*.rst', shell('sphinx-build -b html -a -n . _build'))
server.watch('releases/*.rst', shell('sphinx-build -b html -a -n . _build'))
server.watch('*.rst', shell('sphinx-build -b html -a -n docs _build'))
server.watch('tutorials/*.rst', shell('sphinx-build -b html -a -n docs _build'))
server.watch('how-tos/*.rst', shell('sphinx-build -b html -a -n docs _build'))
server.watch('releases/*.rst', shell('sphinx-build -b html -a -n docs _build'))
# For custom port and host
# server.serve(root='_build/', host='192.168.1.2')
server.serve(root='_build/')