Go to file
Gerwin Klein 8095d010fa copy button: narrower CSS selector
Code highlight blocks have the form

<div class="higlight"><pre><code>...

(wrapped in another div that specifies the language). The copy-button
insertion relies on the presence of the <div>. The previous CSS selector
was too loose for that, it allowed the <pre> to be a direct descendant
of any <div> at any position, so it could be

<div> <p>..</p> etc <pre><code>

which does happen when the syntax highlighter does not recognise the
language that is passed in from the code block (```lang).

This means only code blocks with recognised language will have a copy
button.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2025-07-21 09:09:53 +01:00
.bundle Update Gem Files 2023-12-10 11:19:58 +01:00
.github/workflows github: bump runner OS version 2025-04-27 10:56:42 +10:00
.reuse Fix license lints 2025-07-16 09:57:23 +10:00
CMA34DBMC Remove broken ebay links 2025-07-16 09:57:31 +10:00
Hardware sel4test: make instructions linear 2025-07-17 18:06:03 +10:00
LICENSES Fix license lints 2025-07-16 09:57:23 +10:00
Tutorials Replace google repo installation link 2025-07-16 09:57:31 +10:00
_data rust: update links after tutorial repo move 2025-07-16 09:57:32 +10:00
_icons icons: add from website and use on landing 2025-07-16 09:49:48 +10:00
_includes seL4-deps: fix link to repo-cheatsheet 2025-07-21 09:22:34 +10:00
_layouts test status: bottom border for line breaks 2025-07-16 09:57:31 +10:00
_plugins remove unused dependencies 2025-07-15 18:56:53 +10:00
_processed preprocess microkit tutorial for Jekyll 2025-07-16 09:50:02 +10:00
assets copy button: narrower CSS selector 2025-07-21 09:09:53 +01:00
content_collections camkes releases: point to local manual 2025-07-16 09:57:32 +10:00
processes Layout for test status page 2025-07-16 09:57:28 +10:00
projects sel4test: make instructions linear 2025-07-17 18:06:03 +10:00
tools inject_backlink: make GNU sed compatible 2025-07-16 10:05:37 +10:00
.gitattributes Add .gitattributes to mark binary files 2025-07-16 09:57:32 +10:00
.gitignore Reshuffle rust tutorial build 2025-07-16 09:57:23 +10:00
.linkcheck-ignore.yml Update PR linkcheck ignore 2025-07-16 09:57:32 +10:00
.ruby-version redesign: update ruby version + Gemfile 2025-07-15 18:56:52 +10:00
.stylefilter trivial: ignore 3rd-party C file for style check 2020-11-30 09:25:37 +11:00
Gemfile Remove gfm admonitions plugin 2025-07-16 09:57:14 +10:00
Gemfile.lock Update dependencies 2025-07-16 09:57:32 +10:00
Makefile Makefile: explicit enumeration of tutorials 2025-07-16 13:11:47 +10:00
README.md README: mdbook installation now in Makefile 2025-07-16 09:57:30 +10:00
Resources.md Resource: delete text and redirect 2025-07-16 09:57:22 +10:00
_config.yml config: avoid rebuild for vendor and _repos 2025-07-16 09:57:25 +10:00
_preview.yml Makefile: add preview target 2025-07-16 09:57:09 +10:00
examples.html cards: less x padding on small screens 2025-07-16 09:57:30 +10:00
getting-started.md Avoid absolute paths 2025-07-16 09:57:28 +10:00
index.html cards: less x padding on small screens 2025-07-16 09:57:30 +10:00
package-lock.json Update dependencies 2025-07-16 09:57:32 +10:00
package.json Update dependencies 2025-07-16 09:57:32 +10:00
postcss.config.js redesign: add tailwind dependencies 2025-07-15 18:56:52 +10:00
releases.md Redirect release-process to releases page 2025-07-16 09:57:16 +10:00

README.md

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:

brew install ruby-build rbenv
# follow the instructions this command shows, and start a new shell afterwards
rbenv init
# in the docs directory (root of this repo):
rbenv install

On apt-based Linux distributions (e.g. Ubuntu, Debian):

apt install rbenv
# follow the instructions this command shows, and start a new shell afterwards
rbenv init
# in the docs directory (root of this repo):
rbenv install

After these, you should be able to forget about rbenv, the Makefile will now see the correct Ruby version.

Node/JS

The doc site needs node version 20 or later at build time. The default node and npm of recent distribution should work fine:

apt install node

or on Mac:

brew install node

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 cargo is available after the installation by trying

cargo --version

Python

The build is tested with Python 3.9. More recent versions are likely to work as well. After installing Python via e.g. homebrew or apt, you can install the Python build dependencies with:

pip3 install --user camkes-deps

Linters

If you are using the lint checks, they require tidy and liquid-linter. If you just want to build the site, you can skip these.

  • HTML output checking using tidy: make check_html_output
  • Liquid syntax checking using liquid-linter: make check_liquid_syntax

Build

To build and host locally:

make serve
#   Server address: http://127.0.0.1:4000/
#   Server running... press ctrl-c to stop.

Or using Docker (you need Docker installed and running for this):

make docker_serve

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 are make rules for this. You will need to call the make rule to generate the \_data/generated.yml also.

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 (using make serve) and a local server of Automated Accessibility Testing Tool (AATT).

make check_conformance will output a file named conformance_results.xml which is a junit test suite output file that will contain a test case for each generated html file of the site. A make rule make check_conformance_errors will 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.