This tutorial is built using the Softcover book generation toolchain.
The source is in source/ and consists of many little numbered files that are presented in the numbered sequence during class using a "vim slideshow". There is also another slideshow which shows only the CFEngine examples (I use this to review the examples).
source/build_softcover.sh builds the Softcover Markdown files in chapters/ from the files in source/ and thenb uses the Softcover gem to convert Softcover Markdown to HTML.
So the overall flow is:
source/ --> chapters/ --> html/
There are four ways to access the materials:
-
View the HTML on www.cfenginetutorial.org
-
Run the l.sh script in the source directory: this will show all the source files for the book, in sequence, with color highlighting and indentation to indicate chapter/section/subsection etc.
-
Run install_vim_slideshow_bindings.sh and then
run_slides.sh-- this is what I use when teaching.
Key bindings for the vim slideshow:
SPACEorF7to move to the next slide,BACKSPACEto go to the previous slide,ffto feed the file to cf-agent,vvto do so in verbose mode,rrto run shell scripts, etc. (see install_vim_slideshow_bindings.sh for detail).
- Build the book HTML using the build_softcover.sh script, then look at html/cf3.html. See also the GitHub Actions build-and-deploy workflow which automates the build and deploy process - it lists out dependencies for the build script.
Email @atsaloli if you have any questions or to say hello.