diff --git a/Dockerfile b/Dockerfile index 731e831c9b2fc1ff1068ae2b2a80c04bbf0039c7..f6bf9841524472c7af2522ce9cd641e9c5dbd824 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,7 @@ FROM python:3.8-bullseye # Base # ######## -COPY ./ /src/ - -RUN pip install -r /src/doc.zih.tu-dresden.de/requirements.txt +RUN pip install mkdocs>=1.1.2 mkdocs-material>=7.1.0 ########## # Linter # @@ -16,6 +14,6 @@ RUN apt update && apt install -y nodejs npm aspell RUN npm install -g markdownlint-cli markdown-link-check -WORKDIR /src/doc.zih.tu-dresden.de +WORKDIR /docs CMD ["mkdocs", "build", "--verbose", "--strict"] diff --git a/doc.zih.tu-dresden.de/README.md b/doc.zih.tu-dresden.de/README.md index e7de9cd2eed1f6f72183047886655d522846bc34..dc65e18d33561b7e1bc5e50d73f8bfd4085f3f27 100644 --- a/doc.zih.tu-dresden.de/README.md +++ b/doc.zih.tu-dresden.de/README.md @@ -40,13 +40,7 @@ Now, create a local clone of your fork #### Install Dependencies -**TODO:** Description - -```Shell Session -~ cd hpc-compendium/doc.zih.tu-dresden.de -~ pip install -r requirements.txt -``` - +See [Installation with Docker](#preview-using-mkdocs-with-dockerfile). **TODO:** virtual environment **TODO:** What we need for markdownlinter and checks? diff --git a/doc.zih.tu-dresden.de/requirements.txt b/doc.zih.tu-dresden.de/requirements.txt deleted file mode 100644 index 272b09c7c7ffb6b945eaa66e14e2e695f5502f17..0000000000000000000000000000000000000000 --- a/doc.zih.tu-dresden.de/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Documentation static site generator & deployment tool -mkdocs>=1.1.2 - -# Add custom theme if not inside a theme_dir -# (https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes) -mkdocs-material>=7.1.0