Craft your forge, Build your project, Grow your community freely
1---
2pluginName: Apex
3pluginBaseline: Some apexes are the growing tips of plants. Our Apex is the high point of your forge.
4homepage: /app/plugins/apex/
5docpage: /app/plugins/apex/doc.html
6changelog: /app/plugins/apex/CHANGELOG.html
7---
8 9# Documentation
1011## Configuration
1213```yaml
14configuration:
15branchesDir: branches #where to render your branches, e.g. accessible by https://domain.tld/repo/branches/16favicon: logo.png #where is your favicon in your git repository17footer: <code>git clone {{repo.cloneUrl}}</code> #footer for all pages18generateGitWorktree: true#generate worktree directory or not19header: <h1>{{repo.name}}</h1> #header for all pages20menu: # define your menu21 - display: 🏠 Home
22link: /
23 - display: 📖 Documentation
24link: /doc/
25 - display: 🔖 Versions
26link: /CHANGELOG.html
27 - display: 🐞 Issues
28link: /boards/issues.html
29 - display: 🚀 Code
30link: /worktree/
31 - display: ☕ Blog
32link: /blog/
33 - display: 🗨 Contact
34link: /contact.html
35meta: # define metadata for all pages36description: GitRoot is a small yet powerfull git forge.
37fediverse:creator: "@forge@gitroot.dev"38og:description: GitRoot is a small yet powerfull git forge.
39og:title: GitRoot
40style: simple.min.css # style css for all pages, simple.min.css is embeded but you put a path to your personal css in your git repository41layout: #define your own layouts42 - glob: issues/**/*.md #evey markdown in issues directory will use this layout instead of the default one embeded by apex43path: layouts/issues.html #if this path don't exist in git, apex will add default one there, so you have an example up-to-date44```4546## Layout variables
4748### Forge
4950-`forge.domain` what is your domain (e.g. `domain.com`)
51-`forge.externalHttpAddr` how to access with web (e.g. `https://domain.com`)
52-`forge.externalSshAddr` how to clone (e.g. `ssh://domain.com/`)
5354### Repo
5556-`repo.name` repo name (e.g. `repo1`)
57-`repo.url` full web url (e.g. `https://domain.com/repo1`)
58-`repo.cloneUrl` how to clone you rrepo (e.g. `ssh://domain.com/repo1/`)
5960### Apex
6162-`repo.favicon` your favicon to add in meta of pages in your git repo (e.g. `logo.png`)
63-`repo.faviconType` the favicon type mime (e.g. `image/png`)
64-`repo.css` your css to add in meta of pages in your git repo (e.g. `css/default.css`)
6566### Page
6768All variables from front-matter of `*.md` files are accessibles in layout.
6970If you add:
7172```md
73---
74var1: res
75---
7677# Tile
78```7980Then a `{{var1}}` in a lyout will be rendered has `res`.