# gistatic Static Git repository generator Generate HTML pages for a Git repository. The generated pages are static and offline-first, and can be made available online as static assets. ## Usage Generate static HTML website for Git repository: ```shell $ gistatic path/to/git/ -o public/ ``` ## Installation Get the latest tarball and install it: ``` wget https://euandreh.xyz/gistatic/tarballs/gistatic-main.tar.gz tar xvf gistatic-main.tar.gz cd gistatic-main/ make [sudo] make install ``` The requirements are Perl with dependencies: - [p5-Git-Raw]: Perl bindings to [libgit2]; - [Mustache::Simple]: template library for generating output files; - [CommonMark][cm-p]: [CommonMark][cm-spec] renderer. [p5-Git-Raw]: https://github.com/jacquesg/p5-Git-Raw/ [libgit2]: https://libgit2.org/ [Mustache::Simple]: https://metacpan.org/pod/Mustache::Simple [cm-p]: https://metacpan.org/pod/CommonMark [cm-spec]: https://commonmark.org/ ## Documentation Documentation available via installed manpages, also available online: [`gistatic.1`](gistatic.1.html) and [`gistatic-template.pod.5`](gistatic-template.5.html). ## Contributing Extra tools used for development are: - [Perl::Critic][perlcritic] and [B::Lint][blint] for linting; - [perltidy] for code formatting; - [ShellCheck] for validating scripts; - [pandoc] for generating the documentation HTML and website. [perlcritic]: https://metacpan.org/pod/Perl::Critic [blint]: https://metacpan.org/pod/B::Lint [perltidy]: https://metacpan.org/pod/perltidy [ShellCheck]: https://www.shellcheck.net/ [pandoc]: https://pandoc.org/ For running the extra development-only checks, run: ```shell $ make dev-check ``` and for generating the documentation HTML and website, run: ```shell $ make public ```