Skip to content

Commit ef41df7

Browse files
authored
Merge pull request #33 from najuzilu/misc-edit-docs
📚 DOCS: Additional documentation
2 parents 2c41af4 + 4b6cf2d commit ef41df7

File tree

4 files changed

+60
-2
lines changed

4 files changed

+60
-2
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# sphinxcontrib-prettyproof
22

3-
[![Documentation Status](https://readthedocs.org/projects/sphinxcontrib-prettyproof/badge/?version=latest)](https://sphinxcontrib-prettyproof.readthedocs.io/en/latest/?badge=latest)
3+
[![Documentation Status][rtd-badge]][rtd-link]
4+
[![Github-CI][github-ci]][github-link]
5+
[![Coverage Status][codecov-badge]][codecov-link]
46

57
**A proof extension for Sphinx**.
68

@@ -29,3 +31,16 @@ extensions = ["sphinxcontrib.prettyproof"]
2931
## Documentation
3032

3133
See the [Sphinxcontrib Pretty Proof documentation](https://sphinxcontrib-prettyproof.readthedocs.io/en/latest/) for more information.
34+
35+
36+
## Contributing
37+
38+
We welcome all contributions! See the [EBP Contributing Guide](https://executablebooks.org/en/latest/contributing.html) for general details, and below for guidance specific to sphinxcontrib-prettyproof.
39+
40+
41+
[rtd-badge]: https://readthedocs.org/projects/sphinxcontrib-prettyproof/badge/?version=latest
42+
[rtd-link]: https://sphinxcontrib-prettyproof.readthedocs.io/en/latest/?badge=latest
43+
[github-ci]: https://github.com/najuzilu/sphinxcontrib-prettyproof/workflows/continuous-integration/badge.svg?branch=master
44+
[github-link]: https://github.com/najuzilu/sphinxcontrib-prettyproof
45+
[codecov-badge]: https://codecov.io/gh/najuzilu/sphinxcontrib-prettyproof/branch/master/graph/badge.svg
46+
[codecov-link]: https://codecov.io/gh/najuzilu/sphinxcontrib-prettyproof

docs/source/index.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@
55
66
install
77
syntax
8+
contribute
89
testing
910
zreferences
1011
```
1112

12-
[![Documentation Status](https://readthedocs.org/projects/sphinxcontrib-prettyproof/badge/?version=latest)](https://sphinxcontrib-prettyproof.readthedocs.io/en/latest/?badge=latest)
13+
[![Documentation Status][rtd-badge]][rtd-link]
14+
[![Github-CI][github-ci]][github-link]
15+
[![Coverage Status][codecov-badge]][codecov-link]
1316

1417
**A proof extension for Sphinx**.
1518

1619
This package contains a [Sphinx](http://www.sphinx-doc.org/en/master/) extension
1720
for producing proof, theorem, axiom, lemma, definition, criterion, remark, conjecture,
1821
corollary, algorithm, exercise, example, property, observation and proposition directives.
1922

23+
2024
```{warning}
2125
sphinxcontrib-prettyproof `0.0.2` is in a development stage and may change rapidly.
2226
```
@@ -59,3 +63,11 @@ extensions = ["sphinxcontrib.prettyproof"]
5963
```
6064

6165
you may then build using `make html` and the extension will be used by your `Sphinx` project.
66+
67+
68+
[rtd-badge]: https://readthedocs.org/projects/sphinxcontrib-prettyproof/badge/?version=latest
69+
[rtd-link]: https://sphinxcontrib-prettyproof.readthedocs.io/en/latest/?badge=latest
70+
[github-ci]: https://github.com/najuzilu/sphinxcontrib-prettyproof/workflows/continuous-integration/badge.svg?branch=master
71+
[github-link]: https://github.com/najuzilu/sphinxcontrib-prettyproof
72+
[codecov-badge]: https://codecov.io/gh/najuzilu/sphinxcontrib-prettyproof/branch/master/graph/badge.svg
73+
[codecov-link]: https://codecov.io/gh/najuzilu/sphinxcontrib-prettyproof

docs/source/install.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ then run:
1818
```bash
1919
python setup.py install
2020
```
21+
22+
## Package development
23+
24+
To install `sphinxcontrib-prettyproof` for package development:
25+
26+
```bash
27+
git clone https://github.com/najuzilu/sphinxcontrib-prettyproof
28+
cd sphinxcontrib-prettyproof
29+
git checkout master
30+
pip install -e .[all]
31+
```

docs/source/testing.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,23 @@ Sphinx Application API is available as a parameter to all the test functions:
6262
@pytest.mark.sphinx('html', testroot="mybook")
6363
def mytest(app):
6464
```
65+
66+
## Code Style
67+
68+
Code is formatted using [black](https://github.com/ambv/black) and code style is tested using [flake8](http://flake8.pycqa.org) with style configuration set in `.flake8`.
69+
70+
Installing using `[code style]` will make the [pre-commit](https://pre-commit.com/) package available which will make sure the style is met before your commits are submitted. In addition, it will reformat for any lint errors.
71+
72+
To install `pre-commit` run the following
73+
74+
```bash
75+
cd sphinxcontrib-prettyproof
76+
pre-commit install
77+
```
78+
79+
`black` and `flake8` can be run separately:
80+
81+
```shell
82+
>>> black .
83+
>>> flake8 .
84+
```

0 commit comments

Comments
 (0)