Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 38 additions & 34 deletions .github/workflows/deploy.yaml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build on each PR but deploy only when pushing to main

Original file line number Diff line number Diff line change
@@ -1,54 +1,58 @@
name: CI - Documentation Website

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
# pull_request:
pull_request:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:

runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- uses: actions/configure-pages@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install the project
run: uv sync --locked

- name: Install the project
run: uv sync --locked
- name: Build documentation
run: uv run zensical build --clean --strict

- name: Build documentation
run: uv run zensical build --clean
- uses: actions/upload-pages-artifact@v5
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
path: site

- uses: actions/upload-pages-artifact@v5
with:
path: site

- uses: actions/deploy-pages@v5
id: deployment
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/configure-pages@v6
- uses: actions/deploy-pages@v5
id: deployment
6 changes: 1 addition & 5 deletions docs/.nav.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
nav:
- index.md
- Getting Started: "https://docs.xdsl.dev/"
- Tutorial Notebooks: "https://docs.xdsl.dev/notebooks/"
- API Reference: "https://docs.xdsl.dev/reference/"
- User Guide: "https://docs.xdsl.dev/guides/mlir_interoperation/"
- news/index.md
- Blog: news/index.md
- events
- about
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ custom IR abstractions. Always optimize at the optimal abstraction level by
lowering programs through multiple levels of IRs. Connect with the LLVM/MLIR
ecosystem while benefiting from Python's productivity.

[Explore the documentation](https://docs.xdsl.dev/){ .md-button .md-button--primary }

<div class="grid cards" markdown>

- :material-clock-fast:{ .lg .middle } :material-language-python:{. lg .middle } __Rapid development in Pure Python__
Expand Down
2 changes: 1 addition & 1 deletion docs/news/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ hide:
- navigation
---

# News
# Blog
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ plugins:

extra:
social:
- icon: material/book-open-variant
link: https://docs.xdsl.dev/
name: xDSL documentation
- icon: material/rss
link: /feed.xml
name: Subscribe to our RSS Feed
Expand Down
Loading