| David Pursehouse | 240fbff | 2016-08-25 09:58:15 +0900 | [diff] [blame^] | 1 | # Configuration |
| 2 | |
| 3 | The `gitiles.config` file supporting the site contains several configuration |
| 4 | options. |
| 5 | |
| 6 | [TOC] |
| 7 | |
| 8 | ## Markdown |
| 9 | |
| 10 | ### Disabling markdown |
| 11 | |
| 12 | Markdown can be completely disabled by setting render to false. |
| 13 | |
| 14 | ``` |
| 15 | [markdown] |
| 16 | render = false |
| 17 | ``` |
| 18 | |
| 19 | ### Markdown size |
| 20 | |
| 21 | Markdown files are limited by default to 5 MiB of input text |
| 22 | per file. This limit is configurable, but should not be raised |
| 23 | beyond available memory. |
| 24 | |
| 25 | ``` |
| 26 | [markdown] |
| 27 | inputLimit = 5M |
| 28 | ``` |
| 29 | |
| 30 | ### Image size |
| 31 | |
| 32 | Referenced [images are inlined](#Images) as base64 encoded URIs. |
| 33 | The image limit places an upper bound on the byte size of input. |
| 34 | |
| 35 | ``` |
| 36 | [markdown] |
| 37 | imageLimit = 256K |
| 38 | ``` |
| 39 | |
| 40 | ## Google Analytics |
| 41 | |
| 42 | [Google Analytics](https://www.google.com/analytics/) can be |
| 43 | enabled on every rendered markdown page by adding the Property ID |
| 44 | to the configuration file: |
| 45 | |
| 46 | ``` |
| 47 | [google] |
| 48 | analyticsId = UA-XXXX-Y |
| 49 | ``` |