[sphinx-dev] Re: How do I set tab size in code snippets?

2009-12-09 Thread Jason S
On Dec 8, 6:32 pm, Guenter Milde mi...@users.berlios.de wrote: and how do you do this in general, or for included files with a specific extension? (like '.blam' for instance) In Docutils you can do this general for source and included files with the tab-width config

[sphinx-dev] Re: How do I set tab size in code snippets?

2009-12-09 Thread Jason S
Never mind, I figured something out. In my source .rst file, I changed .. literalinclude:: tennis.espdf to .. include:: tennis.espdf :literal: :tab-width: 3 Is literalinclude a sphinx convenience directive? Because it's not mentioned in

[sphinx-dev] Re: How do I set tab size in code snippets?

2009-12-09 Thread Roberto Alsina
Jason S writes: Never mind, I figured something out. In my source .rst file, I changed .. literalinclude:: tennis.espdf to .. include:: tennis.espdf :literal: :tab-width: 3 Is literalinclude a sphinx convenience directive? Because it's not mentioned in

[sphinx-dev] Re: example for tweaking HTML styles?

2009-12-09 Thread Jason S
On Dec 8, 10:49 am, TJG tjgol...@gmail.com wrote: In your _static directory create, eg, my.css which starts with @import default.css; and which then adds or overrides as needed. Then in your conf.py add or update: html_style = 'winsys.css' you mean my.css not winsys.css... but that

Re: [sphinx-dev] Re: example for tweaking HTML styles?

2009-12-09 Thread TJG
Jason S wrote: On Dec 8, 10:49 am, TJG tjgol...@gmail.com wrote: In your _static directory create, eg, my.css which starts with @import default.css; and which then adds or overrides as needed. Then in your conf.py add or update: html_style = 'winsys.css' you mean my.css not

[sphinx-dev] Re: example for tweaking HTML styles?

2009-12-09 Thread Jason S
On Dec 9, 12:24 pm, TJG tjgol...@gmail.com wrote: HTML builds... so if you change the .css file it doesn't recognize that things have changed to force a rebuild. I know; I've just got a rebuild.cmd which I hit. My doc sets aren't big enough for this to be a problem. YMMV, of course.

Re: [sphinx-dev] Re: example for tweaking HTML styles?

2009-12-09 Thread Tim Golden
Jason S wrote: On Dec 9, 12:24 pm, TJG tjgol...@gmail.com wrote: HTML builds... so if you change the .css file it doesn't recognize that things have changed to force a rebuild. I know; I've just got a rebuild.cmd which I hit. My doc sets aren't big enough for this to be a problem. YMMV, of

[sphinx-dev] Re: example for tweaking HTML styles?

2009-12-09 Thread Jason S
On Dec 9, 2:55 pm, Tim Golden tjgol...@gmail.com wrote: rebuild.cmd build.py -a -b html . .\_build pause /rebuild.cmd Oh, in other worse you are using the -a argument to force writing all output files. That works, I only have a handful of source files. I didn't know about that one. Thanks!

[sphinx-dev] Re: literalinclude vs. include

2009-12-09 Thread Guenter Milde
On 2009-12-09, Jason S wrote: On Dec 9, 11:14 am, Jason S jmsa...@gmail.com wrote: Never mind, I figured something out. In my source .rst file, I changed .. literalinclude:: tennis.espdf to .. include:: tennis.espdf    :literal:    :tab-width: 3 Argh! include :literal: is perfect,

Re: [sphinx-dev] Re: Autoreplacing with link to local html file

2009-12-09 Thread Nathan Huesken
On Wed, Dec 09, 2009 at 09:23:10PM +, Guenter Milde wrote: On 2009-12-08, Nathan Huesken wrote: Hi, I want to replace every occurence of |local| with a hyperlink to a local file (.../local.html). But with .. |local| replace:: __file://../local.html sphinx complains about