88 Commits
Author SHA1 Message Date
Lukas Stancik 3d52a6b7b5 Merge branch 'fix-commit-template-nesting'
* fix-commit-template-nesting:
  Fix templates markup to prevent nesting of commit files diff blocks
0.5.1
2025-12-05 14:16:19 +00:00
Lukas Stancik 943746aaca Fix templates markup to prevent nesting of commit files diff blocks
Commit detail page improperly closes `.commit-diff` tags inside for-loop which results in diff blocks being nested within each other. This is best visible at large commits with lots of files and lots of changes - with increasing "indentation" from the left side as one scrolls down the long page.
2025-04-27 15:47:22 +00:00
Trevor Bentley a0d20db711 use correct work dir for per-repo asset files 2025-01-15 00:01:59 +01:00
Trevor Bentley fe81abfdac copy readme files to their real name in addition to the file hash 2025-01-15 00:01:36 +01:00
Trevor Bentley a99f2a72a3 strip trailing / from site URL 2025-01-14 23:50:40 +01:00
Trevor Bentley 0c3c1f7d4a unused copy code for future implementation 2025-01-14 00:03:06 +01:00
Trevor Bentley 55789ff98e better error chaining 2025-01-14 00:00:01 +01:00
Trevor Bentley b5c7f89959 support initializing with specified config (supports testing) 2025-01-13 23:57:10 +01:00
Trevor Bentley fc99b9180d output error when generation fails 2025-01-13 23:55:24 +01:00
Trevor Bentley 10fc58766d clean up render error handling 2025-01-13 23:54:41 +01:00
Trevor Bentley 3a658b8961 fix readme: repo_summary was renamed to summary 2023-01-30 03:07:44 +01:00
Trevor Bentley bdabfeb569 sort branches and tags by date in default templates 2023-01-30 00:57:41 +01:00
Trevor Bentley 6e27354266 pre-bump version to 0.5.1 2023-01-29 15:54:31 +01:00
Trevor Bentley 0b47cb04f6 update changelog for 0.5.0 2023-01-29 15:53:23 +01:00
Trevor Bentley b79eb387a3 bump version to 0.5.0 2023-01-29 01:31:34 +01:00
Trevor Bentley 913e187815 remove internal TODO list comments 2023-01-29 01:31:21 +01:00
Trevor Bentley aca44609ad add a changelog 2023-01-29 01:30:15 +01:00
Trevor Bentley f89f44b340 fetch_remote setting to disable remote repo updates 2023-01-26 01:30:20 +01:00
Trevor Bentley 08b075e29d add a few more features to README 2023-01-26 01:29:50 +01:00
Trevor Bentley d58a7e3316 fix small typos in README 2023-01-26 01:27:32 +01:00
Trevor Bentley 1403cdce98 fix incorrectly escaped pipe in README table 2023-01-20 02:42:02 +01:00
Trevor Bentley 691d70c906 remove old TODO about parallelism 2023-01-20 02:32:54 +01:00
Trevor Bentley c257ba12f0 Add limit_commit_ids_to_related setting.
Each template received `commit_ids`, a list of ALL commit hashes known
to Itsy-Gitsy.  For large repos with hundreds of thousands or millions
of commits, this huge list uses lots of memory and takes a long time
to search.

`limit_commit_ids_to_related` reduces the list to just a handful of
relevant commits for certain templates, which can give a massive
performance boost.
2023-01-20 02:26:16 +01:00
Trevor Bentley 5f0f9978c9 improve diff generation during parallel repo parsing
`limit_diff` used to apply to each thread, so you would get
NUM_THREADS*DIFF_LIMIT diffs, potentially much higher than expected.

This new implementation can still overshoot the requested limit, but
has a much tighter bound.
2023-01-19 22:54:31 +01:00
Trevor Bentley 77060540c7 fix parent links when limit_context is specified 2023-01-19 22:51:51 +01:00
Trevor Bentley 6bdc73f807 cargo fmt 2023-01-19 21:03:49 +01:00
Trevor Bentley d83f682aa2 refactor: support parallel execution
* parallel processing of multiple repositories
* parallel parsing of git history
* parallel template output
* configuration option for number of threads
* improved detection of exceeded size limits

Side effects of parallel execution are out-of-order output messages,
and larger potential overshoot in both processing and detecting when
limits are exceeded.  It will stop if it exceeds the limits, but it
can exceed them by more before stopping.

Processing of extremely large repositories is several times faster.

The order of commits in the history output might not match the output
of `git log`, since the order of commits in the log can change when
splitting it up into smaller pieces.
2023-01-19 20:55:26 +01:00
Trevor Bentley 48b6dd056a add support for %NAME% and url_string (permalinks) 2023-01-17 00:24:49 +01:00
Trevor Bentley f787ec91b3 bug fix: file paths missing in 'dir' template 2023-01-17 00:04:17 +01:00
Trevor Bentley 570a357c51 major refactoring: remove 1-to-1 limit of template-to-output
Large refactoring that:
 * allow any template to be used any number of times
 * combine config's gitsy_templates and gitsy_outputs into gitsy_outputs
 * improves safety of output file names
 * prepares foundation for slugified permalinks
 * prepares foundation for parallelizing more execution
2023-01-16 21:56:44 +01:00
Trevor Bentley 78156268ba switch from crazy macro to trait for path variable substitution 2023-01-16 03:42:40 +01:00
Trevor Bentley ca747583d2 document syntax_css in config.toml 2023-01-15 23:46:20 +01:00
Trevor Bentley f07d0a14bf rename repo_summary to summary to match other variables 2023-01-15 21:50:56 +01:00
Trevor Bentley 3ca4a52712 fix accidental color breakage in light theme 2023-01-15 18:40:29 +01:00
Trevor Bentley df81cd3179 bump to version 0.4.1 2023-01-15 18:30:08 +01:00
Trevor Bentley a5e01d22f5 add mdbook example 2023-01-15 18:27:18 +01:00
Trevor Bentley 88e76d788c add a basic default dark theme 2023-01-15 17:50:33 +01:00
Trevor Bentley 15fe76b0ba update readme. add demo link 2023-01-15 03:58:34 +01:00
Trevor Bentley dc594853d2 give footer a backlink 2023-01-15 03:58:18 +01:00
Trevor Bentley 88b7524b4a switch default pages to index.html 2023-01-15 03:21:22 +01:00
Trevor Bentley 490b6ad008 add sensible defaults to config.toml 2023-01-15 03:07:53 +01:00
Trevor Bentley 6a83f74282 fix tags missing from alt_refs 2023-01-15 02:55:47 +01:00
Trevor Bentley 19ec6e017f bump to version 0.4.0 2023-01-15 02:44:36 +01:00
Trevor Bentley 8130938391 remove stray line from readme 2023-01-15 02:42:20 +01:00
Trevor Bentley 6fe5a9715b Limitations section in readme 2023-01-15 02:41:05 +01:00
Trevor Bentley 84c9f70f22 add CSV generation example 2023-01-15 02:31:49 +01:00
Trevor Bentley 42870f1c77 don't generate asset folder if not used 2023-01-15 02:30:13 +01:00
Trevor Bentley 16f56617a4 document tera filters in readme 2023-01-15 02:29:58 +01:00
Trevor Bentley 3a71d80c98 add GPL license and header comments 2023-01-15 02:06:18 +01:00
Trevor Bentley 0b67001b3b minor README tweak 2023-01-15 01:58:58 +01:00