No description
  • Shell 87.4%
  • Roff 12.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Clement Verna 6809a30d07
Merge pull request #15 from travier/rework-arg-env
Use ARG instead of ENV for temporary variables
2023-03-29 18:06:37 +02:00
modules/ROOT Use ARG instead of ENV for temporary variables 2023-03-01 15:02:23 +01:00
.gitignore Add build output to .gitignore 2021-09-27 21:52:06 +03:00
antora.yml Sync with changes from fedora-docs-template 2023-02-16 17:05:29 +01:00
CODE-OF-CONDUCT.md Add Code of Conduct 2020-02-10 08:47:02 -05:00
docsbuilder.sh Sync with changes from fedora-docs-template 2023-02-16 17:05:29 +01:00
LICENSE Initial commit 2019-03-05 11:02:42 -05:00
README.md Initialise repository. 2019-03-05 18:29:20 +00:00
SECURITY.md Add Security Policy 2020-05-09 15:12:36 -04:00
site.yml Sync with changes from fedora-docs-template 2023-02-16 17:05:29 +01:00

Fedora Docs Template

This repository contains documentation around container tooling.

Structure

|-- README.md
|-- antora.yml ....................... 1.
|-- build.sh ......................... 2.
|-- preview.sh ....................... 3.
|-- site.yml ......................... 4.
`-- modules
    `-- ROOT ......................... 5.
        |-- assets
        |   `-- images ............... 6.
        |       `-- *
        |-- nav.adoc ................. 7.
        `-- pages .................... 8.
            |-- *
  1. Metadata definition.
  2. A script that does a local build. Uses docker.
  3. A script that shows a preview of the site in a web browser by running a local web server. Uses docker.
  4. A definition file for the build script.
  5. A "root module of this documentation component". Please read below for an explanation.
  6. Images to be used on any page.
  7. Menu definition. Also defines the hierarchy of all the pages.
  8. Pages with the actual content. They can be also organised into subdirectories if desired.

Components and Modules

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. In the Fedora Docs, we use separate components for user documentation, the Fedora Poject, Fedora council, Mindshare, FESCO, but also subprojects such as CommOps or Modulartity.
  • 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). If you don't want to use multiple modules, only use "ROOT". But to define more modules, simply duplicate the "ROOT" directory and name it anything you want. You can store modules in one or more git repositories.

Local preview

This repo includes scripts to build and preview the contents of this repository.

NOTE: Please note that if you reference pages from other repositories, such links will be broken in this local preview as it only builds this repository. If you want to rebuild the whole Fedora Docs site, please see the Fedora Docs build repository for instructions.

Both scripts use docker, so please make sure you have it installed on your system.

To build and preview the site, run:

$ ./build.sh && ./preview.sh

The result will be available at http://localhost:8080