Skip to content

Commit

Permalink
Codex: Added author aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 20, 2015
1 parent 27bacd5 commit 5f641e2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doomsday/build/scripts/codex.py
Expand Up @@ -10,13 +10,21 @@
OUT_DIR = 'codex'
TITLE = 'Doomsday Codex'

AUTHOR_ALIASES = {
u'Jaakko Keränen': u'skyjake',
u'Jaakko Keränen':u'skyjake'
}

if sys.argv > 1:
OUT_DIR = sys.argv[1]

class Commit:
def __init__(self, subject, author, date, link, hash):
self.subject = subject
self.author = author
if author in AUTHOR_ALIASES:
self.author = AUTHOR_ALIASES[author]
else:
self.author = author
self.date = date
self.link = link
self.hash = hash
Expand Down

0 comments on commit 5f641e2

Please sign in to comment.