Skip to content

Commit 549df96

Browse files
authored
Migrating from sphinx to Material for MkDocs (#715)
1 parent 4ee347b commit 549df96

35 files changed

+1289
-1415
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,6 @@ jobs:
5353
if: always()
5454
with:
5555
files: ./**/coverage*.xml
56-
docs:
57-
runs-on: ubuntu-latest
58-
steps:
59-
- name: Checkout Repo
60-
uses: actions/checkout@v4
61-
- name: Set up Python
62-
uses: actions/setup-python@v5
63-
with:
64-
python-version: '3.10'
65-
cache: 'pip'
66-
- name: Install package
67-
run: |
68-
pip install -e '.[docs]'
69-
- name: Run tests
70-
run: |
71-
sphinx-build -W -b html docs/ _build/html
72-
- uses: actions/upload-artifact@v4
73-
with:
74-
name: Documentation
75-
path: _build/html
7656
benchmarks:
7757
runs-on: ubuntu-latest
7858
steps:

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ junit/
6060
# Django stuff:
6161
*.log
6262

63-
# Sphinx documentation
64-
docs/_build/
65-
_build/
63+
# mkdocs documentation
64+
site/
6665

6766
# PyBuilder
6867
target/

.readthedocs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
15
version: 2
26

7+
# Set the version of Python and other tools you might need
38
build:
49
os: ubuntu-22.04
510
tools:
6-
python: "3.10"
11+
python: "3.12"
712

8-
sphinx:
9-
configuration: docs/conf.py
13+
mkdocs:
14+
configuration: mkdocs.yml
15+
fail_on_warning: false
1016

17+
# Optionally declare the Python requirements required to build your docs
1118
python:
1219
install:
1320
- method: pip

docs/assets/images/logo.png

221 KB
Loading

docs/assets/images/logo.svg

Lines changed: 1 addition & 0 deletions
Loading
File renamed without changes.

docs/conduct.rst renamed to docs/conduct.md

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
Contributor Covenant Code of Conduct
2-
====================================
1+
# Code of Conduct
32

4-
Our Pledge
5-
----------
3+
## Our Pledge
64

75
We as members, contributors, and leaders pledge to make participation in
86
our community a harassment-free experience for everyone, regardless of
@@ -14,8 +12,7 @@ race, religion, or sexual identity and orientation.
1412
We pledge to act and interact in ways that contribute to an open,
1513
welcoming, diverse, inclusive, and healthy community.
1614

17-
Our Standards
18-
-------------
15+
## Our Standards
1916

2017
Examples of behavior that contributes to a positive environment for our
2118
community include:
@@ -40,8 +37,7 @@ Examples of unacceptable behavior include:
4037
- Other conduct which could reasonably be considered inappropriate in a
4138
professional setting
4239

43-
Enforcement Responsibilities
44-
----------------------------
40+
## Enforcement Responsibilities
4541

4642
Community leaders are responsible for clarifying and enforcing our
4743
standards of acceptable behavior and will take appropriate and fair
@@ -53,35 +49,32 @@ reject comments, commits, code, wiki edits, issues, and other
5349
contributions that are not aligned to this Code of Conduct, and will
5450
communicate reasons for moderation decisions when appropriate.
5551

56-
Scope
57-
-----
52+
## Scope
5853

5954
This Code of Conduct applies within all community spaces, and also
6055
applies when an individual is officially representing the community in
6156
public spaces. Examples of representing our community include using an
6257
official e-mail address, posting via an official social media account,
6358
or acting as an appointed representative at an online or offline event.
6459

65-
Enforcement
66-
-----------
60+
## Enforcement
61+
6762

6863
Instances of abusive, harassing, or otherwise unacceptable behavior may
6964
be reported to the community leaders responsible for enforcement at
70-
`[email protected] <mailto:[email protected]>`_. All complaints will be reviewed and
65+
[[email protected]](mailto:[email protected]). All complaints will be reviewed and
7166
investigated promptly and fairly.
7267

7368
All community leaders are obligated to respect the privacy and security
7469
of the reporter of any incident.
7570

76-
Enforcement Guidelines
77-
----------------------
71+
## Enforcement Guidelines
7872

7973
Community leaders will follow these Community Impact Guidelines in
8074
determining the consequences for any action they deem in violation of
8175
this Code of Conduct:
8276

83-
1. Correction
84-
~~~~~~~~~~~~~
77+
### 1. Correction
8578

8679
**Community Impact**: Use of inappropriate language or other behavior
8780
deemed unprofessional or unwelcome in the community.
@@ -91,8 +84,7 @@ providing clarity around the nature of the violation and an explanation
9184
of why the behavior was inappropriate. A public apology may be
9285
requested.
9386

94-
2. Warning
95-
~~~~~~~~~~
87+
### 2. Warning
9688

9789
**Community Impact**: A violation through a single incident or series of
9890
actions.
@@ -104,8 +96,7 @@ time. This includes avoiding interactions in community spaces as well as
10496
external channels like social media. Violating these terms may lead to a
10597
temporary or permanent ban.
10698

107-
3. Temporary Ban
108-
~~~~~~~~~~~~~~~~
99+
### 3. Temporary Ban
109100

110101
**Community Impact**: A serious violation of community standards,
111102
including sustained inappropriate behavior.
@@ -117,8 +108,7 @@ unsolicited interaction with those enforcing the Code of Conduct, is
117108
allowed during this period. Violating these terms may lead to a
118109
permanent ban.
119110

120-
4. Permanent Ban
121-
~~~~~~~~~~~~~~~~
111+
### 4. Permanent Ban
122112

123113
**Community Impact**: Demonstrating a pattern of violation of community
124114
standards, including sustained inappropriate behavior, harassment of an
@@ -128,17 +118,17 @@ individuals.
128118
**Consequence**: A permanent ban from any sort of public interaction
129119
within the community.
130120

131-
Attribution
132-
-----------
121+
## Attribution
122+
133123

134-
This Code of Conduct is adapted from the `Contributor
135-
Covenant <https://www.contributor-covenant.org>`__, version 2.0,
124+
This Code of Conduct is adapted from the [Contributor
125+
Covenant](https://www.contributor-covenant.org), version 2.0,
136126
available at
137-
https://www.contributor-covenant.org/version/2/0/code\_of\_conduct.html.
127+
[https://www.contributor-covenant.org/version/2/0/code\_of\_conduct.html](https://www.contributor-covenant.org/version/2/0/code\_of\_conduct.html).
138128

139-
Community Impact Guidelines were inspired by `Mozilla's code of conduct
140-
enforcement ladder <:ghuser:`mozilla/diversity`>`__.
129+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
130+
enforcement ladder](https://github.com/mozilla/inclusion).
141131

142132
For answers to common questions about this code of conduct, see the FAQ
143-
at https://www.contributor-covenant.org/faq. Translations are available
144-
at https://www.contributor-covenant.org/translations.
133+
at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available
134+
at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).

docs/conf.py

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)