Build and serve Sphinx
Project description
# Golden Sphinx
Build and serve Sphinx docs.
Example usage:
```sh
$ goldensphinx build serve
```
You can also just build:
```sh
$ goldensphinx build
```
or just serve:
```sh
$ goldensphinx serve
```
To see the options you can control, run a command with `--help`:
```sh
$ goldensphinx build --help
Usage: goldensphinx build [OPTIONS]
Options:
--source_dir PATH Directory containing documentation source
--dest_dir PATH Directory to build documentation to
--help Show this message and exit.
$ goldensphinx serve --help
Usage: goldensphinx serve [OPTIONS]
Options:
--static_dir PATH Static directory to serve
--host TEXT Hostname to serve on
--port INTEGER Port to serve on
--num_threads INTEGER Number of threads
--help Show this message and exit.
```
All options can be also be set using environment variables:
- `source_dir` and `static_dir` by `STATIC_DIR`
- `dest_dir` by `DOCS_DIR`
- `port` by `PORT`
- `host` by `HOST`
- `num_threads` by `NUM_SERVER_THREADS`
For example:
```sh
$ export PORT=8080
$ goldensphinx serve --host 127.0.0.1
[2016-09-06 10:02:14 +0300] [55096] [INFO] Starting gunicorn 19.6.0
[2016-09-06 10:02:14 +0300] [55096] [INFO] Listening at: http://127.0.0.1:8080 (87302)
```
## Install
Stable:
```sh
pip install goldensphinx
```
Latest:
```sh
pip install git+https://github.com/yoavram/goldensphinx.git
```
## Authors
- Yoav Ram (@yoavram)
## Acknowledgements
- The project is inspired by, and the `serve` command is modified from [kennethreitz/goldenarch](https://github.com/kennethreitz/goldenarch).
- Many thanks to the authors of Python, Gunicorn, Sphinx, Click, Static and everything else we build our apps with.
Build and serve Sphinx docs.
Example usage:
```sh
$ goldensphinx build serve
```
You can also just build:
```sh
$ goldensphinx build
```
or just serve:
```sh
$ goldensphinx serve
```
To see the options you can control, run a command with `--help`:
```sh
$ goldensphinx build --help
Usage: goldensphinx build [OPTIONS]
Options:
--source_dir PATH Directory containing documentation source
--dest_dir PATH Directory to build documentation to
--help Show this message and exit.
$ goldensphinx serve --help
Usage: goldensphinx serve [OPTIONS]
Options:
--static_dir PATH Static directory to serve
--host TEXT Hostname to serve on
--port INTEGER Port to serve on
--num_threads INTEGER Number of threads
--help Show this message and exit.
```
All options can be also be set using environment variables:
- `source_dir` and `static_dir` by `STATIC_DIR`
- `dest_dir` by `DOCS_DIR`
- `port` by `PORT`
- `host` by `HOST`
- `num_threads` by `NUM_SERVER_THREADS`
For example:
```sh
$ export PORT=8080
$ goldensphinx serve --host 127.0.0.1
[2016-09-06 10:02:14 +0300] [55096] [INFO] Starting gunicorn 19.6.0
[2016-09-06 10:02:14 +0300] [55096] [INFO] Listening at: http://127.0.0.1:8080 (87302)
```
## Install
Stable:
```sh
pip install goldensphinx
```
Latest:
```sh
pip install git+https://github.com/yoavram/goldensphinx.git
```
## Authors
- Yoav Ram (@yoavram)
## Acknowledgements
- The project is inspired by, and the `serve` command is modified from [kennethreitz/goldenarch](https://github.com/kennethreitz/goldenarch).
- Many thanks to the authors of Python, Gunicorn, Sphinx, Click, Static and everything else we build our apps with.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
goldensphinx-0.0.1.tar.gz
(18.6 kB
view details)
Built Distribution
File details
Details for the file goldensphinx-0.0.1.tar.gz
.
File metadata
- Download URL: goldensphinx-0.0.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85beda050f1882a3d9d676bab1effc327f2ff15e44fd6eaffd4967e1e66a7e89 |
|
MD5 | 77208f03ee987fd43d713616d0a4d0a3 |
|
BLAKE2b-256 | 72ca54b2ffec316c3921ebd74b1be64029141ea1bd7ea62e85f20e26dc8a7be2 |
File details
Details for the file goldensphinx-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: goldensphinx-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c83932366529e5e6f62f780b3efc9a4793af962d2c42c5f2f50cb6bc006b077 |
|
MD5 | a15401ed13c810388310b6fbd4a19ebf |
|
BLAKE2b-256 | 6b3d94d916aaa11fb8421a6008b503a40ea442d00feb88c1722aa79ff86eb0ba |