Commit graph

8 commits

Author SHA1 Message Date
Yax
f9fb7552bb Update monitor.py to use .env instead of params.json
Complete the migration started in 42c89dc by updating the monitoring
script to load configuration from .env files using python-dotenv.
2026-01-10 16:36:44 +01:00
Yax
13d3d653de Make internal helper functions private
Added underscore prefix to functions used only internally:
- _strip_tags_and_truncate (used only in parse_post_file)
- _parse_headers (used only in parse_post_file)
- _rfc_2822_format (used only in parse_post_file)
- _make_links_absolute (used only in parse_post_file)
- _strip_html_tags (used only in parse_post_file)
- _get_friendly_date (used only in _setup_page_params)
- _exit_program (used only in monitor.py main loop)

This improves encapsulation by clearly marking implementation details.
2026-01-07 13:42:43 +01:00
Yax
424ea20bcf Refactor function names for clarity and accuracy
Renamed functions to better reflect their actual behavior:
- truncate → strip_tags_and_truncate (does both operations)
- fix_relative_links → make_links_absolute (converts, not fixes)
- clean_html_tag → strip_html_tags (more explicit)
- clean_site → rebuild_site_directory (removes and recreates)
- read_headers → parse_headers (parses, not just reads)
- read_content → parse_post_file (full processing pipeline)
- get_nb_of_comments → get_comment_count (removes French abbreviation)
2026-01-07 13:42:43 +01:00
Yax
f5df515d2b Add comprehensive docstrings to all functions
Added Google-style docstrings to all functions and classes in makesite.py and monitor.py with descriptions, argument types, and return values.
2026-01-07 13:42:43 +01:00
Yax
40d1c7a867 configure local testing 2021-12-12 04:21:51 +01:00
Yax
355bf741b5 change monitoring schedule 2021-02-03 18:52:37 +01:00
Yax
f0e99a3ba8 test monitor 2021-02-02 08:06:55 +01:00
Yax
35f2394f5f monitoring 2021-02-01 19:25:00 +01:00