summaryrefslogtreecommitdiff
path: root/doc/configuration.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/configuration.md')
-rw-r--r--doc/configuration.md22
1 files changed, 20 insertions, 2 deletions
diff --git a/doc/configuration.md b/doc/configuration.md
index 25a425f..230cac6 100644
--- a/doc/configuration.md
+++ b/doc/configuration.md
@@ -37,7 +37,10 @@ GitSyncer looks for configuration files in the following order:
"exclude_branches": [
"^temp-",
"-wip$"
- ]
+ ],
+ "showcase_stats_branches": {
+ "foo.zone": "content-gemtext"
+ }
}
```
@@ -78,6 +81,18 @@ Example:
}
```
+#### showcase_stats_branches (optional)
+Map of repository names to the branch that should be used when generating showcase statistics and cached code snippets. This is useful when the primary content for a repo lives on a non-default branch.
+
+Example:
+```json
+{
+ "showcase_stats_branches": {
+ "foo.zone": "content-gemtext"
+ }
+}
+```
+
## Examples
### Minimal Configuration
@@ -123,7 +138,10 @@ Sync between GitHub and Codeberg:
"^temp-",
"-wip$",
"^old-"
- ]
+ ],
+ "showcase_stats_branches": {
+ "foo.zone": "content-gemtext"
+ }
}
```