Skip to content

Commit ddd83ea

Browse files
committed
📚 DOCS: Add usage guide
1 parent b930f1c commit ddd83ea

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
# sphinx-design (IN-DEVELOPMENT)
22

3+
[![Github-CI][github-ci]][github-link]
4+
[![Coverage Status][codecov-badge]][codecov-link]
5+
[![PyPI][pypi-badge]][pypi-link]
6+
37
A sphinx extension for designing beautiful, view size responsive web components.
48

59
Created with inspiration from [Bootstrap](https://getbootstrap.com/) (v5), [Material Design](https://material.io) and [Material-UI](https://material-ui.com/) design frameworks.
610

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+
719
## Supported browsers
820

921
- Chrome >= 60
@@ -78,4 +90,9 @@ paragraph and tab-set in grid-item
7890

7991
rtd PRs not working
8092

81-
document `article-info`
93+
[github-ci]: https://github.com/executablebooks/sphinx-design/workflows/continuous-integration/badge.svg?branch=main
94+
[github-link]: https://github.com/executablebooks/sphinx-design
95+
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-design/branch/main/graph/badge.svg
96+
[codecov-link]: https://codecov.io/gh/executablebooks/sphinx-design
97+
[pypi-badge]: https://img.shields.io/pypi/v/sphinx-design.svg
98+
[pypi-link]: https://pypi.org/project/sphinx-design

docs/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ Roles and directives for {bdg-primary}`badges` and other components.
8888

8989
Created with inspiration from [Bootstrap](https://getbootstrap.com/) (v5), [Material Design](https://material.io) and [Material-UI](https://material-ui.com/) design frameworks.
9090

91+
## Usage
92+
93+
Simply pip install `sphinx-design` and add the extension to your `conf.py`:
94+
95+
```python
96+
extensions = ["sphinx_design"]
97+
```
98+
99+
For using with [MyST Parser](https://github.com/executablebooks/myst-parser), for Markdown documentation, it is recommended to use the `colon_fence` syntax extension:
100+
101+
```python
102+
extensions = ["myst_parser", "sphinx_design"]
103+
myst_enable_extensions = ["colon_fence"]
104+
```
105+
91106
## Supported browsers
92107

93108
- Chrome >= 60

0 commit comments

Comments
 (0)