This project has been moved to: https://forge.fedoraproject.org/cle/rawhide-gating-docs
This repository contains the sources for the Fedora Rawhide Gating documentation.
|-- 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
Antora introduces two new terms:
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 work on Fedora (using Podman) and macOS (using Docker).
To build and preview the site, run:
$ ./build.sh && ./preview.sh
The result will be available at http://localhost:8080
Fedora Workstation doesn't come with Podman preinstalled by default — so you might need to install it using the following command:
$ sudo dnf install podman
You can also build the whole Fedora Docs site locally to see your changes in context.
This is especially useful for checking if your xref links work properly.
To do this, you need to clone the main Fedora Docs build repository, modify the site.yml file to reference a repo with your changes, and build it.
Steps:
Clone the main repository and change into it:
$ git clone https://pagure.io/fedora-docs/docs-fp-o.git $ cd docs-fp-o
Find a reference to the repository you're changing in the site.yml file, and change it so it points to your change.
So for example, if I made a modification to the Modularity docs, I would find…:
...
- url: https://pagure.io/fedora-docs/modularity.git
branches:
- master
...
…and replace it with a pointer to my fork:
...
- url: https://pagure.io/forks/asamalik/fedora-docs/modularity.git
branches:
- master
...
I could also point to a local repository, using HEAD as a branch to preview what has changed without needing to commit.
Note: I would need to move the repository beneath the docs-fp-o directory, because the builder won’t see anything above it.
So I would need to create a repositories directory in docs-fp-o and copy my repository into it.
...
- url: ./repositories/modularity
branches:
- HEAD
...
To build the whole site, I would run the following in the docs-fp-o directory.
$ ./build.sh && ./preview.sh