github: bump GH action versions
Node 20 is deprecated. Bump GitHub action dependencies to versions that run on more recent node.
Signed-off-by: Gerwin Klein gerwin.klein@proofcraft.systems
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
seL4 Documentation site
These are the sources for the seL4 Documentation site located at https://docs.sel4.systems. It is for cooperatively developing and sharing documentation on seL4.
See CONTRIBUTING.md for information on how to contribute. TL;DR click edit on the page in GitHub, make your changes and then submit a pull request.
Ask on the mailing list or open an issue if something doesn’t make sense.
We’ve tried to make sure the hosted site is WCAG 2.0 AA compliant. Please let us know if we have missed something.
Building the site
Install
Ruby
We recommend using rbenv to install the correct Ruby version.
On Mac, using homebrew:
On apt-based Linux distributions (e.g. Ubuntu, Debian):
After these, you should be able to forget about
rbenv, theMakefilewill now see the correct Ruby version.Node/JS
The doc site needs
nodeversion 20 or later at build time. The defaultnodeandnpmof recent distribution should work fine:or on Mac:
The Makefile does the rest of the JS dependency installation.
Rust
For building the Rust tutorials we need
cargo. The easiest way to get Rust installed is via https://rustup.rs. Follow the instructions there. A default install for your platform will work for the doc site.You can test if
cargois available after the installation by tryingPython
The build is tested with Python 3.9. More recent versions are likely to work as well. After installing Python via e.g.
homebreworapt, you can install the Python build dependencies with:Linters
If you are using the lint checks, they require
tidyandliquid-linter. If you just want to build the site, you can skip these.tidy:make check_html_outputliquid-linter:make check_liquid_syntaxBuild
To build and host locally:
Or using Docker (you need Docker installed and running for this):
Makefile and JEKYLL_ENV=production version
Jekyll environment flags can be used to provide some content only in a production environment.
One way we use this is to show data generated by rules in the Makefile and saved in
\_data/generated.yml. If you want to serve the site locally in production mode there aremakerules for this. You will need to call the make rule to generate the\_data/generated.ymlalso.How the site is set up
Our documentation is contained in a collection of Markdown files stored in this repository. We use Jekyll to generate a static html website that is then hosted on GitHub pages. Our continuous integration is configured to regenerate and update the live site whenever a pull request is merged. There is a timestamp in the source that indicates when it was last generated. Additionally, each page has a timestamp and revision hash from when it was last updated located in the footer based on the git history.
The markdown pages are rendered using Kramdown, a ruby-based markdown converter that is configured to interpret the markdown files (
.md) as GitHub flavoured markdown.Compliance, style and formatting checks
WCAG 2.0 AA conformance
There is a make rule to check conformance to all testable statements from the guidelines.
make check_conformance. It requires the site to be hosted locally (usingmake serve) and a local server of Automated Accessibility Testing Tool (AATT).make check_conformancewill output a file namedconformance_results.xmlwhich is a junit test suite output file that will contain a test case for each generated html file of the site. A make rulemake check_conformance_errorswill grep for failing test cases and output the html page name. The idea here is to detect if any pages are failing and then manually using the AATT tool’s web interface to check what parts of the page violate the guidelines.