Implemented using Java to generate a static html site from a txt file.
argument option "-v" or "--version" will display the current version of the application
argument option "-h" or "--help" will display the list of command options
argument option "-i" or "--i" will allow user input the single file or files by passing the directory. It supports both .txt and .md (feature: Heading, Bold)
argument option "-c" or "--config" will allow users to specify a JSON config file that contains input and optional output values, such as:
{
"input": "docs",
"output": "web"
}
java (jdk-17), Maven, IntelliJ
##Installation
- Clone this repository
- Locate the ssgApplication.jar
- open command line
- run .jar file using java -jar with the argument
java -jar out\artifacts\ssgApplication_jar\ssgApplication.jar -i <txtFileName>
java -jar out\artifacts\ssgApplication_jar\ssgApplication.jar -c <configFileName>
- Fork this repository
- Create a feature branch with a name "feature-issue-##(replace with the issue number)"
- Check out the branch and make changes
- Search "google-java-format" from IntelliJ Marketplace
- Install and enable the plugin
- Reformat the Code by "CTRL+ALT+L" in the file you worked on
To test the code :
-
Run "testProcessInput" in HTMLBuilderTest.java
-
Fix any error that does not pass the testing
-
Click here for more information for Junit testing framework
To create a unit test :
Right click the class name in the code, and select Show Context Action Select >Create Test< and select the function you want to add Add testing to the corresponding testclass
- Run
mvn spotbugs:gui
to spot the area of improvement in a SpotBug UI- Fix the linter (Especially if it has red dot)
- Commit and push the changes
- Create a pull request against irenejoeunpark/master
- Mention the issue in the pull request
##License MIT
##Deployment version 1.0.0, Sept 2021 by author Irene Park