Configuration

The extension provides the following configuration:

recentupdate_count
Type:
int
Default:
10

The default count of recent revisions. See Usage.

recentupdate_template
Type:
str
Default:
see below

The default Jinja template of update information. See Usage.

Here is the default value:

{% for r in revisions %}
{{ r.date | strftime }}
  :Author: {{ r.author }}
  :Message: {{ r.message }}

  {% if r.modification %}
  - Modified {{ r.modification | roles("doc") | join(", ") }}
  {% endif %}
  {% if r.addition %}
  - Added {{ r.addition | roles("doc") | join(", ") }}
  {% endif %}
  {% if r.deletion %}
  - Deleted {{ r.deletion | join(", ") }}
  {% endif %}
{% endfor %}
recentupdate_date_format
Type:
str
Default:
"%Y-%m-%dT"

The default date format of strftime filter.

recentupdate_exclude_path
Type:
List[str]
Default:
[]

A list of path that should be excluded when looking for file changes.

recentupdate_exclude_commit
Type:
List[str]
Default:
["skip-recentupdate"]

A list of commit message pattern that should be excluded when looking for file changes.