Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 0cca4f7

Browse files
committed
add option for slides
1 parent c369fde commit 0cca4f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pavement.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
('all','a','rebuild everything'),
4242
('outputdir=', 'o', 'output static files here'),
4343
('masterurl=', 'u', 'override the default master url'),
44-
('masterapp=', 'p', 'override the default master app')
44+
('masterapp=', 'p', 'override the default master app'),
45+
('slides','s','Use heiroglyph to build slides')
4546
])
4647
def build(options):
4748
if 'all' in options.build:
@@ -57,6 +58,8 @@ def build(options):
5758
if 'masterapp' in options.build:
5859
options.build.template_args['appname'] = options.build.masterapp
5960

61+
if 'slides' in options.build:
62+
options.sphinx.builder = 'slides'
6063
print 'Building into ', options.build.outdir
6164
paverutils.run_sphinx(options,'build')
6265

@@ -70,7 +73,8 @@ def setup_github_pages(options):
7073
os.chdir(options.build.builddir)
7174
sh("git init")
7275
sh("git remote add origin %s " % repo)
73-
sh("git checkout -b gh-pages")
76+
sh("git branch gh-pages")
77+
sh("git checkout gh-pages") # need git 1.8+ to do git checkout -b gh-pages
7478
sh("touch .nojekyll")
7579
sh("git add .nojekyll")
7680
sh("git commit -m 'Create repo and gh-pages branch'")

0 commit comments

Comments
 (0)