[sphinx-users] Re: Getting generated HTML for a node and its children

2016-08-11 Thread Komiya Takeshi
Hi, How about sphinx.builders.html.StandaloneHTMLBuilder.render_partial()? It will generate HTML for specific node and its children. Thanks, Takeshi KOMIYA 2016年8月10日水曜日 8時48分41秒 UTC+9 Brad Miller: > > Hi, > > I've written a custom directive, which may contain other directives. All > is being

[sphinx-users] Re: Is there any way to format a Sphinx reference?

2016-08-11 Thread Komiya Takeshi
How about this? li .std-ref { font-style: italic; } Or you can use container directive to specify a particular block .. container:: decorated * :ref:`hello` * world And then, you can decorate the hyperlink using CSS: .decorated .std-ref { font-style: italic; } I think there is no

[sphinx-users] Re: overriding without changing templates?

2016-08-11 Thread Komiya Takeshi
Hi, Unfortunately, there is no way to replace doctype. Because sphinx does not support HTML5. At this moment, using HTMl5 themes (ex. sphinx-bootstrap-theme) is a simple way to do that. Thanks, Takeshi KOMIYA 2016年8月12日金曜日 1時13分32秒 UTC+9 Jason S: > > Is there a way to override to without chan

[sphinx-users] Re: logo problem with alabaster theme

2016-08-11 Thread Komiya Takeshi
Hi, Hmm... it might be a bug of alabaster theme. The configuration is ignored in my environment too. http://alabaster.readthedocs.io/en/latest/customization.html BTW, html_logo works fine for me. http://www.sphinx-doc.org/en/stable/config.html#confval-html_logo Please use it instead. Thanks, Ta

Re: [sphinx-users] Re: Figure caption problem with numfig

2016-08-11 Thread Komiya Takeshi
Since Sphinx-1.3, Sphinx provides numfig feature as a built-in. So no extensions are needed now. It will go well if you remove the sphinx-numfig extension. Thanks, Takeshi KOMIYA 2016年8月12日金曜日 12時25分05秒 UTC+9 Warren Block: > > On Thu, 11 Aug 2016, Komiya Takeshi wrote: > > > Hi, > > Do you use

Re: [sphinx-users] Re: Figure caption problem with numfig

2016-08-11 Thread Warren Block
On Thu, 11 Aug 2016, Komiya Takeshi wrote: Hi, Do you use sphinxtr/numfig.py? It appends "Figure n:" automatically. https://github.com/jterrace/sphinxtr/blob/master/extensions/numfig.py#L124 Please tell me what extensions you are using. The port is from here: https://bitbucket.org/arjones6/sp

Re: [sphinx-users] Re: Figure caption problem with numfig

2016-08-11 Thread Komiya Takeshi
Hi, Do you use sphinxtr/numfig.py? It appends "Figure n:" automatically. https://github.com/jterrace/sphinxtr/blob/master/extensions/numfig.py#L124 Please tell me what extensions you are using. Thanks, Takeshi KOMIYA 2016年8月12日金曜日 5時27分45秒 UTC+9 Warren Block: > > On Thu, 11 Aug 2016, Peter Burd

[sphinx-users] Re: Install 1.4.5 but still seem to be on 1.4

2016-08-11 Thread Barbara Snyder
OK it looks like there was a problem with my path, which I have resolved. Now I'm seeing a different error, but I can address that elsewhere. > On Aug 11, 2016, at 3:48 PM, Barbara Snyder wrote: > > I am trying to install Sphinx 1.4.5, primarily because a fix I requested > (https://github.co

[sphinx-users] Install 1.4.5 but still seem to be on 1.4

2016-08-11 Thread Barbara Snyder
I am trying to install Sphinx 1.4.5, primarily because a fix I requested (https://github.com/sphinx-doc/sphinx/pull/2605) was added in 1.4.3. I ran the recommended command: pip install -U Sphinx but when I check what version I'm running, it still says 1.4, and I'm still seeing the error that

Re: [sphinx-users] genindex in latexpdf

2016-08-11 Thread Peter Burdine
That is exactly how I handle it as well: .. only:: html - Indexes - * :ref:`genindex` * :ref:`search` On Wednesday, August 10, 2016 at 5:53:14 PM UTC-7, Paolo Cavallini wrote: > > Il 28/07/2016 12:38, Paolo Cavallini ha scritto: > > > Issue found (

Re: [sphinx-users] Re: Figure caption problem with numfig

2016-08-11 Thread Warren Block
On Thu, 11 Aug 2016, Peter Burdine wrote: Did you define (or un-define) the numfig_format in your conf.py? numfig_format = {'figure': 'Figure %s',                  'table': 'Table %s',                  'code-block': 'Code %s',                 } No, I tried this but these were all still added,

[sphinx-users] logo problem with alabaster theme

2016-08-11 Thread Ryan Krauss
I cannot seem to get my logo to show up using the alabaster theme. I have a logo called logo.png in _static. I have the following in my con.py: html_theme = 'alabaster' html_theme_options = { 'logo': 'logo.png', \ } Is there anything else I need to do? Thanks, Ryan -- You received this

[sphinx-users] overriding without changing templates?

2016-08-11 Thread Jason S
Is there a way to override to without changing the templates? I am trying to work around an issue with KaTeX https://github.com/Khan/KaTeX/issues/517 and the easy fix is to use HTML5 (), but I would like to reserve the option of easiliy changing templates without having to override them each

[sphinx-users] Re: Figure caption problem with numfig

2016-08-11 Thread Peter Burdine
Did you define (or un-define) the numfig_format in your conf.py? numfig_format = {'figure': 'Figure %s', 'table': 'Table %s', 'code-block': 'Code %s', } On Wednesday, August 10, 2016 at 5:53:14 PM UTC-7, Warren Block wrote: > > Trying to figure

Re: [sphinx-users] Re: Advice needed on automatically generated documentation

2016-08-11 Thread Luc Saffre
If you do "from atelier.rstgen import table" and then add 'table' to your jinja context, then you should be able to do it as follows:: .. jinja:: messages {% table(['Message Code', 'Message name'], stc.items()) %} http://atelier.lino-framework.org/api/atelier.rstgen.html (I am the author

[sphinx-users] Re: Advice needed on automatically generated documentation

2016-08-11 Thread Markus
Thanks to all who replied. I'm now using the sphinx-jinja extension and it works pretty well. I have no trouble using JSON files as input. At first I had a little trouble getting the whitespace generated correctly, but this was fixed by correctly using -%} and {%- when generating tables, and ma