summaryrefslogtreecommitdiff
path: root/doc/build/conf.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-11-10 00:32:41 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-11-10 00:32:41 -0500
commit153fd6de0ea263e7e21243c0e7aeccb3080a395b (patch)
tree8aa65b8d83cc3e72ec80fb2b0ba701dca720ed77 /doc/build/conf.py
parent546015e6e147130c4f21c87ec9e1537d9f71c3fb (diff)
downloadsqlalchemy-153fd6de0ea263e7e21243c0e7aeccb3080a395b.tar.gz
- use a dictionary here
Diffstat (limited to 'doc/build/conf.py')
-rw-r--r--doc/build/conf.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/doc/build/conf.py b/doc/build/conf.py
index efc9e217f..869ffec58 100644
--- a/doc/build/conf.py
+++ b/doc/build/conf.py
@@ -64,14 +64,11 @@ changelog_inner_tag_sort = ["feature", "bug", "moved", "changed", "removed"]
# how to render changelog links
changelog_render_ticket = "http://www.sqlalchemy.org/trac/ticket/%s"
-def changelog_render_pullreq(refname):
- url = "https://bitbucket.org/zzzeek/sqlalchemy/pull-request/%s"
- if refname.startswith("github:"):
- url = "https://github.com/zzzeek/sqlalchemy/pull/%s"
- refname = refname.split(":")[1]
- elif refname.startswith("bitbucket:"):
- refname = refname.split(":")[1]
- return url % refname
+changelog_render_pullreq = {
+ "bitbucket": "https://bitbucket.org/zzzeek/sqlalchemy/pull-request/%s",
+ "default": "https://bitbucket.org/zzzeek/sqlalchemy/pull-request/%s",
+ "github": "https://github.com/zzzeek/sqlalchemy/pull/%s",
+}
changelog_render_changeset = "http://www.sqlalchemy.org/trac/changeset/%s"