|
1 | 1 | ## Build Status |
2 | | -**latest** - [](https://simphony.readthedocs.io/en/latest/?badge=latest) |
| 2 | + |
| 3 | +**latest** - [](https://simphony.readthedocs.io/en/latest/?badge=latest) |
3 | 4 | **dev** - [](https://simphony.readthedocs.io/en/latest/?badge=dev) |
4 | 5 |
|
5 | 6 | # SimPhoNy docs |
| 7 | + |
6 | 8 | To access the documentation, please visit: [https://simphony.readthedocs.io](https://simphony.readthedocs.io). |
7 | 9 |
|
8 | 10 | If you find any error or problem with the documentation, please [create an issue](https://github.com/simphony/docs/issues). |
9 | 11 |
|
10 | 12 | ## Local Rendering |
| 13 | + |
11 | 14 | ### HTML |
| 15 | + |
12 | 16 | A server will start, generate the docs and listen for changes in the source files. |
13 | 17 | This can be done by using docker or installing the development environment directly on the you machine. Next are installation guides for Docker and Linux OS. |
14 | 18 |
|
15 | 19 | #### Docker |
| 20 | + |
16 | 21 | First, build the Docker image by running the following command: |
| 22 | + |
17 | 23 | ```shell |
18 | 24 | $ docker build -f local_build.Dockerfile -t simphony-docs . |
19 | 25 | ``` |
20 | 26 |
|
21 | 27 | Then, start the program by running: |
| 28 | + |
22 | 29 | ```shell |
23 | 30 | $ docker run --rm -v $PWD:/app -p 8000:8000 simphony-docs |
24 | 31 | ``` |
25 | 32 |
|
26 | 33 | #### Linux |
| 34 | + |
27 | 35 | At an OS level (these commands work on Linux Debian): |
| 36 | + |
28 | 37 | ```shell |
29 | 38 | $ sudo apt install pandoc graphviz default-jre |
30 | 39 | $ sudo apt-get install texlive-latex-recommended \ |
31 | 40 | texlive-latex-extra \ |
32 | 41 | texlive-fonts-recommended \ |
33 | | - latexmk |
| 42 | + latexmk |
34 | 43 | ``` |
| 44 | + |
35 | 45 | The python dependencies: |
| 46 | + |
36 | 47 | ```shell |
37 | 48 | $ pip install -r requirements.txt |
38 | 49 | ``` |
39 | 50 |
|
40 | 51 | Now you can start the server and render the docs: |
| 52 | + |
41 | 53 | ``` |
42 | 54 | $ sphinx-autobuild docs/source docs/build/html |
43 | 55 | ``` |
44 | | -The documentation will be available on [`http://127.0.0.1:8000`](http://127.0.0.1:8000). |
45 | 56 |
|
| 57 | +The documentation will be available on [`http://127.0.0.1:8000`](http://127.0.0.1:8000). |
46 | 58 |
|
47 | 59 | ### PDF (LaTeX) |
| 60 | + |
48 | 61 | To generate a PDF of the documentation, simply run (from the root project folder): |
| 62 | + |
49 | 63 | ```sh |
50 | 64 | make -C docs latexpdf |
51 | 65 | ``` |
52 | | -The generated PDF can be found under docs/build/latex/SymPhoNy_docs.pdf |
| 66 | + |
| 67 | +The generated PDF can be found under docs/build/latex/SymPhoNy_docs.pdf |
0 commit comments