aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: b3692ad9cb9a0afca57545f7dfc90cad771be1d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# 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
```