Skip to content

Commit

Permalink
readthedocs v2
Browse files Browse the repository at this point in the history
  • Loading branch information
QFer committed Nov 11, 2022
1 parent b94b6dd commit 4127d72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
version: 2

build:
image: latest

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

python:
version: 3.8
setup_py_install: true
pip_install: true
version: "3.8"
install:
- requirements: docs/requirements.txt
- method: pip
path: .

formats:
- pdf
Expand Down
1 change: 0 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ help:
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)


python-deps:
@${PYTHON3} -m pip install -r requirements.txt

Expand Down
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
import re
# import sys

# sys.path.insert(0, os.path.abspath('.'))


Expand All @@ -26,6 +28,8 @@

release = get_release_version("netqasm")

# The short X.Y version.
version = re.match(r'^(\d+\.\d+)', release).expand(r'\1')

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit 4127d72

Please sign in to comment.