Glen,<br><br>We use Sphinx in the Pympler project. &nbsp;The file structure under the doc directory is like the one you show above. &nbsp;The key files to get right are &nbsp;conf.py and &nbsp;index.rst in the doc/source directory. &nbsp;For examples, see<br>
<br>&lt;<a href="http://code.google.com/p/pympler/source/browse/trunk/doc/source/conf.py">http://code.google.com/p/pympler/source/browse/trunk/doc/source/conf.py</a>&gt;<br>&lt;<a href="http://code.google.com/p/pympler/source/browse/trunk/doc/source/index.rst">http://code.google.com/p/pympler/source/browse/trunk/doc/source/index.rst</a>&gt;<div>
<br>The file or module names mentioned inside &nbsp;index.rst have no extensions: all names refer to .rst files.<br><br>Hope this helps,<br><br>/Jean Brouwers<br><br>PS) Just FYI, we made 3 changes to run Sphinx in a pympler-dev environment.<div>
<br></div><div>- The Makefile is not used and has been removed.</div><div><br></div><div>- Sphinx is run using the &nbsp;sphinx.py script in the tools directory</div><div>&lt;<a href="http://code.google.com/p/pympler/source/browse/trunk/tools/">http://code.google.com/p/pympler/source/browse/trunk/tools/</a>&gt;.<br>
<br>- To build the docs, etc. we use the &nbsp;run.py script in the top level directory<br>&lt;<a href="http://code.google.com/p/pympler/source/browse/#svn/trunk">http://code.google.com/p/pympler/source/browse/#svn/trunk</a>&gt;, see&nbsp;the &nbsp;run_sphinx function in there. &nbsp;Options --doctest, --html, --latex and --linkcheck end up running Sphinx.<br>
<br><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">% ./run.py -h<br>Usage: run.py &lt;options&gt; [&lt;args&gt; ...]<br><br> &nbsp;e.g. run.py --clean<br> &nbsp; &nbsp; &nbsp; run.py --dist [--upload] [gztar] [zip]<br>
 &nbsp; &nbsp; &nbsp; run.py --doctest<br> &nbsp; &nbsp; &nbsp; run.py --html [--keep]<br> &nbsp; &nbsp; &nbsp; run.py --latex [--paper=letter|a4]<br> &nbsp; &nbsp; &nbsp; run.py --linkcheck<br> &nbsp; &nbsp; &nbsp; run.py --pychecker [--OKd] [pympler | pympler/module] ...<br> &nbsp; &nbsp; &nbsp; run.py --test [test | test/module | test/module/test_suite.py ...]<br>
<br>Options:<br> &nbsp;-h, --help &nbsp; &nbsp; &nbsp; &nbsp; show this help message and exit<br> &nbsp;-a, --all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;run all tests and create all documentation<br> &nbsp;-c, --clean &nbsp; &nbsp; &nbsp; &nbsp;remove bytecode files from source and test directories<br> &nbsp;-d, --dist &nbsp; &nbsp; &nbsp; &nbsp; create the distributions<br>
 &nbsp;-D, --doctest &nbsp; &nbsp; &nbsp;run the documentation tests<br> &nbsp;-H, --html &nbsp; &nbsp; &nbsp; &nbsp; create the HTML documentation<br> &nbsp;-k, --keep &nbsp; &nbsp; &nbsp; &nbsp; keep documentation in the doc directory<br> &nbsp;-L, --latex &nbsp; &nbsp; &nbsp; &nbsp;create the LaTeX (PDF) documentation<br>
 &nbsp;--paper=PAPER &nbsp; &nbsp; &nbsp;select LaTeX paper size (letter)<br> &nbsp;-i, --linkcheck &nbsp; &nbsp;check the documentation links<br> &nbsp;-p, --pychecker &nbsp; &nbsp;run static code analyzer PyChecker<br> &nbsp;--OKd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include PyChecker warnings OKd in source<br>
 &nbsp;-t, --test &nbsp; &nbsp; &nbsp; &nbsp; run all or specific unit tests<br> &nbsp;--upload &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; upload distributions to the Python Cheese Shop<br> &nbsp;-V V, --verbose=V &nbsp;set verbosity level (1)<br></span><br><br><br>On Wed, Feb 11, 2009 at 7:07 PM, Glen Jarvis &lt;<a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a>&gt; wrote:<br>
