|
| 1 | +# The documentation site, published on GitHub Pages by .github/workflows/docs.yml. Its pages are |
| 2 | +# doc/, README.md, UPGRADE-2.0.md and CHANGELOG.md, which tools/zensical/pages.py copies to |
| 3 | +# docs_dir first. With the Python packages of tools/zensical/requirements.txt: |
| 4 | +# |
| 5 | +# python3 tools/zensical/pages.py && zensical serve |
| 6 | + |
| 7 | +[project] |
| 8 | +site_name = "gitlib" |
| 9 | +site_url = "https://gitonomy.github.io/gitlib/" |
| 10 | +site_description = "Access git repositories from PHP, through the git binary or libgit2." |
| 11 | +copyright = "gitlib is released under the <a href=\"https://github.com/gitonomy/gitlib/blob/main/LICENSE\">MIT license</a>." |
| 12 | +repo_url = "https://github.com/gitonomy/gitlib" |
| 13 | +repo_name = "gitonomy/gitlib" |
| 14 | +docs_dir = "var/docs" |
| 15 | +site_dir = "site" |
| 16 | +strict = true |
| 17 | + |
| 18 | +nav = [ |
| 19 | + { "Getting started" = "index.md" }, |
| 20 | + { "Repository and drivers" = [ |
| 21 | + { "Opening a repository" = "repository.md" }, |
| 22 | + { "Creating repositories" = "admin.md" }, |
| 23 | + ] }, |
| 24 | + { "Objects" = [ |
| 25 | + { "Revisions" = "revision.md" }, |
| 26 | + { "Commits" = "commit.md" }, |
| 27 | + { "Log" = "log.md" }, |
| 28 | + { "Trees" = "tree.md" }, |
| 29 | + { "Blobs" = "blob.md" }, |
| 30 | + { "Diffs" = "diff.md" }, |
| 31 | + { "Blame" = "blame.md" }, |
| 32 | + { "Tags and branches" = "references.md" }, |
| 33 | + { "Branches" = "branch.md" }, |
| 34 | + ] }, |
| 35 | + { "Working copy" = "workingcopy.md" }, |
| 36 | + { "Hooks" = "hooks.md" }, |
| 37 | + { "Upgrade and changelog" = [ |
| 38 | + { "Upgrading to 2.0" = "upgrade-2.0.md" }, |
| 39 | + { "Changelog" = "changelog.md" }, |
| 40 | + ] }, |
| 41 | +] |
| 42 | + |
| 43 | +[project.theme] |
| 44 | +language = "en" |
| 45 | +favicon = "assets/favicon.svg" |
| 46 | +# The fonts of the system: no request to Google Fonts. |
| 47 | +font = false |
| 48 | +features = [ |
| 49 | + "content.code.copy", |
| 50 | + "navigation.footer", |
| 51 | + "navigation.instant", |
| 52 | + "navigation.path", |
| 53 | + "navigation.sections", |
| 54 | + "navigation.top", |
| 55 | + "navigation.tracking", |
| 56 | + "search.highlight", |
| 57 | + "toc.follow", |
| 58 | +] |
| 59 | + |
| 60 | +[project.theme.icon] |
| 61 | +logo = "lucide/git-branch" |
| 62 | +repo = "fontawesome/brands/github" |
| 63 | + |
| 64 | +[[project.theme.palette]] |
| 65 | +media = "(prefers-color-scheme)" |
| 66 | +toggle.icon = "lucide/sun-moon" |
| 67 | +toggle.name = "Switch to light mode" |
| 68 | + |
| 69 | +[[project.theme.palette]] |
| 70 | +media = "(prefers-color-scheme: light)" |
| 71 | +scheme = "default" |
| 72 | +primary = "teal" |
| 73 | +accent = "teal" |
| 74 | +toggle.icon = "lucide/sun" |
| 75 | +toggle.name = "Switch to dark mode" |
| 76 | + |
| 77 | +[[project.theme.palette]] |
| 78 | +media = "(prefers-color-scheme: dark)" |
| 79 | +scheme = "slate" |
| 80 | +primary = "teal" |
| 81 | +accent = "teal" |
| 82 | +toggle.icon = "lucide/moon" |
| 83 | +toggle.name = "Switch to system preference" |
| 84 | + |
| 85 | +[project.markdown_extensions] |
| 86 | +admonition = {} |
| 87 | +attr_list = {} |
| 88 | +toc.permalink = true |
| 89 | +# The examples start without "<?php". |
| 90 | +pymdownx.highlight.extend_pygments_lang = [ |
| 91 | + { name = "php", lang = "php", options = { startinline = true } }, |
| 92 | +] |
| 93 | +pymdownx.inlinehilite = {} |
| 94 | +# Fenced code blocks in list items, which UPGRADE-2.0.md has. |
| 95 | +pymdownx.superfences = {} |
0 commit comments