This repository contains the sources that make up the CentOS Installation Guide. Please report Issues and submit Pull Requests for Content Fixes here. For other issues or fixes, use:
- CentOS_Docs - the builder repository for the entire website, including for example structure configuration
- CentOS_Docs_Web_UI - the website's user interface (e.g. CSS styling) sources
The documentation is broken up into two top level directories. The legacy_docs
directory contains the debranded single-page html documentation. As the
directory name implies, the contents of this directory are to be considered
legacy and updates will likely not happen.
The modules
directory contains ASCIIDoc sources which are actively maintained
and which can be used to build the CentOS 7 Installation Guide using the build.sh
and preview.sh
scripts, as described below. The build script used a Docker container
to run the Antora publishing system and compose a static website out of the ASCIIDoc
sources, and the preview script runs another container with nginx
that allows you
to preview the site locally. Details are described further in this document.
|-- README.md
|-- antora.yml ....................... 1.
|-- build.sh ......................... 2.
|-- preview.sh ....................... 3.
|-- site.yml ......................... 4.
`-- modules
`-- ROOT ......................... 5.
|-- assets
| `-- images ............... 6.
| `-- pizza.png
|-- nav.adoc ................. 7.
`-- pages .................... 8.
|-- architecture.adoc
|-- community.adoc
|-- faq.adoc
|-- index.adoc
|-- pizza-dough.adoc
`-- pizza-owen.adoc
- Metadata definition.
- A script that does a local build. Uses docker.
- A script that shows a preview of the site in a web browser by running a local web server. Uses docker.
- A definition file for the build script.
- A "root module of this documentation component". Please read below for an explanation.
- Images to be used on any page.
- Menu definition. Also defines the hierarchy of all the pages.
- Pages with the actual content. They can be also organised into subdirectories if desired.
Antora introduces two new terms:
- Component — Simply put, a component is a part of the documentation website with its own menu. Components can also be versioned.
- Module — A component can be broken down into multiple modules. Modules still share a single menu on the site, but their sources can be stored in different git repositories, even owned by different groups. The default module is called
ROOT
(that's what is in this example; the guide actually usesinstall-guide
). If you don't want to use multiple modules, you can useROOT
. But to define more modules, simply duplicate theROOT
directory and name it anything you want. You can store modules in one or more git repositories.
All of this is written in AsciiDoc. It's a simple mostly-plain-text markup language. You may want to look at:
This repo includes scripts to build and preview the contents of this repository. Both scripts use docker, so please make sure you have it installed on your system. Please see below for instructions.
To build and preview the site, run:
$ ./build.sh && ./preview.sh
The result will be available at http://localhost:8080.
$ sudo dnf install docker
$ sudo systemctl start docker && sudo systemctl enable docker