-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from simphony/dev
Merge release 3.9.0
- Loading branch information
Showing
39 changed files
with
2,629 additions
and
2,281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.vscode/ | ||
build/ | ||
build/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.vscode/ | ||
build/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
ci: | ||
autoupdate_branch: "dev" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: check-json | ||
- id: pretty-format-json | ||
args: ["--autofix", "--no-sort-keys"] | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.6.2 | ||
hooks: | ||
- id: prettier | ||
files: \.(js|ts|jsx|tsx|css|less|html|markdown|md|yaml|yml)$ | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
args: | ||
- --line-length=79 | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
args: | ||
- --profile=black | ||
- --filter-files | ||
- --line-length=79 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,67 @@ | ||
## Build Status | ||
**latest** - [![Documentation latest](https://readthedocs.org/projects/simphony/badge/?version=latest)](https://simphony.readthedocs.io/en/latest/?badge=latest) | ||
|
||
**latest** - [![Documentation latest](https://readthedocs.org/projects/simphony/badge/?version=latest)](https://simphony.readthedocs.io/en/latest/?badge=latest) | ||
**dev** - [![Documentation dev](https://readthedocs.org/projects/simphony/badge/?version=dev)](https://simphony.readthedocs.io/en/latest/?badge=dev) | ||
|
||
# SimPhoNy docs | ||
|
||
To access the documentation, please visit: [https://simphony.readthedocs.io](https://simphony.readthedocs.io). | ||
|
||
If you find any error or problem with the documentation, please [create an issue](https://github.com/simphony/docs/issues). | ||
|
||
## Local Rendering | ||
|
||
### HTML | ||
|
||
A server will start, generate the docs and listen for changes in the source files. | ||
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. | ||
|
||
#### Docker | ||
|
||
First, build the Docker image by running the following command: | ||
|
||
```shell | ||
$ docker build -f local_build.Dockerfile -t simphony-docs . | ||
``` | ||
|
||
Then, start the program by running: | ||
|
||
```shell | ||
$ docker run --rm -v $PWD:/app -p 8000:8000 simphony-docs | ||
``` | ||
|
||
#### Linux | ||
|
||
At an OS level (these commands work on Linux Debian): | ||
|
||
```shell | ||
$ sudo apt install pandoc graphviz default-jre | ||
$ sudo apt-get install texlive-latex-recommended \ | ||
texlive-latex-extra \ | ||
texlive-fonts-recommended \ | ||
latexmk | ||
latexmk | ||
``` | ||
|
||
The python dependencies: | ||
|
||
```shell | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
Now you can start the server and render the docs: | ||
|
||
``` | ||
$ sphinx-autobuild docs/source docs/build/html | ||
``` | ||
The documentation will be available on [`http://127.0.0.1:8000`](http://127.0.0.1:8000). | ||
|
||
The documentation will be available on [`http://127.0.0.1:8000`](http://127.0.0.1:8000). | ||
|
||
### PDF (LaTeX) | ||
|
||
To generate a PDF of the documentation, simply run (from the root project folder): | ||
|
||
```sh | ||
make -C docs latexpdf | ||
``` | ||
The generated PDF can be found under docs/build/latex/SymPhoNy_docs.pdf | ||
|
||
The generated PDF can be found under docs/build/latex/SymPhoNy_docs.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.caption-text, | ||
h1, | ||
h2, | ||
h3, | ||
h4 { | ||
color: #6580a1 !important; | ||
} | ||
|
||
.btn-outline-primary { | ||
border-color: #6580a1 !important; | ||
} | ||
|
||
.btn-outline-primary:hover { | ||
background-color: #6580a1 !important; | ||
color: azure !important; | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.container-xl { | ||
max-width: 1550px; | ||
} | ||
#site-navigation { | ||
max-width: 20%; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.