From a7874853e170166f6f4d9071fd9845d4c2c4f78d Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Thu, 7 Oct 2021 19:10:46 +0200 Subject: [PATCH] Update mkdocs.yml --- .github/workflows/mkdocs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index d3ea4ce..27bbfaf 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -29,16 +29,17 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - - name: Go to mkdocs folder - run: cd mkdocs - name: Install dependencies + working-directory: ./mkdocs run: | python -m pip install --upgrade pip setuptools wheel python -m pip install -r requirements.txt - name: Build docs + working-directory: ./mkdocs run: | mkdocs build - name: Validate generated HTML files + working-directory: ./mkdocs run: | docker run -v $(pwd):/test --rm wjdp/htmltest --conf .htmltest.yml # On push to master or release branch, deploy docs @@ -59,7 +60,7 @@ jobs: echo "${CUSTOM_DOMAIN}" > "${GITHUB_WORKSPACE}/mkdocs/docs/CNAME" echo -e "User-agent: *\nDisallow: /v*.*/\nSitemap: https://${CUSTOM_DOMAIN}/sitemap.xml" > "${GITHUB_WORKSPACE}/docs/robots.txt" git fetch origin gh-pages --verbose - mike deploy . -t "Cloud (Latest)" --config-file "${GITHUB_WORKSPACE}/mkdocs.yml" --push --rebase + mike deploy . -t "Cloud (Latest)" --config-file "${GITHUB_WORKSPACE}/mkdocs/mkdocs.yml" --push --rebase env: CUSTOM_DOMAIN: docs.codacy.com