&gt; I&#39;m very confused about something so simple.<br>&gt; I&#39;m learning to use Sphinx. I want to make certain I use the reStructured<br>&gt; Text properly in my project documentation, so I thought I&#39;d install Sphinx<br>
&gt; and actually look at my documentation to verify it looks they way I thin it<br>&gt; should.<br>&gt; I can&#39;t get my Sphinx project to build the files I&#39;ve added. I&#39;m certain<br>&gt; it&#39;s user error, but I can&#39;t find it. I&#39;ve read the documentation several<br>
&gt; times -- enough to be completely confused at something simple.<br>&gt; My core confusion comes from how I have structured my Django project. My<br>&gt; project has a similar structure to this:<br>&gt; -- myproject<br>
&gt; + settings.py and other misc files<br>&gt; +---- grants<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;+---- models.py<br>&gt; I&#39;ve gotten a good part of the project working, but I can&#39;t get the<br>&gt; documentation piece to work.<br>&gt; I&#39;ve used sphinx-quickstart, and chose a structure like this:<br>
&gt; -- myproject<br>&gt; + settings.py and other misc files<br>&gt; +---- grants<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;+---- models.py<br>&gt; +---- docs<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;+---- build<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;|---- Makefile<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;+ source<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;+---- models.py<br>
&gt; &nbsp;&nbsp; &nbsp; &nbsp;+---- index.rst<br>&gt; &nbsp;&nbsp; &nbsp; &nbsp;+---- conf.py<br>&gt; But, I&#39;m confused. It seems that sphinx-quickstart needs files to be located<br>&gt; in the docs/source directory. I can rebuild it so that this is the case, but<br>
&gt; it&#39;s some work to rearrange my subversion&nbsp;repository. Before I do something<br>&gt; so extreme, I&#39;m trying to test my understanding.&nbsp;<br>&gt; Currently, my index.rst file looks similar to this:<br>&gt; Contents:<br>
&gt; .. toctree::<br>&gt; &nbsp;&nbsp; &nbsp;:maxdepth: 2<br>&gt; &nbsp;&nbsp; &nbsp;models.py<br>&gt;<br>&gt;<br>&gt; I&#39;ve copied certain files into the source directory to see if I can generate<br>&gt; documentation. But, even then, I see the following:<br>
&gt;&gt; make html<br>&gt; Sphinx v0.5.1, building html<br>&gt; WARNING: /home/gjarvis/trunk/docs/source/index.rst:10: (WARNING/2) toctree<br>&gt; references unknown document u&#39;models.py&#39;<br>&gt; Before I tried these tests, I had created a symbolic ilnk from<br>
&gt; myproject/docs/source/models.py to myproject.grants/models.py, and that<br>&gt; seemed to generate the file... but, I&#39;ve seen results that seem<br>&gt; contradictory enough I&#39;m completely confused...<br>&gt;<br>
&gt; Can anyone point me to some clear documentation, or give me some pointers on<br>&gt; what my misunderstanding is about? Also, which of the two &#39;structures&#39; am I<br>&gt; to use with Sphinx.<br>&gt;<br>&gt; Thanks in advance for any help you can give.<br>
&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Glen<br>&gt; --<br>&gt; 415-680-3964<br>&gt; <a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a><br>&gt; <a href="http://www.glenjarvis.com">http://www.glenjarvis.com</a><br>&gt; &quot;You must be the change you wish to see in the world.&quot; -M. Gandhi<br>
&gt;<br>&gt; _______________________________________________<br>&gt; Baypiggies mailing list<br>&gt; <a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>&gt; To change your subscription options or unsubscribe:<br>
&gt; <a href="http://mail.python.org/mailman/listinfo/baypiggies">http://mail.python.org/mailman/listinfo/baypiggies</a><br>&gt;<br><br></div></div>