diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2013-11-02 22:12:50 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2013-11-02 22:12:50 +0100 |
commit | 54026b7585badf3736ad97f6f6e1d656d9f469e2 (patch) | |
tree | 044e2ce2a547c1a21148c4f3d8e439696c1e2679 /git-arr | |
parent | a42d7da6a4c33d12c0af1847ba4512b1a3f70287 (diff) | |
download | git-arr-fork-54026b7585badf3736ad97f6f6e1d656d9f469e2.zip |
Make embedding markdown and images configurable per-repo
This patch introduces the embed_markdown and embed_images configuration
options, so users can enable and disable those features on a per-repository
basis.
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'git-arr')
-rwxr-xr-x | git-arr | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -55,6 +55,8 @@ def load_config(path): 'web_url_file': 'web_url', 'git_url': '', 'git_url_file': 'cloneurl', + 'embed_markdown': 'yes', + 'embed_images': 'no', } config = configparser.SafeConfigParser(defaults) @@ -115,6 +117,9 @@ def load_config(path): if not r.info.git_url and os.path.isfile(git_url_file): r.info.git_url = open(git_url_file).read() + r.info.embed_markdown = config.getboolean(s, 'embed_markdown') + r.info.embed_images = config.getboolean(s, 'embed_images') + repos[r.name] = r def find_git_dir(path): |