2024-06-29 19:48:15 +01:00
|
|
|
# GitSSG
|
2024-06-28 18:35:08 +01:00
|
|
|
|
|
|
|
Simple CLI tool to generate webpages from git repositories.
|
|
|
|
|
2024-06-29 19:48:15 +01:00
|
|
|
Project heavily inspired by the amazing
|
|
|
|
[stagit](https://codemadness.org/stagit.html).
|
|
|
|
|
2024-06-28 18:35:08 +01:00
|
|
|
## Roadmap
|
|
|
|
|
2024-06-29 21:19:25 +01:00
|
|
|
- [X] Embed templates mechanism.
|
2024-06-29 22:10:44 +01:00
|
|
|
- [ ] Embed style.css
|
2024-06-29 23:25:22 +01:00
|
|
|
- [ ] Correctly manage relative links.
|
|
|
|
- [ ] Add a base url to avoid relative links if provided.
|
2024-06-29 21:19:25 +01:00
|
|
|
- [X] Generate the index html file for the `index` subcommand.
|
2024-06-28 23:03:06 +01:00
|
|
|
- [ ] Generate the log html file for a repository.
|
|
|
|
- [ ] Detect and link README, LICENSE and CONTRIBUTING files.
|
2024-06-29 23:25:22 +01:00
|
|
|
- [X] Generate the files html file and file structure.
|
2024-06-28 23:03:06 +01:00
|
|
|
- [ ] Generate the refs html file.
|
2024-06-29 21:19:25 +01:00
|
|
|
- [X] Add a proper CLI parsing and subcommands.
|
2024-06-28 18:35:08 +01:00
|
|
|
- [ ] Add a sample CSS file for the default templates.
|
2024-06-28 23:03:06 +01:00
|
|
|
- [ ] Add a subcommand to dump the embedded templates so they can be
|
|
|
|
modified.
|
|
|
|
- [ ] Take binary files into account.
|
2024-06-30 00:05:12 +01:00
|
|
|
- [ ] Limit the output for large diffs. Add a "X commits remaining"
|
|
|
|
message if necessary.
|
2024-06-29 23:25:22 +01:00
|
|
|
- [X] Allow to anchor lines.
|
2024-06-28 18:35:08 +01:00
|
|
|
- [ ] Check if the templates exist on a location and use them if
|
|
|
|
so. Allow to change that location through CLI flags or env vars.
|
2024-06-29 23:25:22 +01:00
|
|
|
- [ ] Optimize tree generation, it is currently very time consuming.
|
2024-06-28 23:03:06 +01:00
|
|
|
- [ ] Optimize repository generation through a cache.
|
|
|
|
- [ ] Add a flag to regenerate in case a `push -f` comes in.
|
2024-06-28 18:35:08 +01:00
|
|
|
- [ ] Optimize output generation through the use of smaller templates
|
|
|
|
instead of having all the structs in memory when executing one
|
|
|
|
template (for large repos).
|
|
|
|
- [ ] Add an atom feed for the repositories.
|
|
|
|
- [ ] Add a flag for raw file generation for HEAD.
|
|
|
|
- [ ] Add a flag for syntax highlighting through Chroma.
|
|
|
|
- [ ] Add a flag for markdown to HTML.
|
|
|
|
- [ ] Investigate the viability of generating tarballs for certain
|
|
|
|
refs.
|