sphinx-uedoc-theme
Unreal Engine documentation look and feel theme for Python Sphinx
You can see the theme in action on the ONLINE DEMO
Installation
Install it via pip
pip install sphinx-uedoc-theme
Usage
In Sphinx conf.py:
... extensions = ['sphinx_uedoc_theme'] ... html_theme = 'uedoc_theme' ... html_theme_options = {'put here the values for the options'} ...
Customizable Options
This is a list of all the theme options:
| Option | Default | Description |
|---|---|---|
| logo | None | this sets the path to the logo on the top right area, the logo image source must be placed in the _static folder of the docs |
| quicklinks | None | a dictionary of links to add to the navbar of the theme, sub navigation is possible with 2 level of depth see the demo conf.py for an example |
| socials | None | a dictionary of social links with the relative fontaweasome brand icon as key see the demo conf.py for an example |
| footerlinks | None | an array of dictionary entries used to add links in the footer area of the theme see the demo conf.py for an example |
| show_totop_button | true | show or hide the go to top arrow button in the footer area of the theme |
| header_button | None | a dictionary with a link and a name for right button of the navbar of the theme, if left blank no button would be rendered |
| no_logo | False | if set to true the default logo is hidden, if no logo is specified the default logo is always shown if you want to hide it set this to true |
| header_search | true | whether or not show the search bar in the navigation menu in mobile |
Customizing the Color Scheme
you can customize the color scheme of the theme by overrding the default css variables
The variables are HSL separated values if you want to see the compiled values look the compiled css Heres the compiled css with the default values:
:root {
--clr-background-h: 0;
--clr-background-s: 0%;
--clr-background-l: 100%;
--clr-primary-h: 0;
--clr-primary-s: 0%;
--clr-primary-l: 16%;
--clr-secondary-h: 197;
--clr-secondary-s: 92%;
--clr-secondary-l: 49%;
--clr-text-primary-h: 0;
--clr-text-primary-s: 0%;
--clr-text-primary-l: 100%;
--clr-text-secondary-h: 0;
--clr-text-secondary-s: 0%;
--clr-text-secondary-l: 100%;
--clr-text-background-h: 0;
--clr-text-background-s: 0%;
--clr-text-background-l: 0%;
--clr-primary-gradient-start: hsla(var(--clr-primary-hsl), 0);
--clr-primary-gradient-end: hsla(var(--clr-primary-hsl), 0.95);
--clr-scrollbar: transparent;
--clr-scrollbar-thumb: hsla(var(--clr-primary-h), var(--clr-primary-s), 82%, 0.6);
}
Development Requisites
If you want to contribuite with the development of the theme you can setup a local development enviroment, these are my suggestion and the one i used to develop the theme.
Requisites
- NPM
- Python 3.7
The theme i developed using SCSS, JS and webpack to bring all the asset to web standars stadands.
So here are the steps to setup a working enviroment:
git clonethe repository to your local machinecd sphinx-uedoc-theme(navigate to the cloned repo root folder)npm i(to install all the needed dependencies)- At this point i suggest to createa python virtual env using a tool of your choice (i use conda to manage my virtual envs)
pip install -r requirements.txt(install the python dependencies using pip)- Start making changes
- Use
webpack prodorwebpack devto build the theme
Metadata
Release files for sphinx-uedoc-theme 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sphinx-uedoc-theme-0.1.2.tar.gz | 1.9 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinx_uedoc_theme-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / sphinx-uedoc-theme-0.1.2.tar.gz
| Download URL | sphinx-uedoc-theme-0.1.2.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17766fda31b6d105edf2fc9feb6ea35be23d2690e2bbb088de74ccb928809e62
|
|
BLAKE2b-256 checksum How to use checksums |
5fc1d6948aae94ccdf27dafd955669b36ee0ac240a278701b645c0637d28fd56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / sphinx_uedoc_theme-0.1.2-py3-none-any.whl
| Download URL | sphinx_uedoc_theme-0.1.2-py3-none-any.whl |
|---|---|
| Size | 503.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a64f0f030b4e958094443c519689c717f56af2baa04907e7631afa5fcc02020
|
|
BLAKE2b-256 checksum How to use checksums |
040a4d35ea8034f1cf2e6d0c6cd19351667cef2b1fe8cbb1738b10768415fb2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Security for sphinx-uedoc-theme 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.