diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -69,19 +69,19 @@ ruff-check: .PHONY: docs ## build docs docs: - (cd docs; nix-build default.nix -o result; make clean html) + (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean html) .PHONY: docs-clean ## Cleanup docs docs-clean: - (cd docs; make clean) + (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean) .PHONY: docs-cleanup ## Cleanup docs docs-cleanup: - (cd docs; make cleanup) + (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make cleanup) .PHONY: web-build diff --git a/docs/.howto b/docs/.howto --- a/docs/.howto +++ b/docs/.howto @@ -1,9 +1,6 @@ -# generating packages -nix-shell pkgs/shell-generate.nix -cd docs -pip2nix generate +## BUILD +# cd docs +# docker build --tag sphinx-doc-build-rc . -# building the docs -cd docs -nix-build default.nix -o result -make clean html +# Build Docs +# docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean html \ No newline at end of file diff --git a/docs/Dockerfile b/docs/Dockerfile new file mode 100644 --- /dev/null +++ b/docs/Dockerfile @@ -0,0 +1,5 @@ +FROM sphinxdoc/sphinx + +WORKDIR /project +ADD requirements_docs.txt /project +RUN pip3 install -r requirements_docs.txt diff --git a/docs/Makefile b/docs/Makefile --- a/docs/Makefile +++ b/docs/Makefile @@ -2,9 +2,9 @@ # # You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = ./result/bin/sphinx-build -PAPER = +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = source BUILDDIR = _build # User-friendly check for sphinx-build diff --git a/docs/_templates/base.html b/docs/_templates/base.html new file mode 100644 --- /dev/null +++ b/docs/_templates/base.html @@ -0,0 +1,117 @@ + + +
+ + + + + {%- block site_meta -%} + + + + + {%- if metatags %}{{ metatags }}{% endif -%} + + {%- block linktags %} + {%- if hasdoc('about') -%} + + {%- endif -%} + {%- if hasdoc('genindex') -%} + + {%- endif -%} + {%- if hasdoc('search') -%} + + {%- endif -%} + {%- if hasdoc('copyright') -%} + + {%- endif -%} + {%- if next -%} + + {%- endif -%} + {%- if prev -%} + + {%- endif -%} + {#- rel="canonical" (set by html_baseurl) -#} + {%- if pageurl %} + + {%- endif %} + {%- endblock linktags %} + + {# Favicon #} + {%- if favicon_url -%} + + {%- endif -%} + + + + {%- endblock site_meta -%} + + {#- Site title -#} + {%- block htmltitle -%} + {% if not docstitle %} +