Skip to main content

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)
```

You can also set the environment variable `GOLDENSPHINX` to `false` if you want to prevent goldensphinx from running.

## 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


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.2.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

goldensphinx-0.0.2-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file goldensphinx-0.0.2.tar.gz.

File metadata

File hashes

Hashes for goldensphinx-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0a0a1c2e0dc143ea1e004f30a9ddaf9f4d0e68b25af710a702ce41dd9c28b665
MD5 3261c5546d19602e5ff459d436071eb2
BLAKE2b-256 763c177e5ff7b6f872daf847db8a406ace352a49553f7f21d078cce5a6aa1ef6

See more details on using hashes here.

File details

Details for the file goldensphinx-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for goldensphinx-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 038d9e1aca96e0198021c0d8f083091605ec8a06021a33f5a86a4c9b3e132001
MD5 0a56adc118aa7c5c49e97a3621ed693f
BLAKE2b-256 7f663f1e394ddff355c724fc4de77a38377df79787018e93fa65582e2bdb23b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page