File tree 7 files changed +89
-0
lines changed
7 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 46
46
47
47
- name : Execute RMC regression
48
48
run : ./scripts/rmc-regression.sh
49
+
50
+ # On one OS only, build the documentation, too.
51
+ - name : Build Documentation
52
+ if : ${{ matrix.os == 'ubuntu-20.04' }}
53
+ run : ./rmc-docs/build-docs.sh
54
+
55
+ # When we're pushed to main branch, only then actually publish the docs.
56
+ - name : Publish Documentation
57
+ if : ${{ matrix.os == 'ubuntu-20.04' && github.event_name == 'push' && startsWith('refs/heads/main', github.ref) }}
58
+
59
+ with :
60
+ branch : gh-pages
61
+ folder : rmc-docs/book/
Original file line number Diff line number Diff line change @@ -82,3 +82,5 @@ src/test/rustdoc-gui/src/**.lock
82
82
/src /test /dashboard
83
83
* Cargo.lock
84
84
src /test /rmc-dependency-test /diamond-dependency /build
85
+ /rmc-docs /book
86
+ /rmc-docs /mdbook *
Original file line number Diff line number Diff line change
1
+ ## RMC documentation development
2
+
3
+ A good trick when developing RMC on a remote machine is to SSH forward to test documentation changes.
4
+
5
+ ```
6
+ ssh -t -L 3000:127.0.0.1:3000 rmc-host 'cd rmc/rmc-docs/ && ./mdbook serve'
7
+ ```
8
+
9
+ This command will connect to ` rmc-host ` where it assumes RMC is checked out in ` rmc/ ` and the documentation has been built once successfully.
10
+ It will automatically detect changes to the docs and rebuild, allowing you to quickly refresh in your local browser when you visit: ` http://127.0.0.1:3000/ `
Original file line number Diff line number Diff line change
1
+ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
3
+ [book ]
4
+ title = " The Rust Model Checker"
5
+ description = " Documentation for the Rust Model Checker (RMC)"
6
+ authors = [" RMC Developers" ]
7
+ src = " src"
8
+ language = " en"
9
+ multilingual = false
10
+
11
+ [output .html ]
12
+ site-url = " /rmc/"
13
+ git-repository-url = " https://github.com/model-checking/rmc"
14
+ # If we get a stable default branch, we can use this feature, but HEAD doesn't work
15
+ # edit-url-template = "https://github.com/model-checking/rmc/edit/HEAD/rmc-docs/{path}"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
4
+
5
+ set -eu
6
+
7
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
8
+ cd $SCRIPT_DIR
9
+
10
+ # Download mdbook release (vs spending time building it via cargo install)
11
+ FILE=" mdbook-v0.4.12-x86_64-unknown-linux-gnu.tar.gz"
12
+ URL=" https://github.com/rust-lang/mdBook/releases/download/v0.4.12/$FILE "
13
+ EXPECTED_HASH=" 2a0953c50d8156e84f193f15a506ef0adbac66f1942b794de5210ca9ca73dd33"
14
+ if [ ! -x mdbook ]; then
15
+ curl -sSL -o " $FILE " " $URL "
16
+ echo " $EXPECTED_HASH $FILE " | sha256sum -c -
17
+ tar zxf $FILE
18
+ fi
19
+
20
+ # Build the book into ./book/
21
+ mkdir -p book
22
+ ./mdbook build
23
+ touch book/.nojekyll
24
+
25
+ # TODO: Test all the code examples from our documentation
26
+ # TODO: Build the dashboard and publish into our documentation
27
+
28
+ echo " Finished documentation build successfully."
Original file line number Diff line number Diff line change
1
+ # The Rust Model Checker
2
+
3
+ - [ Getting started with RMC] ( ./getting-started.md )
4
+ - [ Installation] ( )
5
+ - [ Comparison with other tools] ( )
6
+ - [ RMC on a single file] ( )
7
+ - [ RMC on a crate] ( )
8
+ - [ Debugging failures] ( )
9
+
10
+ - [ RMC tutorial] ( )
11
+
12
+ - [ RMC developer documentation] ( )
Original file line number Diff line number Diff line change
1
+ # Getting started with RMC
2
+
3
+ Hello, World!
4
+
5
+ ``` rust
6
+ fn main () {
7
+ assert! (1 == 1 );
8
+ }
9
+ ```
You can’t perform that action at this time.
0 commit comments