This repo contains a template that should be used when creating lab documentation for F5's Agility Labs.
- Download or
git clonethe f5-agility-lab-template - Download and install Docker CE (https://docs.docker.com/engine/installation/)
- Build the sample docs
./containthedocs-build.sh. The first time you build a container (~1G in size) will be downloaded from Docker Hub. - Open the
docs/_build/html/index.htmlfile on you system in a web browser
To use this template:
- Copy contents of this repo to a new directory
cp -Rf . /path/to/your/docs cd /path/to/your/docs- Edit
docs/conf.py - Modify the following lines:
classname = "Your Class Name"github_repo = "https://github.com/f5devcentral/your-class-repo"
- Build docs
./containthedocs-build.sh(see Build Scripts below) - Open the
docs/_build/html/index.htmlfile on you system in a web browser - Edit the
*.rstfiles as needed for your class - Rebuild docs as needed using
./containthedocs-build.sh
To convert a .docx file from Microsoft Work to reStructuredText:
- Copy your
.docxfile into the f5-agility-lab-template directory - Run
./containthedocs-convert.sh <filename.docx> - Your converted file will be named
filename.rst - Images in your document will be extracted and placed in the
mediadirectory
Warning
While the document has been converted to rST format you will still need to refactor the rST to use the structure implemented in this template.
The repo includes build scripts for common operations:
containthedocs-bash.sh: Run to container with a BASH promptcontainthedocs-build.sh: Build HTML docs usingmake -C docs htmltodocs/_build/htmlcontainthedocs-clean.sh: Clean the build directory usingmake -C docs cleancontainthedocs-cleanbuild.sh: Clean the build directory and build HTML docs usingmake -C docs clean htmlcontainthedocs-convert.sh: Convert a Word.docxfile to rST