Skip to main content

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

Project description

sphinx-design

Github-CI Coverage Status PyPI

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 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_design-0.6.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

sphinx_design-0.6.1-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file sphinx_design-0.6.1.tar.gz.

File metadata

  • Download URL: sphinx_design-0.6.1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for sphinx_design-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b44eea3719386d04d765c1a8257caca2b3e6f8421d7b3a5e742c0fd45f84e632
MD5 a9de747353ce75271639efb2fad2ac5c
BLAKE2b-256 2b69b34e0cb5336f09c6866d53b4a19d76c227cdec1bbc7ac4de63ca7d58c9c7

See more details on using hashes here.

File details

Details for the file sphinx_design-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_design-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b11f37db1a802a183d61b159d9a202314d4d2fe29c163437001324fe2f19549c
MD5 cd12f4ead9abe92dcdc20aa122720cae
BLAKE2b-256 c64365c0acbd8cc6f50195a3a1fc195c404988b15c67090e73c7a41a9f57d6bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page