Commit graph

46 commits

Author SHA1 Message Date
121a2c6915
Support folders
Some checks are pending
/ build (push) Waiting to run
Closes #3

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-27 14:34:36 +01:00
0aadf69a42
Use slf4j
All checks were successful
/ build (push) Successful in 31s
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-25 09:42:30 +01:00
159519c94d
Configurable compressors
All checks were successful
/ build (push) Successful in 36s
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-24 14:43:52 +01:00
42a73ece51
New config scheme in example_workdir
All checks were successful
/ build (push) Successful in 32s
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-22 16:40:25 +01:00
1557a47987
Rename site-config to site.yml
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-22 16:35:30 +01:00
a7ab3b400c
feat: Render options
All checks were successful
/ build (push) Successful in 35s
for now only includes compress true or false

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-22 16:31:11 +01:00
950645dcef
feat: Compression
All checks were successful
/ build (push) Successful in 37s
and refactoring

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-20 15:29:47 +01:00
3d4597b198
refactor: Use SimpleFileServer
All checks were successful
/ build (push) Successful in 27s
Instead of own HttpHandler

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-13 11:12:22 +01:00
567bbd8c37
docs: Update and improve README
All checks were successful
/ build (push) Successful in 37s
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-12 16:23:26 +01:00
0b91f2d7a1
docs: Update example workdir with YAML
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-12 16:23:04 +01:00
d155079514
feat!: Use YAML instead of JSON
site-config.json is now site-config.yml.
That was the only usage of JSON, so not much changes.

Dep removed: org.json:json
Added: org.snakeyaml:snakeyaml-engine

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-12 16:17:43 +01:00
721d8d2768
ci: Add artifact README
All checks were successful
/ build (push) Successful in 23s
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-10 17:22:44 +01:00
734a1ef497
ci: Fix actions
All checks were successful
/ build (push) Successful in 24s
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-10 16:54:42 +01:00
f265376ef8
chore: Update deps
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-10 16:54:17 +01:00
930a22d55a
docs: Add more to README
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-10 16:26:08 +01:00
37535e2c35
refactor: clean up unused imports
Some checks failed
/ build (push) Failing after 8s
- Removed unused Pebble extension-related imports.
- Improved readability by eliminating unnecessary dependencies.

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 16:01:06 +01:00
e89252bb71
refactor: use StringBuilder in RSS generation
- Replaced string concatenation with StringBuilder for efficiency.
- Moved DateTimeFormatter to a static final field to improve reusability and readability.
- Improved structure and readability of RSS generation logic.

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 16:00:44 +01:00
0a6d8c09c5
refactor: simplify while loop logic
- Replace `removeFirst()` check with `isEmpty()` for cleaner loop condition.
- Improve code readability and maintainability.

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 15:55:40 +01:00
8e4fae069d
refactor: extract template functions into TemplateExtension
- Introduced `TemplateExtension` to encapsulate template functions.
- Moved `static` and `asset` functions from `BlogBuilder` to `TemplateExtension`.
- Adjusted package structure for `TemplateRenderer` and new `TemplateExtension`.

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 15:54:22 +01:00
b339d6d239
docs: add Javadoc for core classes
- Added Javadoc comments to `Site`, `Server`, `Feed`, `BlogBuilder`, `TemplateRenderer`, and `Post` classes.
- Documented constructors, methods, and class-level descriptions.
- Enhanced clarity around parameters, return values, and exceptions.

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 15:50:32 +01:00
d5f6eaf487
docs: update README for clarity
- Updated download instructions with new link and asset details
- Updated example command to match new JAR naming convention
- Added new "API" section for integration guidance
- Linked Maven dependency and example `Main.java`

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 13:59:52 +01:00
3c3c8e0c5c
remove release.properties
Some checks are pending
/ build (push) Waiting to run
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 13:59:36 +01:00
b2725d9960
chore: mark commons-cli as optional
- Added `<optional>true</optional>` to the commons-cli dependency in `pom.xml`
- Ensures the dependency is not transitively included

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 13:54:40 +01:00
9979845efa
[maven-release-plugin] prepare for next development iteration
Some checks are pending
/ build (push) Waiting to run
2025-02-08 13:51:09 +01:00
eac9452171
[maven-release-plugin] prepare release blog-0.0.1
Some checks failed
/ build (push) Failing after 9s
2025-02-08 13:51:07 +01:00
af6f56b3d6
chore: update pom.xml configuration
Some checks are pending
/ build (push) Waiting to run
- Rename artifactId from 'blog-software-java' to 'blog'
- Enable shadedArtifactAttached in maven-shade-plugin configuration
- Add missing <tag> element in <scm> section

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 13:50:48 +01:00
7c15881008
feat: add Maven Wrapper and signing setup
Some checks are pending
/ build (push) Waiting to run
- Introduce Maven Wrapper for project builds (mvnw, mvnw.cmd, and configuration).
- Configure Jarsigner plugin for artifact signing.
- Add Maven Release Plugin for automated release management.
- Update `pom.xml` with version change to `0.0.1-SNAPSHOT`.
- Define distribution management and SCM settings.
- Add a test keystore file for signing (testkeystore.jks).

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 13:41:01 +01:00
6d58c7d232
feat: overhaul blog system architecture
Some checks are pending
/ build (push) Waiting to run
- Replace Git dependency in `Site` with `Path` for config files
- Refactor `Server` initialization and add browser-opening functionality
- Introduce `BlogBuilder` for blog building logic separation
- Simplify `Main` by delegating build and server logic to `BlogBuilder` and `Server`
- Add CLI enhancements with new options and improved readability

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 12:44:53 +01:00
e0878c8fbe
Add slf4j to silence a warning
Signed-off-by: Minecon724 <git@m724.eu>
2025-02-08 12:44:22 +01:00
c16350ecee
feat: add no-browser option
- Introduce `no-browser` CLI option to disable browser auto-open on server start
- Update logic to respect the `no-browser` flag

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-07 12:57:26 +01:00
a78bec5c5e
fix: correct server address output
Some checks failed
/ build (push) Has been cancelled
- Fix server address formatting in log message
- Update README with clearer formula-based description
- Adjust draft rendering logic to account for server mode

