From 5451bb642c4974bbd7fc3e72630a7fc05c7c858c Mon Sep 17 00:00:00 2001 From: Julian Arni Date: Tue, 30 Jul 2013 17:43:43 -0400 Subject: [PATCH] Code cleanup. From PR review. --- docs/shared/conf.py | 10 +++++++++- rakelib/docs.rake | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/shared/conf.py b/docs/shared/conf.py index e04495d11b..5f0a2abd89 100644 --- a/docs/shared/conf.py +++ b/docs/shared/conf.py @@ -25,7 +25,15 @@ import sys, os BASEDIR = os.path.dirname(os.path.abspath(__file__)) -add_base = lambda l: map(lambda x: os.path.join(BASEDIR, x), l) +def add_base(paths): + """ + Returns a list of paths relative to BASEDIR. + + paths: a list of paths + """ + + return [os.path.join(BASEDIR, x) for x in paths] + # If extensions (or modules to document with autodoc) are in another directory, diff --git a/rakelib/docs.rake b/rakelib/docs.rake index 3d3224cd74..ce6c65f7fb 100644 --- a/rakelib/docs.rake +++ b/rakelib/docs.rake @@ -25,7 +25,6 @@ end desc "Show docs in browser (mac and ubuntu)." task :showdocs, [:options] do |t, args| - path = "docs" if args.options == 'dev' path = "docs/developer" elsif args.options == 'author'