freshcrate
Home > Frameworks > sphinx-design

sphinx-design

A sphinx extension for designing beautiful, view size responsive web components.

Description

# sphinx-design [![Github-CI][github-ci]][github-link] [![Coverage Status][codecov-badge]][codecov-link] [![PyPI][pypi-badge]][pypi-link] A sphinx extension for designing beautiful, view size responsive web components. Created with inspiration from [Bootstrap](https://getbootstrap.com/) (v5), [Material Design](https://material.io) and [Material-UI](https://material-ui.com/) design frameworks. ## Usage Simply pip install `sphinx-design` and add the extension to your `conf.py`: ```python 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: - [alabaster](https://sphinx-design.readthedocs.io/en/alabaster-theme) - [sphinx-book-theme](https://sphinx-design.readthedocs.io/en/sbt-theme) - [pydata-sphinx-theme](https://sphinx-design.readthedocs.io/en/pydata-theme) - [sphinx-rtd-theme](https://sphinx-design.readthedocs.io/en/rtd-theme) - [furo](https://sphinx-design.readthedocs.io/en/furo-theme) ## Comparison to sphinx-panels This package is an iteration on [sphinx-panels](https://github.com/executablebooks/sphinx-panels) and intends to replace it. See [Migrating from sphinx-panels](./docs/get_started.md) for more information. ## Development It is recommended to use [tox](https://tox.readthedocs.io/en/latest/) 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](https://pre-commit.com/). `pre-commit run --all css` will run the SASS compiler, for which you will need [node](https://nodejs.org) and [npm](https://www.npmjs.com/) 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` and `tab-item`, if not already inside `grid` or `tab-set`? 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>) [github-ci]: https://github.com/executablebooks/sphinx-design/workflows/continuous-integration/badge.svg?branch=main [github-link]: https://github.com/executablebooks/sphinx-design [codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-design/branch/main/graph/badge.svg [codecov-link]: https://codecov.io/gh/executablebooks/sphinx-design [pypi-badge]: https://img.shields.io/pypi/v/sphinx-design.svg [pypi-link]: https://pypi.org/project/sphinx-design

Release History

VersionChangesUrgencyDate
0.7.0Imported from PyPI (0.7.0)Low4/21/2026
v0.7.0## What's Changed * ๐Ÿงช add regression test for available material icons by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/224 * โฌ†๏ธ Update Material Design Icons to v4.0.0-116-ge9da21 by @2bndy5 in https://github.com/executablebooks/sphinx-design/pull/223 * ๐Ÿ“š Document `muted`, `white`, and `black` semantic colors by @user27182 in https://github.com/executablebooks/sphinx-design/pull/216 * โฌ†๏ธ Drop Python 3.9 & 3.10, support Python 3.14; Drop sphinx v6 by @chrisjsewell iLow1/19/2026
v0.6.1## What's Changed * ๐Ÿ‘Œ Reduce right-padding of dropdown title by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/198 * โฌ†๏ธ Update sphinx v8 and test dependency versions by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/212 **Full Changelog**: https://github.com/executablebooks/sphinx-design/compare/v0.6.0...v0.6.1Low8/2/2024
v0.6.0## What's Changed ### Dependencies - โฌ†๏ธ Python v3.9-3.12 by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/186 - โฌ†๏ธ Octicon icons to v19.8.0 by @ffvpor in https://github.com/executablebooks/sphinx-design/pull/171 ### New #### โœจ Create custom directives You can use the `sd_custom_directives` configuration option in your `conf.py` to add custom directives, with default option values: ```python sd_custom_directives = { "dropdown-syntax": { "inheriLow5/22/2024
v0.5.0## What's Changed * โฌ†๏ธ Drop Python 3.7 support, by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/146 * โฌ†๏ธ UPGRADE: sphinx>=5,<8, by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/148 **Full Changelog**: https://github.com/executablebooks/sphinx-design/compare/v0.4.1...v0.5.0Low7/27/2023
v0.4.1This is a minor release to bring in the following PR: * ENH: Add img-alt for card and grid-item-card by @jpmckinney in https://github.com/executablebooks/sphinx-design/pull/114 Low4/13/2023
v0.4.0## v0.4.0 - 2023-04-13 ([full changelog](https://github.com/executablebooks/sphinx-design/compare/v0.3.0...3d0db63f06a8f59a5ea1067e0f43782464eeff83)) This release primarily brings in support for the latest versions of Sphinx and Python, and implements a few enhancements and bugfixes as well. ### Enhancements made - Make default blue color a11y friendly. [#124](https://github.com/executablebooks/sphinx-design/pull/124) ([@feanil](https://github.com/feanil), [@choldgraf](https://githubLow4/13/2023
v0.3.0## What's Changed * โฌ†๏ธ Update Materials Design Icons to v4.0.0-46-gc9e5528 by @2bndy5 in https://github.com/executablebooks/sphinx-design/pull/69 * ๐Ÿ“š DOCS: Update font awesome icons by @2bndy5 in https://github.com/executablebooks/sphinx-design/pull/64 * ๐Ÿ› FIX: Docs build against non-html formats by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/88 * ๐Ÿ‘Œ IMPROVE: Add `link-alt` to fix card link accessibility by @chrisjsewell in https://github.com/executablebooks/spLow8/22/2022
v0.2.0## What's Changed * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/executablebooks/sphinx-design/pull/63 * โฌ†๏ธ Add Python 3.10 support by @jarrodmillman in https://github.com/executablebooks/sphinx-design/pull/71 * โฌ†๏ธ Support Sphinx v5, drop v3 by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/74 * ๐Ÿš€ RELEASE: v0.2.0 by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/75 ## New Contributors * @jarrodmillman made Low6/14/2022
v0.1.0## What's Changed * โฌ†๏ธ UPGRADE: octicons to v16.1.1 by @pocek in https://github.com/executablebooks/sphinx-design/pull/43 * โœจ NEW: Add material design icons roles by @2bndy5 in https://github.com/executablebooks/sphinx-design/pull/41 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/executablebooks/sphinx-design/pull/39 * ๐Ÿ”ง MAINTAIN: Move from setuptools to flit for package build by @chrisjsewell in https://github.com/executablebooks/sphinx-design/pull/58 * ๐Ÿ”งLow4/20/2022
v0.0.13See CHANGELOG.mdLow10/27/2021
v0.0.12Release v0.0.12Low8/13/2021
v0.0.11Release v0.0.11Low8/9/2021
v0.0.10Release v0.0.10Low8/8/2021
v0.0.9Release v0.0.9Low8/6/2021
v0.0.8Release v0.0.8Low8/5/2021
v0.0.7Release v0.0.7Low8/5/2021
v0.0.6Release v0.0.6Low8/4/2021
v0.0.5Release v0.0.5Low7/29/2021
v0.0.4Release v0.0.4Low7/28/2021
v0.0.3Release v0.0.3Low7/26/2021
v0.0.2Release v0.0.2Low7/23/2021
v0.0.1Release v0.0.1Low7/22/2021

Dependencies & License Audit

Loading dependencies...

Similar Packages

lacesDjango components that know how to render themselves.0.1.2
jinja2-humanize-extensiona jinja2 extension to use humanize library inside jinja2 templates0.4.0
myst-parserAn extended [CommonMark](https://spec.commonmark.org/) compliant parser,5.0.0
flask-jwt-extendedExtended JWT integration with Flask4.7.1
jupyterlab-widgetsJupyter interactive widgets for JupyterLab3.0.16