diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..658de33 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # cgit material docker | ||
| 2 | |||
| 3 | Dockerized cgit with a responsive Material Design theme. | ||
| 4 | |||
| 5 | ## Quick Start | ||
| 6 | |||
| 7 | Run the container using the following command: | ||
| 8 | |||
| 9 | ```bash | ||
| 10 | docker run -d -p 80:80 igorechek06/cgit-material-docker | ||
| 11 | ``` | ||
| 12 | |||
| 13 | ## Configuration and Volumes | ||
| 14 | |||
| 15 | You can map local directories to the following paths inside the container to customize the instance. | ||
| 16 | |||
| 17 | ### /app/repos | ||
| 18 | |||
| 19 | This is the recommended directory to store your git repositories. | ||
| 20 | |||
| 21 | ### /app/etc/cgitrc | ||
| 22 | |||
| 23 | The main configuration file. It follows the standard `cgitrc` syntax. | ||
| 24 | |||
| 25 | ### /app/include | ||
| 26 | |||
| 27 | Contains HTML fragments included in the pages. | ||
| 28 | |||
| 29 | - **head.html**: Used by the `head-include` setting. | ||
| 30 | - You can also place files here for the `header` or `footer` settings defined in `cgitrc`. | ||
| 31 | |||
| 32 | ### /app/filters | ||
| 33 | |||
| 34 | 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. | ||
| 35 | |||
| 36 | ### /app/www/static/ | ||
| 37 | |||
| 38 | Used for storing static assets such as images. | ||
| 39 | |||
| 40 | - **Note:** When referencing these files in `cgitrc`, write the path relative to `/app/www/`. | ||
| 41 | |||
| 42 | ### /app/about/ | ||
| 43 | |||
| 44 | Used to store specific Markdown files for repository descriptions. | ||
| 45 | |||
| 46 | - **Usage:** Set `repo.readme=/app/about/filename.md` in your config. | ||
