- JDK 21 (to build content-generator)
Generator to create a site by content from text file using templates added as Git submodule to a current project
git submodule init
git submodule update
cd github-pages-content-generator
./mvnw clean install
cd github-pages-content-generator
pull origin master
./mvnw clean install
-
To change content - modify content.txt
-
To change view template - modify template.html
-
To generate new
index.html
bycontent.txt
- run generate.bat. It will delete and recreateindex.html
fileNow you could use index.html locally or:
-
Commit changes to the GH repository to deploy them into the Web. One minute after, when GH workflow finished, updated site will be available by original link
Instead of generate & commit steps, you could use generate-n-commit-n-push.bat script