-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a372a6c
commit b76a819
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This workflow ensures the book can still be built. | ||
# CI checking of Python code in the book happens in the regular CI pytest. | ||
|
||
name: CI - Book building | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch, and if the book | ||
# has been modified. | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- docs/book/** | ||
pull_request: | ||
paths: | ||
- docs/book/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup mdBook | ||
uses: peaceiris/[email protected] | ||
with: | ||
mdbook-version: '0.4.37' | ||
|
||
- run: mdbook build docs/book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ language = "en" | |
multilingual = false | ||
src = "src" | ||
title = "The xDSL Book" | ||
|
||
[build] | ||
create-missing = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Starting an xDSL project | ||
|
||
TODO: installation steps, environment setup | ||
|
||
```py | ||
{{#include starting.py:test_op}} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from xdsl.irdl import IRDLOperation, irdl_op_definition | ||
|
||
# fmt: off | ||
|
||
# ANCHOR: test_op | ||
@irdl_op_definition | ||
class SomeTestOp(IRDLOperation): | ||
name = "some.test" | ||
# ANCHOR_END: test_op |