Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 2.12 KB

README.md

File metadata and controls

40 lines (27 loc) · 2.12 KB

CentOS Docs website builder

This repository hosts the site builder for https://docs.centos.org/. It pulls content from other repositories defined in the site.yml Antora playbook, builds them together using a structure defined in this repository, and applies a UI bundle to them, creating the whole site. Submit PRs and issues to this repository for publishing fixes. The other repositories are:

Adding new content

To add a new content repository, you must:

  1. Add the repository to the site.yml file. Use the repositories already defined for guidance.
  2. Add a link to the front page of the new repository into pages/homepage/modules/ROOT/pages/index.adoc. Note that you will need to do this in raw HTML, the page uses a passthrough block. Again, use the other links already on the page for guidance.
  3. Build this repository and publish - see below.

Local preview

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.

Installing docker on Fedora

$ sudo dnf install docker
$ sudo systemctl start docker && sudo systemctl enable docker

How to publish

  1. Build the site using the build.sh script.
  2. Open the CentOS_Docs_Web and switch to branch prod.
  3. Copy the public/ folder of this repository into the en-US folder of the docs-web repository.
  4. Ask someone to pull from the repository and republish. (In the future this will happen automatically, this is only a temporary workaround.)