diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/zensical-deploy.yml similarity index 81% rename from .github/workflows/mkdocs-deploy.yml rename to .github/workflows/zensical-deploy.yml index a7d3890..05b3fca 100644 --- a/.github/workflows/mkdocs-deploy.yml +++ b/.github/workflows/zensical-deploy.yml @@ -1,10 +1,10 @@ -name: Deploy mkdocs-material to GitHub Pages +name: Deploy zensical site to GitHub Pages on: # Runs on pushes targeting the default branch push: branches: - - "main" + - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -18,7 +18,7 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "pages" + group: pages cancel-in-progress: false jobs: @@ -37,18 +37,18 @@ jobs: - uses: actions/setup-python@v6 with: - python-version: '3.11' - cache: 'pip' # caching pip dependencies + python-version: "3.14" + cache: pip # caching pip dependencies - run: pip install -r requirements.txt - - run: mkdocs build --verbose --site-dir public + - run: zensical build --clean - name: Upload artifact uses: actions/upload-pages-artifact@v4 with: - # Upload 'public' directory - path: 'public' + # Upload 'site' directory + path: site - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/mkdocs-validate.yml b/.github/workflows/zensical-validate.yml similarity index 62% rename from .github/workflows/mkdocs-validate.yml rename to .github/workflows/zensical-validate.yml index 8d54777..57804ce 100644 --- a/.github/workflows/mkdocs-validate.yml +++ b/.github/workflows/zensical-validate.yml @@ -1,4 +1,4 @@ -name: Validate mkdocs upon PR +name: Validate zensical site upon PR on: # Runs on PRs targeting the default branch @@ -18,9 +18,15 @@ jobs: - uses: actions/setup-python@v6 with: - python-version: '3.11' - cache: 'pip' # caching pip dependencies + python-version: "3.14" + cache: pip # caching pip dependencies - run: pip install -r requirements.txt - - run: mkdocs build --verbose + - run: zensical build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + # Upload 'site' directory + path: site diff --git a/.gitignore b/.gitignore index bc9a7fd..e9f4284 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .ignore .cache .venv +site/ diff --git a/requirements.txt b/requirements.txt index e319341..9b319f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1 @@ -mkdocs-material[imaging]==9.7.1 -mkdocs-git-revision-date-localized-plugin==1.5.1 -mkdocs-git-committers-plugin-2==2.5.0 -mkdocs-glightbox==0.5.2 +zensical==0.0.21