Created
March 26, 2014 13:45
-
-
Save iktakahiro/9783466 to your computer and use it in GitHub Desktop.
sphinx-quickstartをexpectで実行 ref: http://qiita.com/iktakahiro/items/8c85b9574f341c55acf6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./sphinx-quickstart.expect hoge_dir project_hoge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
set base_dir [lindex $argv 0] | |
set project_name [lindex $argv 1] | |
set timeout 3 | |
spawn sphinx-quickstart | |
expect "Root path for the documentation" | |
send "$base_dir\n" | |
expect "Separate source and build directories" | |
send "y\n" | |
expect "Name prefix for templates and static dir" | |
send \n | |
expect "Project name" | |
send "$project_name\n" | |
expect "Author name(s)" | |
send "ALBERT Inc.\n" | |
expect "Project version" | |
send "1.0.0\n" | |
expect "Project release" | |
send \n | |
expect "Source file suffix" | |
send \n | |
expect "Name of your master document (without suffix)" | |
send \n | |
expect "Do you want to use the epub builder" | |
send "y\n" | |
expect "autodoc: automatically insert docstrings from modules" | |
send "y\n" | |
expect "doctest: automatically test code snippets in doctest blocks" | |
send "y\n" | |
expect "intersphinx: link between Sphinx documentation of different projects" | |
send "y\n" | |
expect "todo: write \"todo\" entries that can be shown or hidden on build" | |
send "y\n" | |
expect "coverage: checks for documentation coverage (y/N)" | |
send "y\n" | |
expect "pngmath: include math, rendered as PNG images" | |
send "y\n" | |
expect "mathjax: include math, rendered in the browser by MathJax" | |
send "y\n" | |
expect "ifconfig: conditional inclusion of content based on config values" | |
send "y\n" | |
expect "viewcode: include links to the source code of documented Python objects" | |
send "y\n" | |
expect "Create Makefile?" | |
send "y\n" | |
expect "Create Windows command file?" | |
send "n\n" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment