From ad4433980c425fe0693a70cd5d2f137ebde3b1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Sun, 17 Mar 2024 20:14:13 +0100 Subject: [PATCH] Move mkdocs-site to docs/ --- .github/workflows/data-pipeline.yml | 6 +++--- .github/workflows/website.yml | 4 ++-- {mkdocs-site => docs}/.gitignore | 0 {mkdocs-site => docs}/docs/index.md | 0 {mkdocs-site => docs}/mkdocs.yml | 0 src/generate-attribution.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename {mkdocs-site => docs}/.gitignore (100%) rename {mkdocs-site => docs}/docs/index.md (100%) rename {mkdocs-site => docs}/mkdocs.yml (100%) diff --git a/.github/workflows/data-pipeline.yml b/.github/workflows/data-pipeline.yml index eac0aacd..55e9f423 100644 --- a/.github/workflows/data-pipeline.yml +++ b/.github/workflows/data-pipeline.yml @@ -38,7 +38,7 @@ jobs: run: | sudo mkdir -p out sudo mkdir -p downloads - sudo chown 1000:1000 -R out/ downloads/ mkdocs-site/ + sudo chown 1000:1000 -R out/ downloads/ docs/ sudo chmod 777 . docker run -v $PWD:/transitous -w /transitous transitous ci/fetch-feeds.py timer @@ -59,8 +59,8 @@ jobs: uses: actions/cache/save@v4 with: path: | - mkdocs-site/docs/licenses.md - key: licenses-${{ hashFiles('mkdocs-site/docs/licenses.md') }} + docs/docs/licenses.md + key: licenses-${{ hashFiles('docs/docs/licenses.md') }} - name: Import Feeds into motis run: | diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 27bae12d..444f3c8c 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -58,13 +58,13 @@ jobs: uses: actions/cache/restore@v4 with: path: | - mkdocs-site/docs/licenses.md + docs/docs/licenses.md key: licenses- restore-keys: | licenses- - run: pip install mkdocs - - run: mkdocs build --site-dir ../website/static/doc/ -f mkdocs-site/mkdocs.yml + - run: mkdocs build --site-dir ../website/static/doc/ -f docs/mkdocs.yml - name: Build with Hugo env: diff --git a/mkdocs-site/.gitignore b/docs/.gitignore similarity index 100% rename from mkdocs-site/.gitignore rename to docs/.gitignore diff --git a/mkdocs-site/docs/index.md b/docs/docs/index.md similarity index 100% rename from mkdocs-site/docs/index.md rename to docs/docs/index.md diff --git a/mkdocs-site/mkdocs.yml b/docs/mkdocs.yml similarity index 100% rename from mkdocs-site/mkdocs.yml rename to docs/mkdocs.yml diff --git a/src/generate-attribution.py b/src/generate-attribution.py index 089677cd..a111298e 100755 --- a/src/generate-attribution.py +++ b/src/generate-attribution.py @@ -86,5 +86,5 @@ SPDX-License-Identifier: CC0-1.0 --> """ - with open("mkdocs-site/docs/licenses.md", "w") as outfile: + with open("docs/docs/licenses.md", "w") as outfile: outfile.write(markdown)