Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix MkDocs build: cd into docs dir and output to parent [skip ci]

Murtaza Nasird382043107c9
diff --git a/.github/workflows/docs1.yml b/.github/workflows/docs1.yml
index b2c4a294..b6302c1e 100644
--- a/.github/workflows/docs1.yml
+++ b/.github/workflows/docs1.yml
@@ -38,11 +38,12 @@ jobs:
env:
CI: true # This enables git-revision-date plugin in CI
run: |
+ cd docs
# Update site_url for GitHub Pages if needed
if [ "${{ github.repository }}" != "murtaza-nasir/speakr" ]; then
- sed -i "s|site_url:.*|site_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}|" docs/mkdocs.yml
+ sed -i "s|site_url:.*|site_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}|" mkdocs.yml
fi
- mkdocs build --strict --config-file docs/mkdocs.yml --site-dir _site
+ mkdocs build --strict --site-dir ../_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index b3041139..a7238d98 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -4,7 +4,6 @@ site_url: https://speakr.yourdomain.com
repo_url: https://github.com/murtaza-nasir/speakr
repo_name: speakr
edit_uri: edit/main/docs/
-docs_dir: .
theme:
name: material