Skip to content

Commit c7bb787

Browse files
committed
Add generator as git submodule to current project
1 parent 3803487 commit c7bb787

5 files changed

+23
-12
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "github-pages-content-generator"]
2+
path = github-pages-content-generator
3+
url = https://github.com/andrei-punko/github-pages-content-generator

README.md

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
## Java interview questions and answers
21

3-
### Link to generated site:
2+
# Java interview questions and answers
43

4+
## Link to generated site:
55
https://andrei-punko.github.io/java-interview-faq-n-answers
66

7-
### Update instructions:
8-
- Modify [content.txt](content.txt) if needed
9-
- Modify [template.html](template.html) if needed
10-
- Run [generate.bat](generate.bat)
11-
- Commit changes to repo
7+
## Prerequisites
8+
- JDK 11
9+
- Maven 3
1210

13-
Instead 2 last steps you could use [generate-n-commit-n-push.bat](generate-n-commit-n-push.bat)
11+
## Generator and its preparation
12+
[Generator](https://github.com/andrei-punko/github-pages-content-generator) to create a site
13+
by content from text file using templates added as Git submodule to current project
1414

15-
### Sources of generator to create a site by content from text file using template placed here:
15+
To build generator - run next command from `github-pages-content-generator` folder:
16+
```
17+
mvn clean install
18+
```
1619

17-
https://github.com/andrei-punko/github-pages-content-generator
20+
## Update instructions
21+
- Modify [content.txt](src/content.txt) if needed
22+
- Modify [template.html](templates/template.html) if needed
23+
- Run [generate.bat](generate.bat)
24+
- Commit changes to repo
1825

19-
If needed - change generator logic, build jar-file and replace existing [github-pages-content-generator.jar](github-pages-content-generator.jar)
26+
Instead of two last steps could use [generate-n-commit-n-push.bat](generate-n-commit-n-push.bat) script
-5.62 KB
Binary file not shown.

generate.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
del *.html
33

4-
java -jar bin/github-pages-content-generator.jar src/content.txt templates/template.html index.html
4+
java -jar github-pages-content-generator/target/github-pages-content-generator.jar src/content.txt templates/template.html index.html

github-pages-content-generator

0 commit comments

Comments
 (0)