Skip to content

jmini/jbake-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jbake-sample

Example project to use JBake with Maven.

Based on the work:

See the output online: http://jmini.github.io/jbake-sample/

Usage

Generate the site

Generate the site with JBake:

>mvn process-resources

Output is target/jbake-sample

Push to GitHub pages

Commit generate the site and push it to github pages:

>mvn site

Do not forget to provide your GitHub credentials in your settings.xml file.

See GitHub Maven Plugins for more information.

Single step run

The exec-maven-plugin is used to run the mvn command with a list of arguments. Those arguments correspond to the different goals that are requested to generate site and upload it.

To use this possibility and run everything within a single step:

>mvn exec:exec

Reusing this sample project

This setup can be reused for your own website/blog. You can copy it and adapt it to your website.

  • pom.xml

    • Change the maven groupId and artifactId

    • Change the properties github.repository.owner and github.repository.name

    • Change the finalName at the beginning of the build

    • If your GitHub pages needs to commit on the master branch, adapt the site-maven-plugin configuration

  • src/main/jbake/jbake.properties

    • Change the site.host variable

Who is using this setup?

Technical description

Get in touch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 71.9%
  • Groovy 22.3%
  • HTML 5.8%