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.
- Replaces
panel
directive with top-levelgrid
+ childrengrid-item-card
- less "bespoke" syntax
grid-item
can be used when no card is neededcard
can be used independently of grids
- tabs changed:
- top-level
tab-set
tabbed
->tab-item
- include
:sync:
option to synchronize tab selection across sets
- top-level
- Minimises direct use of CSS classes (encourage to not use them)
- More declarative, easy to understand options, easier to validate
- Easier to work with non-HTML outputs
- Easier to improve/refactor
- Updated Bootstrap CSS v4 -> v5
- top-level grid can define both column numbers and gutter sizes
- All CSS classes are prefixed with
sd-
(no clash with other theme/extension CSS) - All colors use CSS variables (customisable)
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)
paragraph and tab-set in grid-item
rtd PRs not working
octicon in button text shown as raw HTML
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
Hashes for sphinx_design-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e4f652a22aaf7548faa1cd5b8cfc619f7bc4555a5ec766aaad4d06c9a01b5f |
|
MD5 | cc7b75e6afba789666e722416961b988 |
|
BLAKE2b-256 | 711e7a0a844dabaff0db42431477ad363c7073b1630a7d99c4153f72d63f18d5 |