diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d791d54..986b55c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -279,7 +279,12 @@ jobs: needs: [release] steps: - uses: actions/checkout@v6 - - name: Build and publish docs + - name: Build docs run: | pip install -r requirements.txt - make docs_build && make docs_deploy + make docs_build + - name: Deploy docs + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site diff --git a/Makefile b/Makefile index 5750d23..368ef26 100644 --- a/Makefile +++ b/Makefile @@ -30,15 +30,11 @@ bench-report: .PHONY: docs_build docs_build: - mkdocs build + zensical build .PHONY: docs_serve docs_serve: - mkdocs serve --dev-addr localhost:8080 - -.PHONY: docs_deploy -docs_deploy: - mkdocs gh-deploy --force + zensical serve --dev-addr localhost:8080 .PHONY: all all: format build lint test \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index c2d1a18..f6b2131 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,11 +3,16 @@ site_description: Python base64 powered by Rust site_url: https://aminalaee.github.io/base64-utils theme: - name: "material" + name: "zensical" palette: - primary: white - features: - - content.code.copy + - scheme: default + toggle: + icon: lucide/sun + name: Switch to dark mode + - scheme: slate + toggle: + icon: lucide/moon + name: Switch to light mode repo_name: aminalaee/base64-utils repo_url: https://github.com/aminalaee/base64-utils diff --git a/requirements.txt b/requirements.txt index f622d02..782911a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ -mkdocs==1.6.1 -mkdocs-material==9.7.6 +zensical~=0.0.42 mypy==1.19.1 pytest==9.0.1 pytest-codspeed==4.5.0