== The SLE BCI documentation
Welcome to the documentation of the SLE Base Container Images!
=== Local Setup
The documentation relies on both https://gohugo.io/[Hugo], the static site generator, and nodejs which is used in the theme.
When you checkout the codebase you need to be sure to get the submodules. The theme is setup as a submodule. If you checked out the code without updating the submodules you can run the following command to get the theme as a submodule:
Once the theme is available you will need to install the JavaScript dependencies and build them. This can be done with the following commands:
Additionally, you have to install
https://asciidoctor.org/[asciidoctor] for processing of the asciidoc
files. Please refer to the
https://asciidoctor.org/#installation[upstream installation
instructions] how to install asciidoctor either via your
distribution's package manager or via gem
.
From here you can run Hugo as a server to see the served documentation locally. Hugo can be run from the CLI via:
=== Writing documentation
The documentation is written in the https://asciidoc.org/[asciidoc] format to simplify the integration into the SLE documentation. Asciidoc is another markup format very similar to markdown and can be used with Hugo without any larger adjustments. Most Hugo shortcodes will "just work", although you have to adjust the shortcode a bit as the upstream documentation only shows examples in markdown.
relref
shortcode is used as follows in markdown:
[source,markdown]