Skip to content

wethinkcode/curriculum-template

 
 

Repository files navigation

Prerequisites

In order to use the WTC Curriculum Toolchain, you need to install the following:

Curriculum Author Guide

All content is authored using AsciiDoc and published using Antora.

In Antora, a component consists of one or more modules. Each module consists of pages, images, examples, etc.

Installing dependencies

Run make install to install supported AsciiDoc extensions.

Build and preview the content

Run make preview and open http://localhost:8051/ to view the component on your local machine.

This first runs make clean, then make build then make preview. The clean target deletes the build/site and build/cache directories for a clean build. The build target builds a local copy of the component. The output is placed in the build/site directory. The preview target serves build/site on http://localhost:8051/

Watching for file changes

In a terminal, run make preview to start up the local HTTP server for the component. Then, in another terminal, run make watch. This will watch for local file changes in the content directories and rebuild the local site. Refresh the page in the browser to see the changes.

Updating the UI

Run make ui to pull the latest UI package.

Updating the tools

Run make tools to pull the latest changes from the curriculum-tools repository.

If you come across any merge conflicts, resolve them in VS Code and commit when you are done.

Content Tips

Font-Awesome

Support for inline icons using Font-Awesome is enabled. See https://asciidoctor.org/docs/user-manual/#inline-icons

Diagram Markup

For example:

[plantuml]
----
alice -> bob
bob -> alice
----

Release Manager Guide

Installing dependencies

Run make install to install supported AsciiDoc extensions.

Creating the release outline

In the release-outline folder, create two documents using the release number:

nav-0.adoc
release-0.txt

In the release file, list the paths to the pages or modules you wish to release from the modules directory under the content directory (make sure there is an empty line at the end of the file):

ROOT

In the nav.adoc, create the full navigation as you would like it to appear for that release. If the release only includes the start page, nav.adoc can be empty.

Releasing content

Run make release with the release number to clean the release folder and copy over the appropriate navigation and content (e.g. make release 5).

Build and preview the content

Run make preview PLAYBOOK=release and open http://localhost:8051/ to view the component on your local machine.

This first runs make clean, then make build then make preview. The clean target deletes the build/site and build/cache directories for a clean build. The build target builds a local copy of the component. The output is placed in the build/site directory. The preview target serves build/site on http://localhost:8051/

Updating the UI

Run make ui to pull the latest UI package.

Updating the tools

Run make tools to pull the latest changes from the curriculum-tools repository.

If you come across any merge conflicts, resolve them in VS Code and commit when you are done.

About

This is a template repository holding all the tools for content repositories. Use this template to start a new content repository.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Makefile 87.4%
  • Dockerfile 12.6%