Skip to content

andrei-punko/java-interview-faq-n-answers

Repository files navigation

Java interview questions and answers

pages-build-deployment

Java interview FAQ Donate

Prerequisites

  • JDK 21 (to build content-generator)

Generator and its preparation

Generator to create a site by content from text file using templates added as Git submodule to a current project

Init and download submodule

git submodule init
git submodule update

Build generator

cd github-pages-content-generator
./mvnw clean install

Update generator code and rebuild it

cd github-pages-content-generator
pull origin master
./mvnw clean install

Update instructions

  • Modify content.txt to change content
  • Modify template.html (only) if you need to change view template
  • Run generate.bat. It will delete and regenerate index.html
  • Use index.html locally or:
  • Commit changes to the 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