-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert from AsciiDoctor to Material for MkDocs (#80)
- Loading branch information
Showing
45 changed files
with
5,457 additions
and
1,896 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
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,29 @@ | ||
name: Test tutorial build | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install Material for MkDocs | ||
run: pip install mkdocs-material | ||
|
||
- name: Clean the build directory | ||
run: make clean | ||
|
||
- name: Check that the tutorial builds | ||
run: make |
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,6 @@ | ||
build/* | ||
/.vscode/ | ||
check | ||
check | ||
**.swp | ||
docs/exercises | ||
docs/solutions |
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
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,83 @@ | ||
# Welcome to CN | ||
|
||
CN is an extension of the C programming language for testing and verifying the | ||
correctness of C code, especially on low-level systems code. Compared to | ||
standard C, CN checks not only that expressions and statements follow the | ||
correct typing discipline for C-types, but also that the C code executes | ||
_safely_ — does not raise C undefined behaviour — and _correctly_ — satisfying | ||
to strong, user-defined specifications. | ||
|
||
CN provides utilities for verifying specifications at compile time as well as | ||
automatically generating unit and integration tests to test specifications at | ||
runtime. | ||
|
||
This documentation is a work in progress -- your suggestions are greatly | ||
appreciated! | ||
|
||
<div class="grid cards" markdown> | ||
|
||
- :material-clock-fast:{ .lg .middle } __Set up in 5 minutes__ | ||
|
||
--- | ||
|
||
Build and install CN and get up and running in minutes | ||
|
||
[:octicons-arrow-right-24: Installing CN](getting-started/installation.md) | ||
|
||
- :fontawesome-brands-markdown:{ .lg .middle } __Your first spec__ | ||
|
||
--- | ||
|
||
Check out the Hello World tutorial to write, test, and verify your first | ||
spec | ||
|
||
[:octicons-arrow-right-24: Hello World](getting-started/hello-world.md) | ||
|
||
- :material-format-font:{ .lg .middle } __Tutorials__ | ||
|
||
--- | ||
|
||
Find tutorials covering common tasks and introducing CN features | ||
|
||
[:octicons-arrow-right-24: Tutorials](getting-started/tutorials/README.md) | ||
|
||
- :material-scale-balance:{ .lg .middle } __Language reference__ | ||
|
||
--- | ||
|
||
Quick reference for CN specification syntax | ||
|
||
[:octicons-arrow-right-24: Language reference](reference/README.md) | ||
|
||
</div> | ||
|
||
## Origins | ||
CN was first described in [CN: Verifying Systems C Code with Separation-Logic Refinement Types](https://dl.acm.org/doi/10.1145/3571194) by Christopher Pulte, Dhruv C. Makwana, Thomas Sewell, Kayvan Memarian, Peter Sewell, and Neel Krishnaswami. | ||
To accurately handle the complex semantics of C, CN builds on the [Cerberus semantics for C](https://github.com/rems-project/cerberus/). | ||
Some of the examples in this tutorial are adapted from Arthur Charguéraud’s excellent | ||
[Separation Logic Foundations](https://softwarefoundations.cis.upenn.edu) textbook, and one of the case studies is based on an | ||
extended exercise due to Bryan Parno. | ||
|
||
## Acknowledgment of Support and Disclaimer | ||
This material is based upon work supported by the Air Force Research Laboratory (AFRL) and Defense Advanced Research Projects Agencies (DARPA) under Contract No. FA8750-24-C-B044, a European Research Council (ERC) Advanced Grant “ELVER” under the European Union’s Horizon 2020 research and innovation programme (grant agreement no. 789108), and additional funding from Google. The opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the Air Force Research Laboratory (AFRL). | ||
|
||
## Building these docs | ||
|
||
These docs are built with [Material for | ||
MkDocs](https://squidfunk.github.io/mkdocs-material/). To build and serve them | ||
locally on http://localhost:8000: | ||
|
||
```bash | ||
# Install Material for MkDocs | ||
pip install mkdocs-material | ||
|
||
# In the cn-tutorial root directory, run | ||
mkdocs serve | ||
``` | ||
|
||
## Docs layout | ||
|
||
mkdocs.yml # The configuration file. | ||
docs/ | ||
README.md # The documentation homepage. | ||
... # Other markdown pages, images and other files. |
Oops, something went wrong.