Running a local copy of the docs.rockylinux.org website for web development and/or content authors¶
This document walks through how to recreate and run a local copy of the entire docs.rockylinux.org website on your local machine. It is a work-in-progress.
Running a local copy of the documentation website might be useful in the following scenarios:
You are interested in learning about and contributing to the web development aspects of the docs.rockylinux.org website
You are an author and you'd like to see how your documents will render/look on the docs website before contributing them
You are a web developer looking to contribute to or help maintain the docs.rockylinux.org website
Change the current working directory on your local system to a folder where you intend to do your writing. We'll refer to this directory as
$ROCKYDOCS in the rest of this guide. For our demo here, $ROCKYDOCS points to ~/projects/rockydocs on our demo system.
Create $ROCKYDOCS if it doesn't already exist and then type:
cd $ROCKYDOCS
Make sure you have git installed (dnf -y install git). While in $ROCKYDOCS use git to clone the official Rocky Documentation content repo. Type:
Alternatively if you prefer and if you have docker-compose installed, you can create compose file named docker-compose.yml with the following contents: