UNKNOWN
Project description
Sphinx is a simple and clean theme for creating Sphinx docs. It is heavily inspired by the beautiful jrnl’s theme. It also supports embedding IPython Notebooks which can be mighty useful.
Installation
Assuming you have pip installed:
$ pip install klink
That’s it.
Usage
In your docs’ conf.py file, add the following:
import klink
html_theme = 'klink'
html_theme_path [klink.get_html_theme_path()]
html_theme_options = {
'github': 'yourname/yourrepo',
'analytics_id': 'UA-your-number-here',
'logo': 'logo.png'
}
Klink also comes with a useful helper function that allows you to integrate an IPython Notebook into a .rst file. It basically converts the Notebook to .rst and copies the static data (images, etc) to your _static dir.
If you have IPython Notebooks that you would like to integrate, use the following code to your conf.py:
klink.convert_notebooks()
Once the conversion is done, you will have a .rst file with the same name as each one of your notebooks.
Note: place your notebooks in your docs’ source dir.
Now all you have to do is use the include command to insert them into your docs.
Options
Here are the theme options. They should be added to the html_theme_options in your conf.py file.
github The github address of the project. The format is name/project (pmorissette/klink).
logo The logo file. Assumed to be in _static. Default is logo.png. The logo should be 150x150.
analytics_id Your Google Analytics id (usually starts with UA-…)
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
File details
Details for the file klink-0.1.0.tar.gz
.
File metadata
- Download URL: klink-0.1.0.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996415333606209610083ee5be74f4162252ab4cf479bdf9924ab58db94614c8 |
|
MD5 | b62867dbf9c88d5ef017ebf9f0a1d0c8 |
|
BLAKE2b-256 | b485c13346ec23293bf7444aac9aee9779fa9d4a092ace5361efd88119b342f3 |