Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 2.26 KB

README.md

File metadata and controls

64 lines (53 loc) · 2.26 KB

markdownToHomepage

Markdown to HTML Dynamic Website Generator written entirely in Java and easy to use.

Modes

CommandLine Mode

Build with maven:

mvn clean install

Write a config.json:

{
  "websites": {
    "My Blog": {
      "id" : 0,
      "name" : "My Blog",
      "author" : "John Smith",
      "title" : "My Blog",
      "description" : "Personal Stuff",
      "baseUrl" : "https://www.hydrogen2oxygen.net/blog/",
      "sourceFolder" : "/myBlog/source",
      "targetFolder" : "/myBlog/public",
      "headerFile" : "/myBlog/templates/header.html",
      "footerFile" : "/myBlog/templates/footer.html",
      "gitUrl" : "https://git...",
      "gitUser" : "user",
      "gitPassword" : "secretOrUseSSH",
      "ftpUser" : "user",
      "ftpPassword" : "secret",
      "ftpHost" : "ftp://...",
      "ftpPort" : 22,
      "ftpRootPath" : "/etc/www/myBlog/"
    }
  }
}

Then start it with:

java -jar target/markdowntohomepage-0.0.1-SNAPSHOT.jar [config.json]

Currently I'm working on a Swing Gui, later a Angular 9 Online Gui is planned:

gui

Optional: ConfigurationFile

In CommandLine Mode the application does not use Spring's own configuration, but you can define one or use the exisiting application.properties and point towards it (3rd argument).

Intention:

  • Easy to understand, compile and use
  • Run anywhere, using as a command line program or in a server mode (spring boot)
  • Import Hugo Projects or create a new project from scratch
  • Convention over configuration (but ...)
  • Configure and use Git repositories
  • Configure multiple projects
  • JSON Configuration File can be used in ServerMode as also in CommandLineMode
  • Add dynamic generated content from Hugo compatible metadata
  • FTP Upload