Skip to content

Commit

Permalink
Add Sphinx documentation (#12)
Browse files Browse the repository at this point in the history
* Rename doc/ to docs/

* Support cached properties in Sphinx

* Remove API key residue

* Add Sphinx documentation

* Add CI workflow for building Sphinx documentation

* Add Read the Docs configuration file

* Update colour of XCC title

* Apply formatter

* Switch to using RST for the README

* Create walkthrough page from README sections

* Delete empty first line from circuit.xbb

* Add docstrings to Settings attributes

* Replace raw HTML with RST image directive

* Replace :align: option with :width: option

* Update README.rst
  • Loading branch information
Mandrenkov authored Nov 8, 2021
1 parent d09b341 commit 2cbb8d4
Show file tree
Hide file tree
Showing 48 changed files with 4,839 additions and 218 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Documentation Check
on:
- pull_request

jobs:
sphinx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: josh146/sphinx-action@master
with:
docs-folder: "docs/"
pre-build-command: "apt install -y graphviz && pip3 install . && pip3 install -r docs/requirements.txt"
build-command: "sphinx-build -b html . _build -W --keep-going"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/api/

# PyBuilder
target/
Expand Down
14 changes: 14 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2

sphinx:
configuration: docs/conf.py

python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .

build:
image: latest
210 changes: 0 additions & 210 deletions README.md

This file was deleted.

Loading

0 comments on commit 2cbb8d4

Please sign in to comment.