का उपयोग कर बनाने के लिए मैं इस तरह के कोड है:buildout कैसे कॉन्फ़िगर करें मेरी <strong>buildout.cfg</strong> फ़ाइल में स्फिंक्स प्रलेखन bin/sphinxbuilder
parts =
...
sphinxbuilder
अगले एक ही फाइल में:
eggs=
...
jinja2
markupsafe
sphinx
और फिर, फ़ाइल के अंत में:
[sphinxbuilder]
recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/docs-src
build = ${buildout:directory}/docs
मैं करता हूं:
bin/buildout
जो उत्पादन देता है (सामान्य रूप में: ठीक है):
Updating sphinxbuilder.
collective.recipe.sphinxbuilder: writing MAKEFILE..
collective.recipe.sphinxbuilder: writing BATCHFILE..
collective.recipe.sphinxbuilder: writing custom sphinx-builder script..
अंडे फ़ोल्डर में मैं Sphinx
ईईजी की है।
buildout
के बाद, परियोजना निर्देशिका के तहत मेरे पास एक नया कैटलॉग है: docs
।
bin/sphinx-quickstart
और root path for the documentation
के रूप में मैं docs
सेट तो मैं docs/conf.py
और टिप्पणी हटाएं
sys.path.insert(0, os.path.abspath('.'))
मैं आदेश bin/sphinxbuilder
चलाने को संपादित करने और त्रुटि मिलती है:
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.
तो मैं आदेश चला
मुख्य समस्याओं: (1) कैसे स्फिंक्स buildout के साथ स्वत: काम कर पाने के लिए? (2) कैसे .rst फाइलों में मॉड्यूल (ऐप्स) परियोजना के लिए सही रास्ते स्थापित करने के लिए? (3) कहाँ conf.py
फ़ाइल डाल करने के लिए?
आप विंडोज पर काम कर रहे हैं? वहाँ जो (लाइन 146 sphinxbuilder/__ init__.py में) जो मुझे बाहर का निर्माण करने से रोकता है मेरे लिए एक त्रुटि का कारण बनता है 0.8.2 py27 collective.recipe.sphinxbuilder अंडे में एक बग है। मैं अभी भी अन्य लिपियों का उपयोग करने में सक्षम हूँ, लेकिन का उपयोग कर "भागों = sphinxbuilder" उनके डॉक्स में के रूप में सही ढंग से –
नहीं है, काम नहीं करता है लिनक्स पर। धन्यवाद। –