Signed-off-by: Minecon724 <git@m724.eu>
2025-02-05 12:42:36 +01:00
cbb7dab7f3
Make drafts drafts
All checks were successful
/ build (push) Successful in 20s
2025-01-20 17:34:01 +01:00
9b681dbec1
Build on Alpine
All checks were successful
/ build (push) Successful in 21s
2025-01-19 10:30:47 +01:00
481aae25ca
Improve example 2025-01-19 10:30:35 +01:00
6fcb8e088b
Improvements
All checks were successful
/ build (push) Successful in 35s
2025-01-19 10:15:42 +01:00
56628b72a2
fix again
All checks were successful
/ build (push) Successful in 37s
2025-01-18 21:43:18 +01:00
b8da41ae53
fix
All checks were successful
/ build (push) Successful in 38s
2025-01-18 21:41:31 +01:00
d0952423c7
Remove minify temporarily
All checks were successful
/ build (push) Successful in 39s
2025-01-18 21:36:25 +01:00
93244edd0e
prepare for deploy
All checks were successful
/ build (push) Successful in 51s
2025-01-18 21:22:42 +01:00
288f6d118b
Workflow
All checks were successful
/ build (push) Successful in 43s
2025-01-14 14:26:40 +01:00
f3ca31698e
shade 2025-01-13 13:32:25 +01:00
e3e07dc3fe
this 2025-01-10 18:50:12 +01:00
e6cd257238
this 2025-01-10 14:43:24 +01:00
dd28fde073
server and more 2025-01-09 16:15:55 +01:00
b6031b93e6
made it work 2025-01-08 18:40:11 +01:00
8978c7ae4c
initial commit 2025-01-07 11:41:30 +01:00