aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 460dc06955a1a39c95425c574ff6609f00e5fd32 (plain)
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
# cgit material docker

Dockerized cgit with a responsive Material Design theme.

## Quick Start

Run the container using the following command:

```bash
docker run -d -p 80:80 igorechek06/cgit-material
```

## Configuration and Volumes

You can map local directories to the following paths inside the container to customize the instance.

### /app/repos/

This is the recommended directory to store your git repositories.

### /app/www/static/

Used for storing static assets such as images.

- **Note:** When referencing these files in `cgitrc`, write the path relative to `/app/www/`.

### /app/about/

Used to store specific Markdown files for repository descriptions.

- **Usage:** Set `repo.readme=/app/about/filename.md` in your config.

### /app/etc/cgitrc and /app/etc/

The main configuration file. It follows the standard `cgitrc` syntax.

### /app/include/

Contains HTML fragments included in the pages.

- **head.html**: Used by the `head-include` setting.
- You can also place files here for the `header` or `footer` settings defined in `cgitrc`.

### /app/filters/

Contains the original cgit filters and two custom filters required for the Material theme.
You can add your own custom filter scripts to this directory.

### /app/www/css/

Contains files for markdown syntax highlighting and color variables. [(See `www/css` folder)](www/css)

## Examples

Configuration examples are located in the [/examples](examples) directory.
This includes the configuration used for [git.igorek.dev](https://git.igorek.dev).