Debian Codegraph @

README.md

raw
1 # sphinx-design
2
3 [![Github-CI][github-ci]][github-link]
4 [![Coverage Status][codecov-badge]][codecov-link]
5 [![PyPI][pypi-badge]][pypi-link]
6
7 A sphinx extension for designing beautiful, view size responsive web components.
8
9 Created with inspiration from [Bootstrap](https://getbootstrap.com/) (v5), [Material Design](https://material.io) and [Material-UI](https://material-ui.com/) design frameworks.
10
11 ## Usage
12
13 Simply pip install `sphinx-design` and add the extension to your `conf.py`:
14
15 ```python
16 extensions = ["sphinx_design"]
17 ```
18
19 ## Supported browsers
20
21 - Chrome >= 60
22 - Firefox >= 60
23 - Firefox ESR
24 - iOS >= 12
25 - Safari >= 12
26 - Explorer >= 12
27
28 (Mirrors: <https://github.com/twbs/bootstrap/blob/v5.0.2/.browserslistrc>)
29
30 ## Theme support
31
32 View the documentation in multiple themes:
33
34 - [alabaster](https://sphinx-design.readthedocs.io/en/alabaster-theme)
35 - [sphinx-book-theme](https://sphinx-design.readthedocs.io/en/sbt-theme)
36 - [pydata-sphinx-theme](https://sphinx-design.readthedocs.io/en/pydata-theme)
37 - [sphinx-rtd-theme](https://sphinx-design.readthedocs.io/en/rtd-theme)
38 - [furo](https://sphinx-design.readthedocs.io/en/furo-theme)
39
40 ## Comparison to sphinx-panels
41
42 This package is an iteration on [sphinx-panels](https://github.com/executablebooks/sphinx-panels) and intends to replace it.
43 See [Migrating from sphinx-panels](./docs/get_started.md) for more information.
44
45 ## Development
46
47 It is recommended to use [tox](https://tox.readthedocs.io/en/latest/) to run the tests and document builds.
48 Run `tox -va` to see all the available tox environments.
49
50 To run linting, formatting and SASS compilation, use [pre-commit](https://pre-commit.com/).
51 `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,
52 or you can directly run `npm run css`.
53
54 ## TODO
55
56 - note design goal; to be flexible, but limit the amount of directive nesting required.
57 This factors in to
58 - card header/footer syntax? (don't really want to have to use separate directives for these, hence `^^^`/`+++` syntax)
59 - auto-wrap `grid-item` and `tab-item`, if not already inside `grid` or `tab-set`?
60
61 grids items cannot contain headers; is this in anyway possible with docutils structure?
62
63 naming of directives/roles: standard prefix?
64
65 why are cards setup with "word-wrap: break-word;"?
66
67 handle latex
68
69 Use autoprefixer when compiling SASS (see <https://getbootstrap.com/docs/5.0/getting-started/browsers-devices/#supported-browsers>)
70
71 horizontal card (grid row inside card, picture on left)
72
73 subtitle for card (see <https://material.io/components/cards#anatomy>)
74
75
76 [github-ci]: https://github.com/executablebooks/sphinx-design/workflows/continuous-integration/badge.svg?branch=main
77 [github-link]: https://github.com/executablebooks/sphinx-design
78 [codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-design/branch/main/graph/badge.svg
79 [codecov-link]: https://codecov.io/gh/executablebooks/sphinx-design
80 [pypi-badge]: https://img.shields.io/pypi/v/sphinx-design.svg
81 [pypi-link]: https://pypi.org/project/sphinx-design