else if (!strcmp(name, "ignore"))
repo->ignore = atoi(value);
else if (ctx.cfg.enable_filter_overrides) {
- if (!strcmp(name, "about-filter"))
+ if (!strcmp(name, "render-filter"))
repo->about_filter = cgit_new_filter(value, ABOUT);
else if (!strcmp(name, "commit-filter"))
repo->commit_filter = cgit_new_filter(value, COMMIT);
ctx.cfg.cache_snapshot_ttl = atoi(value);
else if (!strcmp(name, "case-sensitive-sort"))
ctx.cfg.case_sensitive_sort = atoi(value);
- else if (!strcmp(name, "about-filter"))
+ else if (!strcmp(name, "render-filter"))
ctx.cfg.about_filter = cgit_new_filter(value, ABOUT);
else if (!strcmp(name, "commit-filter"))
ctx.cfg.commit_filter = cgit_new_filter(value, COMMIT);
fprintf(f, "repo.enable-log-linecount=%d\n",
repo->enable_log_linecount);
if (repo->about_filter && repo->about_filter != ctx.cfg.about_filter)
- cgit_fprintf_filter(repo->about_filter, f, "repo.about-filter=");
+ cgit_fprintf_filter(repo->about_filter, f, "repo.render-filter=");
if (repo->commit_filter && repo->commit_filter != ctx.cfg.commit_filter)
cgit_fprintf_filter(repo->commit_filter, f, "repo.commit-filter=");
if (repo->source_filter && repo->source_filter != ctx.cfg.source_filter)
GLOBAL SETTINGS
---------------
-about-filter::
+render-filter::
Specifies a command which will be invoked to format the content of
about pages (both top-level and for each repository). The command will
get the content of the about-file on its STDIN, the name of the file
REPOSITORY SETTINGS
-------------------
-repo.about-filter::
- Override the default about-filter. Default value: none. See also:
+repo.render-filter::
+ Override the default render-filter. Default value: none. See also:
"enable-filter-overrides". See also: "FILTER API".
repo.branch-sort::
# Format markdown, restructuredtext, manpages, text files, and html files
# through the right converters
-about-filter=/var/www/cgit/filters/about-formatting.sh
+render-filter=/var/www/cgit/filters/about-formatting.sh
##
## Search for these files in the root of the default branch of repositories
#!/bin/sh
-# This may be used with the about-filter or repo.about-filter setting in cgitrc.
+# This may be used with the render-filter or repo.render-filter setting in cgitrc.
# It passes formatting of about pages to differing programs, depending on the usage.
# Markdown support requires python and markdown-python.
repo.url=filter-exec
repo.path=$PWD/repos/filter/.git
repo.desc=filtered repo
-repo.about-filter=exec:$FILTER_DIRECTORY/dump.sh
+repo.render-filter=exec:$FILTER_DIRECTORY/dump.sh
repo.commit-filter=exec:$FILTER_DIRECTORY/dump.sh
repo.email-filter=exec:$FILTER_DIRECTORY/dump.sh
repo.source-filter=exec:$FILTER_DIRECTORY/dump.sh
repo.url=filter-lua
repo.path=$PWD/repos/filter/.git
repo.desc=filtered repo
-repo.about-filter=lua:$FILTER_DIRECTORY/dump.lua
+repo.render-filter=lua:$FILTER_DIRECTORY/dump.lua
repo.commit-filter=lua:$FILTER_DIRECTORY/dump.lua
repo.email-filter=lua:$FILTER_DIRECTORY/dump.lua
repo.source-filter=lua:$FILTER_DIRECTORY/dump.lua
}
/* Print the calculated readme, either from the git repo or from the
- * filesystem, while applying the about-filter.
+ * filesystem, while applying the render-filter.
*/
html("<div id='summary'>");
cgit_open_filter(ctx.repo->about_filter, filename);