This is a template-project for
-
generating AsciiDoc-Files to html-files and
-
deploying the html-files to gh-pages,
-
where the gh-pages are located in an branch of the repo.
AsciiDoctor - the software for converting the .adoc-files to .html-files - is executed in a Docker container. So you have nothing to install on your local machine, except Docker
Two scripts are available:
-
build-html-docker.sh → builds the .html-pages in the folder gh-pages
-
publish-gh-pages.sh → buils and deploys the gh-pages
git clone https://github.com/htl-leonding-college/asciidoctor-docker-template.git
For your own documentation change the remote origin to your own empty git-repo and commit your own docs.
-
Rename folder of project (from
asciidoctor-docker-templateto <your-repo-name>) -
Rename Project
-
Project Structure - Project - Rename Project
-
change git remote
git remote -v
git remote set-url origin <new repo link>
ie
git remote set-url origin https://github.com/htl-leonding/asciidoctor-docker-testdrive.git
git remote -v
In case you change your remote repository to https URL, you will be prompted for your username and password next time you use git fetch, git pull or git push.
Commit the shell-scripts, .ignore-File, … into the repo. It is not possible to create gh-pages, without content in the repo.
|
Caution
|
Don’t remove docinfo.html. This file is needed for highlighting.
|
= Title firstname lastname <email> 1.0, yyyy-mm-dd :sourcedir: ../src/main/java :icons: font :toc: left
|
Important
|
Before using the scripts, revisit them carefully. |
| script | purpose |
|---|---|
|
creates the html-output |
|
creates the pdf-output |
|
creates the reveal-output for generating slides |
|
downloads the reveal-library from the github-repo and unzips the files.
This script is used by |
|
create the html-, pdf-, and revealjs-output |
|
deletes all output-files, which are not necessary for the gh-pages |
|
creates the html-output and publish it on the gh-pages. |




