Commit graph

25 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
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
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
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
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
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
6fcb8e088b
Improvements
All checks were successful
/ build (push) Successful in 35s
2025-01-19 10:15:42 +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
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