Skip to content

Commit

Permalink
Merge pull request #303 from SCM-NV/doc
Browse files Browse the repository at this point in the history
DOC: Fix documentation building
  • Loading branch information
BvB93 authored Jul 5, 2023
2 parents c10f1ba + 6b19e3d commit a2ccef3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
12 changes: 4 additions & 8 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@ version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Configuration for the documentation build process.
# This allows you to specify the base Read the Docs image used to build the documentation,
# and control the versions of several tools: Python, Node.js, Rust, and Go.
build:
os: ubuntu-22.04
tools:
python: "3.11"
fail_on_warning: true

# Optionally build your docs in additional formats such as PDF
formats:
- htmlzip
- epub

# Optionally set the version of Python and requirements required to build your docs
conda:
environment: doc_environment.yml

python:
install:
- method: pip
Expand Down
6 changes: 6 additions & 0 deletions doc_environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: qmflows-doc
channels:
- conda-forge
dependencies:
- python
- pandoc # pandoc on pypi is poorly maintaned; use conda-forge instead
11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
master_doc = 'index'

# General information about the project.
project = 'qmflows'
project = qmflows.__name__
copyright = '2022, F. Zapata, L. Ridder, B. F. van Beek'
author = 'F. Zapata, L. Ridder, B. F. van Beek'

Expand All @@ -69,10 +69,17 @@
# built documents.
#
# The short X.Y version.
version = qmflows.__version__
version = f"{qmflows.__version_tuple__[0]}{qmflows.__version_tuple__[1]}"
# The full version, including alpha/beta/rc tags.
release = qmflows.__version__


# A list of warning types to suppress arbitrary warning messages.
suppress_warnings = [
"epub.unknown_project_files",
]


# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Documentation = "https://qmflows.readthedocs.io/en/latest/"

[project.optional-dependencies]
doc = [
"sphinx>=2.1,!=3.1.1",
"sphinx>=2.1,!=3.1.1,<7",
"sphinx-autodoc-typehints",
"sphinx_rtd_theme",
"nbsphinx",
Expand Down
1 change: 0 additions & 1 deletion scripts/download_cp2k.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ case "$OS" in
esac
;;
"macos"*)
brew update
brew install cp2k
echo -e \n::endgroup::\n
;;
Expand Down

0 comments on commit a2ccef3

Please sign in to comment.