The first release of the Gitmal project has been published, which allows for the generation of static sites for navigating Git repositories. The contents of the repository are transformed into a visual web representation in the style of GitHub (example), consisting solely of static HTML pages and requiring no script execution on the server. This approach enables the creation of sites for viewing the contents of Git repositories that require minimal server resources. The project's code is written in Go and is distributed under the MIT license.
Gitmal supports themes, code display with syntax highlighting, and rendering of markdown. In addition to navigation through the repository structure and displaying file contents with code, there are views available for branches, tags, and commits. It is possible to keep the web representation up to date through incremental updates, where missing pages are generated with each change in the repository. To reduce the size of the generated content, minification and compression can be applied (flags —minify —gzip). The generation of web pages for repositories with Zig, ZX, and my-badges takes 25 minutes on a MacBook Air M2 and leads to approximately 2 GB of files being saved.


Source: opennet.ru
