summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2026-03-08use new themedevelopPaul Buetow
2026-03-01Replace set +u/set -u toggle with ${VAR:-} in html::theme::webfontsPaul Buetow
Using ${VAR:-} for potentially unset webfont variables keeps strict mode (set -u) active throughout the function, preventing silent bugs from unset variables in other parts of the code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01Move atom-to-HTML conversion from generate to atomfeed modulePaul Buetow
generate::convert_gmi_atom_to_html_atom was atom feed logic that belonged in the atomfeed module. Renamed to atomfeed::convert_to_html and simplified by removing the format parameter (always HTML). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01Extract generate::extract_title helper to eliminate duplicationPaul Buetow
Title extraction ($SED pattern + quote sanitization) was duplicated in generate, atomfeed, gemfeed, notes, and template modules. Now centralized with unit tests for heading extraction and empty files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01Remove leftover debug log from notes::generatePaul Buetow
The 'Hello world' log line was leftover debug output that appeared on every generation run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01Add error context to eval-based template processingPaul Buetow
Template eval failures now log the template file path and the failing code block/line, making it much easier to debug syntax errors in .gmi.tpl templates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01Extract generate::safe_overwrite helper to eliminate DRY violationPaul Buetow
The "safe overwrite" pattern (diff -q tmp dest, then rm or mv) was duplicated in template, gemfeed (2x), and notes modules. Extracted into a shared helper with unit tests covering all three cases (no dest, identical dest, differing dest). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15Improve --generate performance with incremental builds (62s -> 2s)Paul Buetow
Add mtime-based skip logic to avoid regenerating unchanged files: - generate::fromgmi skips .gmi files where all outputs are newer - template::_generate_file skips templates when output is fresh - Diff-before-overwrite in templates, gemfeed, and notes indexes to preserve mtimes and prevent cascading cache invalidation - Global dependency check (.lastgen sentinel) for header/footer/CSS - Job throttling via wait -n capped at nproc cores - Add --force flag and FORCE_REBUILD env var to bypass skip logic - Fix misleading atom feed "empty cache" log message Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2025-12-06Fix draft HTML generation for files with unsupported source-highlight languagesPaul Buetow
- Add .tmp to exclusion pattern in cleanup to prevent race condition - Gracefully fallback to plain <pre> when source-highlight fails (e.g., yaml)
2025-08-31fixPaul Buetow
2025-08-05fix bare blocks so lines in there can start with [[Paul Buetow
2025-07-09AUTO not yet supportedPaul Buetow
2025-07-09fix: unbound variable in html::source_highlightPaul Buetow
2025-07-09fix: unbound variable in html::source_highlightPaul Buetow
2025-07-09feat: auto-detect language for source-highlightPaul Buetow
2025-05-26debugPaul Buetow
2025-02-02swapPaul Buetow
2025-02-02intro of rindex inline templatePaul Buetow
2024-12-30fix toc when there are tags in themPaul Buetow
2024-12-29fix --test (ShellSheck)Paul Buetow
2024-12-29add links to Markdown and Gemtext versions of this page on the page headersPaul Buetow
2024-09-18ideaPaul Buetow
2024-09-17theme refactoring (not the themes themselves but the structure)Paul Buetow
2024-08-26typoPaul Buetow
2024-08-26fixPaul Buetow
2024-08-26add ToC suggesterPaul Buetow
2024-08-25remove deprecated html variant (the prev default one) and bump major ↵Paul Buetow
gemtexter version
2024-08-25fix markdown internal link idsPaul Buetow
2024-08-24check atomfeed before publishingPaul Buetow
2024-08-24fix ToCPaul Buetow
2024-08-24change toc format and fix a bugPaul Buetow
2024-08-24initial atom.xml fixesPaul Buetow
2024-08-24initial nicer markdown ToC supportPaul Buetow
2024-08-24nicer ToC for HTMLPaul Buetow
2024-05-18move fonts into fonts dirPaul Buetow
2024-05-18add support for GNU Source Highlight CSS styles, e.g. to have a darker style.Paul Buetow
2024-05-17update css stylesPaul Buetow
2024-04-30add id's to the headers in html, for ToC references laterPaul Buetow
2024-04-21ignore bare blocks for toc generationPaul Buetow
2024-04-21fixPaul Buetow
2024-04-21add TOC generator to the templating engine.Paul Buetow
2024-04-13new css style. add heading font.Paul Buetow
2024-03-30inline index is case-insensitivePaul Buetow
2023-08-19change inline template sortingPaul Buetow
2023-07-23typoPaul Buetow
2023-07-15Mastadon verification supportPaul Buetow
2023-05-08test the proper encoding of ' as wellPaul Buetow
2023-05-08also escape ' properlyPaul Buetow
2023-05-08Merge branch 'main' into developPaul Buetow
2023-05-08create html/gemfeed directory when its not there yetPaul Buetow