Static Page Generator #5

Open
kumi wants to merge 21 commits from dev into main

21 commits

Author SHA1 Message Date
Kumi 18d434ab5b
Merge branch 'main' into dev
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s
2024-07-03 13:49:59 +02:00
Kumi fa12209b03
Merge branch 'main' into dev
All checks were successful
Build and Deploy Static Site / build (push) Successful in 56s
2024-07-02 09:48:08 +02:00
Kumi 2e2327848f
fix(styles): refine button margin and dropdown shadow spacing
All checks were successful
Build and Deploy Static Site / build (push) Successful in 56s
Adjusted the CSS selector to more accurately apply margins to specific button elements within card bodies, enhancing layout consistency. Corrected minor formatting issue in the dropdown menu's box-shadow property for improved code readability.
2024-07-01 15:07:51 +02:00
Kumi e5f82fdc41
Merge branch 'main' into dev 2024-07-01 14:56:41 +02:00
Kumi ee2d53a36d
feat: extend asset copying to include data directory
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s
Expanded the asset copying functionality to also handle the 'data' directory in addition to the 'assets' folder. This ensures that both static assets and data files are included in the output directory, streamlining the build process and ensuring all necessary resources are available in the generated static site.
2024-07-01 12:12:39 +02:00
Kumi d57046fa57
Merge branch 'main' into dev 2024-07-01 12:11:05 +02:00
Kumi 5cdb9ad43b
feat: add filter to convert month number to name
All checks were successful
Build and Deploy Static Site / build (push) Successful in 57s
Added a custom filter `month_name` to convert month numbers to their full names in templates. Updated the Transparency Report title to use this filter, enhancing readability and user experience. This change ensures that month names are displayed instead of numeric values, making the report titles clearer and more user-friendly.
2024-07-01 12:06:30 +02:00
Kumi feb273a8b0
Merge branch 'main' into dev
All checks were successful
Build and Deploy Static Site / build (push) Successful in 57s
2024-07-01 11:11:25 +02:00
Kumi 8e81ba73b2
chore: remove Flask from requirements
All checks were successful
Build and Deploy Static Site / build (push) Successful in 57s
Removed Flask from the requirements.txt file as it is no longer needed for the project dependencies. This helps to streamline the dependency management and reduces potential security vulnerabilities that come with maintaining unnecessary packages.
2024-07-01 10:59:34 +02:00
Kumi 3219a5019f
Merge branch 'main' into dev
All checks were successful
Build and Deploy Static Site / build (push) Successful in 1m0s
2024-07-01 10:51:12 +02:00
Kumi 69ef1f7a1a
feat: update README and asset paths for static site generation
All checks were successful
Build and Deploy Static Site / build (push) Successful in 1m0s
Switched the project description from a Flask application to a Jinja2 static website generator. Adjusted asset links in the base template to be relative, enhancing portability and simplifying deployments. These changes aim to better reflect the project's current architecture and usage.
2024-07-01 10:50:00 +02:00
Kumi b27ace9cb0
feat(build): add dev flag to static site generation
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s
Updated the build-dev CI workflow to run the static site generation with a development flag. This ensures the build script runs in the appropriate context for development environments. No issues referenced.
2024-07-01 10:47:28 +02:00
Kumi 0b0f8bb3b2
fix(build): ensure .gitignore is included in temp site
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s
Added copying of .gitignore to the temporary static site location in both development and production build scripts. This prevents unnecessary files from being included in the new orphan branches, ensuring a cleaner and more efficient build process.
2024-07-01 10:37:42 +02:00
Kumi 1434a3b552
Merge branch 'main' into dev
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s
2024-07-01 10:34:24 +02:00
Kumi 22529bfa65
Some checks failed
Build and Deploy Static Site / build (push) Failing after 58s
2024-07-01 10:31:52 +02:00
Kumi 9030c527ef
Merge branch 'main' into dev
Some checks failed
Build and Deploy Static Site / build (push) Has been cancelled
2024-07-01 10:28:54 +02:00
Kumi d337e8a207
feat(ci): automate build and deploy for dev and main branches
Some checks failed
Build and Deploy Static Site / build (push) Failing after 59s
- Added a new GitHub Actions workflow for the development branch to build and deploy the static site.
- Modified the existing workflow to trigger on the main branch instead of the static branch.
- Refactored the main.py script for consistency in string quotation.

The new workflow simplifies deployment processes during development, ensuring seamless and automated integration and testing.
2024-07-01 10:24:24 +02:00
Kumi 03c1885af1
Merge branch 'dev' into static
All checks were successful
Build and Deploy Static Site / build (push) Successful in 1m1s
2024-07-01 10:07:45 +02:00
Kumi b8851c8049
Merge branch 'dev' into static
Some checks failed
Build and Deploy Static Site / build (push) Failing after 55s
2024-07-01 10:04:39 +02:00
Kumi 438461f333
Merge branch 'dev' into static
Some checks failed
Build and Deploy Static Site / build (push) Failing after 57s
2024-07-01 10:01:07 +02:00
Kumi 61de9ec81b
feat: convert Flask app to static site generator
Refactored the Flask application to generate a static site instead of running as a dynamic web app. Added a CI workflow to build and deploy the static site on pushes to the 'static' branch.

- Replaced Flask route handling with a function that generates HTML files using Jinja2 templates.
- Modified the argparse logic to trigger the static site generation.
- Updated the .gitignore file to exclude the build directory.
- Created a Forgejo Actions workflow to automate the build and deploy process.

This change improves performance and reduces server overhead by serving pre-rendered static content.
2024-07-01 09:56:04 +02:00