A sphinx extension for designing beautiful, view size responsive web components.
Project description
sphinx-design
A sphinx extension for designing beautiful, view size responsive web components.
Created with inspiration from Bootstrap (v5), Material Design and Material-UI design frameworks.
Usage
Simply pip install sphinx-design
and add the extension to your conf.py
:
extensions = ["sphinx_design"]
Supported browsers
- Chrome >= 60
- Firefox >= 60
- Firefox ESR
- iOS >= 12
- Safari >= 12
- Explorer >= 12
(Mirrors: https://github.com/twbs/bootstrap/blob/v5.0.2/.browserslistrc)
Theme support
View the documentation in multiple themes:
Comparison to sphinx-panels
This package is an iteration on sphinx-panels and intends to replace it. See Migrating from sphinx-panels for more information.
Development
It is recommended to use tox to run the tests and document builds.
Run tox -va
to see all the available tox environments.
To run linting, formatting and SASS compilation, use pre-commit.
pre-commit run --all css
will run the SASS compiler, for which you will need node and npm installed,
or you can directly run npm run css
.
TODO
- note design goal; to be flexible, but limit the amount of directive nesting required.
This factors in to
- card header/footer syntax? (don't really want to have to use separate directives for these, hence
^^^
/+++
syntax) - auto-wrap
grid-item
andtab-item
, if not already insidegrid
ortab-set
?
- card header/footer syntax? (don't really want to have to use separate directives for these, hence
grids items cannot contain headers; is this in anyway possible with docutils structure?
naming of directives/roles: standard prefix?
why are cards setup with "word-wrap: break-word;"?
handle latex
Use autoprefixer when compiling SASS (see https://getbootstrap.com/docs/5.0/getting-started/browsers-devices/#supported-browsers)
horizontal card (grid row inside card, picture on left)
subtitle for card (see https://material.io/components/cards#anatomy)
rtd PRs not working
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
Built Distribution
File details
Details for the file sphinx_design-0.2.0.tar.gz
.
File metadata
- Download URL: sphinx_design-0.2.0.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b148a5258061a46ee826d57ea0729260f29b4e9131d2a681545e0d4f3c0f19ee |
|
MD5 | 118bdf14990a0420f6a27be69ef3de78 |
|
BLAKE2b-256 | b26a3dadcc0d3bace3006d76e543095350b5400134a4f1e465de389fc7231ad6 |
Provenance
File details
Details for the file sphinx_design-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sphinx_design-0.2.0-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7117cb4b566bd769dcb4314a64d72257ae89724b4917a8f2ef55459e1d861b |
|
MD5 | f5ce31eb187c215718a59db347b643e4 |
|
BLAKE2b-256 | f74ff29f13b003b9e9e87a66cd6d00f6583ba29d6848fcb4c456527b4c70f098 |