diff --git a/.domains b/.domains new file mode 100644 index 0000000..861c34f --- /dev/null +++ b/.domains @@ -0,0 +1 @@ +auxdocs.pyrox.dev diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..2e9fabf --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,27 @@ +on: + push: + branches: + - main + +jobs: + build: + runs-on: default + steps: + - name: Checkout Repo + uses: https://code.forgejo.org/actions/checkout@v4 + + - name: Install Go + uses: https://code.forgejo.org/actions/setup-go@v4 + with: + go-version: "1.21.6" + + - name: Run Hugo + run: | + nix develop + nix build .#md-manual --out-link docs + mkdocs build -d ./public + + - name: Deploy + uses: https://git.pyrox.dev/actions/pages-action@v2 + with: + folder: ./public diff --git a/.gitignore b/.gitignore index 7bec352..1f68578 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ docs/nixpkgs-doc docs .cache/plugin/social mkdocs-hooks/__pycache__ +public diff --git a/mkdocs.yml b/mkdocs.yml index aa51cd9..dc25686 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,6 +2,7 @@ site_name: Aux Docs site_url: https://auxdocs.pyrox.dev/ repo_url: https://git.pyrox.dev/pyrox/aux-docs repo_name: pyrox/aux-docs +site_dir: public theme: name: material favicon: assets/aux-logo.svg