# 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: - [Git::Raw]: Perl bindings to [libgit2]; - [Mustache::Simple]: template library for generating output files; - [CommonMark][cm-p]: [CommonMark][cm-spec] renderer. [Git::Raw]: https://metacpan.org/pod/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.5`](gistatic-template.5.html). ## Contributing Extra tools used for development are: - [Perl::Critic] and [B::Lint] for linting; - [perltidy] for code formatting; - [ShellCheck] for validating scripts; - [pandoc] for generating the documentation HTML and website. [Perl::Critic]: https://metacpan.org/pod/Perl::Critic [B::Lint]: 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 ``` For running the extra development-only checks, run: ```shell $ make dev-check ``` and for generating the documentation HTML and website, run: ```shell $ make public ``` Send contributions to the [mailing list] via [`git send-email`](https://git-send-email.io/). ## Links - [homepage](https://euandreh.xyz/gistatic/en/) - [source code](https://git.euandreh.xyz/gistatic/) - [bug tracking](https://euandreh.xyz/gistatic/TODOs.html) - [mailing list] - [CI logs](https://euandreh.xyz/gistatic/ci.html) - [CHANGELOG](https://euandreh.xyz/gistatic/en/CHANGELOG.html) [mailing list]: https://lists.sr.ht/~euandreh/public-inbox?search=%5Bgistatic%5D ## License The code is licensed under [GNU Affero General Public License v3.0 or later][AGPL-3.0-or-later] (AGPL-3.0-or-later). [AGPL-3.0-or-later]: https://git.euandreh.xyz/gistatic/tree/COPYING