diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e7cf0682..7bfbe612 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout main uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Node uses: actions/setup-node@v2 with: diff --git a/docs/Dockerfile b/docs/Dockerfile index 6efdf9d2..07cd0482 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -2,9 +2,13 @@ FROM squidfunk/mkdocs-material:9 MAINTAINER "WüSpace e.V." # Install mkdocs plugins from requirements.txt -COPY requirements.txt /docs/requirements.txt +COPY docs/requirements.txt /docs/requirements.txt RUN pip install -r /docs/requirements.txt +# Copy .git to /docs/.git +COPY .git /.git + +WORKDIR /docs STOPSIGNAL SIGKILL ENTRYPOINT ["mkdocs"] CMD ["serve", "--dev-addr=0.0.0.0:4044"] diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml index be95cea8..459d81a3 100644 --- a/docs/docker-compose.yml +++ b/docs/docker-compose.yml @@ -6,7 +6,7 @@ services: volumes: - .:/docs build: - context: . - dockerfile: Dockerfile + context: ../ + dockerfile: docs/Dockerfile args: DOCKER_BUILDKIT: 1 \ No newline at end of file diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index e5e433f2..5205abfe 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -2,7 +2,15 @@ site_name: Telestion Documentation repo_url: https://github.com/wuespace/telestion +repo_name: wuespace/telestion edit_uri: edit/main/docs/docs/ +copyright: | +
+ © 2023 WüSpace e. V. +
+ Legal Notice + | Privacy Policy +
theme: name: material @@ -32,6 +40,8 @@ theme: - content.code.copy - content.code.annotate - content.action.edit + - content.action.view + - search.highlight extra_css: - _css/custom.css @@ -70,7 +80,10 @@ plugins: - awesome-pages - tags - search + - social - privacy + - git-revision-date-localized: + enable_creation_date: true extra: social: diff --git a/docs/requirements.txt b/docs/requirements.txt index f643267c..4e91a4b3 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,3 +2,4 @@ mkdocs==1.5.3 mkdocs-awesome-pages-plugin==2.9.2 mkdocs-material==9.5.2 mkdocs-material-extensions==1.3.1 +mkdocs-git-revision-date-localized-plugin==1.2.1