forked from faasm/faabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Skeleton for docs * Remove autogen makefile * Tidy-up * Add directory to cache actioN * RTD config file * Hack to install deps * Added breathe-apidoc * Simplify sphinx build * Revert unnecessary changes to GHA * Populate classes with members, rtd theme * Remove comment * Update README * Formatting * Check out code in docs build * Remove conan-cache dep from docs build
- Loading branch information
Showing
15 changed files
with
155 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-20.04" | ||
tools: | ||
python: "3.9" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
doxygen/ | ||
apidoc/ | ||
sphinx/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
DOXYFILE_ENCODING = UTF-8 | ||
PROJECT_NAME = "Faabric" | ||
OUTPUT_DIRECTORY = doxygen | ||
OUTPUT_LANGUAGE = English | ||
|
||
FULL_PATH_NAMES = NO | ||
MARKDOWN_SUPPORT = YES | ||
RECURSIVE = YES | ||
QUIET = YES | ||
|
||
GENERATE_LATEX = NO | ||
GENERATE_XML = YES | ||
GENERATE_HTML = NO | ||
|
||
INPUT = ../include ../src | ||
FILE_PATTERNS = *.h *.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from os.path import dirname, realpath, join | ||
from subprocess import run | ||
from os import makedirs | ||
|
||
# ---------------------------------------- | ||
# This is the Sphinx configuration file, which wraps | ||
# the calls to Doxygen and Breathe. | ||
# ---------------------------------------- | ||
|
||
DOCS_ROOT = dirname(realpath(__file__)) | ||
DOXYGEN_OUT = join(DOCS_ROOT, "doxygen", "xml") | ||
APIDOC_OUT_DIR = join(DOCS_ROOT, "apidoc") | ||
|
||
makedirs(APIDOC_OUT_DIR, exist_ok=True) | ||
|
||
run("doxygen", cwd=DOCS_ROOT, check=True, shell=True) | ||
|
||
run( | ||
"breathe-apidoc {} -o {} -f -m".format(DOXYGEN_OUT, APIDOC_OUT_DIR), | ||
cwd=DOCS_ROOT, | ||
check=True, | ||
shell=True, | ||
) | ||
|
||
project = "Faabric" | ||
copyright = "2022, Simon Shillaker" | ||
author = "Simon Shillaker" | ||
|
||
extensions = ["breathe", "myst_parser", "sphinx_rtd_theme"] | ||
|
||
templates_path = ["source/templates"] | ||
html_static_path = ["source/static"] | ||
|
||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
||
html_theme = "sphinx_rtd_theme" | ||
|
||
breathe_projects = {"Faabric": DOXYGEN_OUT} | ||
breathe_default_project = "Faabric" | ||
breathe_default_members = ("members", "undoc-members") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Faabric Documentation | ||
=================================== | ||
|
||
These docs include some pages on specific topics, as well as the autogenerated | ||
docs from the code. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Topics | ||
|
||
source/development | ||
source/mpi_native | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Code | ||
|
||
apidoc/namespacelist | ||
apidoc/classlist |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
ansible | ||
black | ||
docker | ||
flake8 | ||
invoke | ||
numpy | ||
redis | ||
black==21.12b0 | ||
breathe==4.32.0 | ||
docker==5.0.3 | ||
flake8==4.0.1 | ||
invoke==1.6.0 | ||
myst-parser==0.16.1 | ||
numpy==1.21.5 | ||
redis==4.1.0 | ||
sphinx-rtd-theme==1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from os import makedirs | ||
from os.path import join | ||
from subprocess import run | ||
|
||
from tasks.util.env import PROJ_ROOT | ||
|
||
from invoke import task | ||
|
||
DOCS_DIR = join(PROJ_ROOT, "docs") | ||
SPHINX_OUT_DIR = join(DOCS_DIR, "sphinx") | ||
|
||
|
||
@task(default=True) | ||
def generate(ctx): | ||
makedirs(SPHINX_OUT_DIR, exist_ok=True) | ||
|
||
run( | ||
"sphinx-build -b html {} {}".format(DOCS_DIR, SPHINX_OUT_DIR), | ||
cwd=DOCS_DIR, | ||
check=True, | ||
shell=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters