In my buildout.cfg file i have such code:
parts =
...
sphinxbuilder
next in same file:
eggs=
...
jinja2
markupsafe
sphinx
and then, at the end of file:
[sphinxbuilder]
recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/docs-src
build = ${buildout:directory}/docs
I do:
bin/buildout
which gives output (in general: OK):
Updating sphinxbuilder.
collective.recipe.sphinxbuilder: writing MAKEFILE..
collective.recipe.sphinxbuilder: writing BATCHFILE..
collective.recipe.sphinxbuilder: writing custom sphinx-builder script..
In eggs folder I have Sphinx
eeg.
After buildout
, under project directory I have one, new catalog: docs
.
then I run command:
bin/sphinx-quickstart
and as root path for the documentation
I set docs
then I edit docs/conf.py
and uncomment
sys.path.insert(0, os.path.abspath('.'))
I run command bin/sphinxbuilder
and get error:
Makefile:12: *** The 'sphinx-build' command was not found.
Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the 'sphinx-build' executable.
Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/. Stop.
Main problems:
(1) How to get sphinx working automaticly with buildout?
(2) How to set right path to project modules (apps) in .rst files?
(3) Where to put conf.py
file?