Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating from sphinx to Material for MkDocs #715

Merged
merged 60 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3a96e8f
WIP
DeaMariaLeon Jul 5, 2024
6ed4600
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 5, 2024
d63aaf1
wip
DeaMariaLeon Jul 5, 2024
b98a5ea
wip
DeaMariaLeon Jul 5, 2024
11ba61a
wip
DeaMariaLeon Jul 5, 2024
2d88b9f
wip
DeaMariaLeon Jul 6, 2024
82a7182
wip
DeaMariaLeon Jul 7, 2024
c5a476f
wip
DeaMariaLeon Jul 8, 2024
9050901
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 8, 2024
5effed0
found objects.inv
DeaMariaLeon Jul 8, 2024
9953c0d
wip
DeaMariaLeon Jul 8, 2024
1dcec2e
wip
DeaMariaLeon Jul 8, 2024
547d2af
fixing links
DeaMariaLeon Jul 9, 2024
66ef01f
wip
DeaMariaLeon Jul 9, 2024
1e54f82
Generating API from __all__
DeaMariaLeon Jul 10, 2024
c72d646
Merge remote-tracking branch 'upstream/main' into mkdocs2
DeaMariaLeon Jul 10, 2024
c2ed8a0
gen_ref_pages using __module__
DeaMariaLeon Jul 10, 2024
f49e2ab
gen_ref_pages.py using __module__
DeaMariaLeon Jul 10, 2024
a1db3a2
wip
DeaMariaLeon Jul 10, 2024
aa4302b
fixing links
DeaMariaLeon Jul 10, 2024
52a010c
construct.md - but missing math
DeaMariaLeon Jul 10, 2024
f4f0244
fixed math rendering
DeaMariaLeon Jul 11, 2024
a4a35a4
fixing more links on construct.md
DeaMariaLeon Jul 11, 2024
605267a
fixing formats - added warnings
DeaMariaLeon Jul 11, 2024
0fce2b0
wip operations.md
DeaMariaLeon Jul 11, 2024
7fa245b
fixing formats Construct and Operations
DeaMariaLeon Jul 12, 2024
02440d1
fixed nav
DeaMariaLeon Jul 12, 2024
39d5ae2
fixed roadmap.md
DeaMariaLeon Jul 12, 2024
47d68d9
changed nav settings, fixing links
DeaMariaLeon Jul 12, 2024
e95c037
worked on mkdocs, contributing, conduct
DeaMariaLeon Jul 12, 2024
e6d34e0
wip
DeaMariaLeon Jul 13, 2024
69b34ba
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 13, 2024
43dff4f
fixing docstrings
DeaMariaLeon Jul 14, 2024
8b9b738
API links
DeaMariaLeon Jul 15, 2024
a68b80e
wip See Also
DeaMariaLeon Jul 15, 2024
df7eb40
fixing COO
DeaMariaLeon Jul 15, 2024
8e95677
wip fixing COO
DeaMariaLeon Jul 15, 2024
b21ded2
wip
DeaMariaLeon Jul 16, 2024
65bc51b
wip
DeaMariaLeon Jul 16, 2024
9ccafa6
wip
DeaMariaLeon Jul 16, 2024
e1699a2
wip
DeaMariaLeon Jul 16, 2024
89615fc
cleaned up
DeaMariaLeon Jul 16, 2024
49a5544
last one?
DeaMariaLeon Jul 16, 2024
08ea498
conduct
DeaMariaLeon Jul 16, 2024
134d522
wip
DeaMariaLeon Jul 18, 2024
a4bd50a
changed versions in requirements.txt
DeaMariaLeon Jul 18, 2024
c05b906
wip
DeaMariaLeon Jul 18, 2024
535be1e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 18, 2024
a8c7404
ci
DeaMariaLeon Jul 18, 2024
eba7041
Merge remote-tracking branch 'origin/mkdocs2' into mkdocs2
DeaMariaLeon Jul 18, 2024
7d9f931
wip
DeaMariaLeon Jul 18, 2024
4eb2123
wip
DeaMariaLeon Jul 18, 2024
d8f1964
testing readthedocs
DeaMariaLeon Jul 19, 2024
0d38cda
backticks
DeaMariaLeon Jul 20, 2024
7754a12
backticks 2
DeaMariaLeon Jul 20, 2024
5bb236d
ci
DeaMariaLeon Jul 20, 2024
813f30a
removed requirements.txt
DeaMariaLeon Jul 20, 2024
8957aec
Merge remote-tracking branch 'upstream/main' into mkdocs2
DeaMariaLeon Jul 20, 2024
99650e9
forgot some indents
DeaMariaLeon Jul 20, 2024
d7b9fcc
Removed extra lines/removed links on header
DeaMariaLeon Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,6 @@ jobs:
if: always()
with:
files: ./**/coverage*.xml
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install package
run: |
pip install -e '.[docs]'
- name: Run tests
run: |
sphinx-build -W -b html docs/ _build/html
- uses: actions/upload-artifact@v4
with:
name: Documentation
path: _build/html
benchmarks:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ junit/
# Django stuff:
*.log

# Sphinx documentation
docs/_build/
_build/
# mkdocs documentation
site/

# PyBuilder
target/
Expand Down
13 changes: 10 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# Read the Docs configuration file for MkDocs projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.12"
hameerabbasi marked this conversation as resolved.
Show resolved Hide resolved

sphinx:
configuration: docs/conf.py
mkdocs:
configuration: mkdocs.yml
fail_on_warning: false

# Optionally declare the Python requirements required to build your docs
python:
install:
- method: pip
Expand Down
Binary file added docs/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
54 changes: 22 additions & 32 deletions docs/conduct.rst → docs/conduct.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Contributor Covenant Code of Conduct
====================================
# Code of Conduct

Our Pledge
----------
## Our Pledge

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

Our Standards
-------------
## Our Standards

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

Enforcement Responsibilities
----------------------------
## Enforcement Responsibilities

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

Scope
-----
## Scope

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

Enforcement
-----------
## Enforcement


Instances of abusive, harassing, or otherwise unacceptable behavior may
be reported to the community leaders responsible for enforcement at
`hameerabbasi@yahoo.com <mailto:hameerabbasi@yahoo.com>`_. All complaints will be reviewed and
[hameerabbasi@yahoo.com](mailto:hameerabbasi@yahoo.com). All complaints will be reviewed and
investigated promptly and fairly.

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

Enforcement Guidelines
----------------------
## Enforcement Guidelines

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

1. Correction
~~~~~~~~~~~~~
### 1. Correction

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

2. Warning
~~~~~~~~~~
### 2. Warning

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

3. Temporary Ban
~~~~~~~~~~~~~~~~
### 3. Temporary Ban

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

4. Permanent Ban
~~~~~~~~~~~~~~~~
### 4. Permanent Ban

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

Attribution
-----------
## Attribution


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

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

For answers to common questions about this code of conduct, see the FAQ
at https://www.contributor-covenant.org/faq. Translations are available
at https://www.contributor-covenant.org/translations.
at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available
at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
192 changes: 0 additions & 192 deletions docs/conf.py

This file was deleted.

Loading
Loading