Re: [sphinx-users] how to control maximum displayed width for github.io

2020-01-02 Thread Komiya Takeshi
It seems bootstrap theme also restricts its width to 1170px. So you need to override (or add new media) to widen the screen. @media (min-width: 1200px) bootstrap.min.css:11 .container { width: 1170px; } Thanks, Takeshi KOMIYA 2020年1月3日(金) 6:05 Mark Rivers : > Hi Takeshi, > > Thanks very muc

Re: [sphinx-users] how to control maximum displayed width for github.io

2020-01-02 Thread Mark Rivers
Hi Libor, The docs should be the same. The GitHub pages are built from a Travis job using the docs in the Github repository https://github.com/areaDetector/areaDetector. My local clone of that repository is up-to-date. When I run "make" in my local repository I think I should get identical

Re: [sphinx-users] how to control maximum displayed width for github.io

2020-01-02 Thread Mark Rivers
Hi Takeshi, Thanks very much, that worked. When I set that to 1200 the page on github.io is wider (I think it is actually 1170 not 1200). However, if I try to further increase the body_max_width to 1600 it does not get any wider, it is still 1170. Is there some other setting that affects tha

Re: [sphinx-users] Container for both body and structural elements (sections)

2020-01-02 Thread Komiya Takeshi
Hi, Unfortunately, no such directive is not provided as built-in. AFAIK, you need to write own directive for that purpose. You can do it with `match_titles=True` option for nested_parse(). Thanks, Takeshi KOMIYA 2020年1月2日(木) 2:16 Libor Jelínek : > > I'm looking at container:: directive. It does

Re: [sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-02 Thread Komiya Takeshi
Do you want to know how to make a subclass of math nodes? It's simple knowledge of python. You can do it like following: from docutils.nodes import math class plotly_elements(math): pass That's all. If you'd like to know about that behavior, unfortunately there are no document

Re: [sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-02 Thread moritz . beber
Hello, On Thu, 2020-01-02 at 23:04 +0900, Komiya Takeshi wrote: > mathjax will be loaded only when document contains any math elements. > How about make plotly objects subclasses of math node? Then mathjax > extension will recognize them as math elements. Do you have any pointers (documentation l

Re: [sphinx-users] Re: Is it possible to force inclusion of MathJax?

2020-01-02 Thread moritz . beber
Hi Stefano, That's already the case but MathJax is not loaded unless there is a math object somewhere in the documents. Cheers, Moritz On Thu, 2020-01-02 at 05:49 -0800, Stefano David wrote: > Hi, > > On Wednesday, 1 January 2020 13:32:11 UTC+1, Moritz Beber wrote: > > This is somewhat related

Re: [sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-02 Thread Komiya Takeshi
Hi, mathjax will be loaded only when document contains any math elements. How about make plotly objects subclasses of math node? Then mathjax extension will recognize them as math elements. As a workaround, you can modify "has_equations" attribute of math domain. But I don't think not a good way

[sphinx-users] Re: Is it possible to force inclusion of MathJax?

2020-01-02 Thread Stefano David
Hi, On Wednesday, 1 January 2020 13:32:11 UTC+1, Moritz Beber wrote: > > This is somewhat related to issue > https://github.com/sphinx-doc/sphinx/issues/5497. I have a plotly figure > that includes some math and only renders correctly when MathJax is present. > You can see what I mean in this n

Re: [sphinx-users] Re: Container for both body and structural elements (sections)

2020-01-02 Thread Libor Jelinek
Can administrator ban above user ""? It's obviously a spam. st 1. 1. 2020 v 20:05 odesílatel ฉัตรชัย กํามา napsal: > เมื่อ วันพฤหัสบดีที่ 2 มกราคม ค.ศ. 2020 0 นาฬิกา 16 นาที 10 วินาที UTC+7, > Libor Jelínek เขียนว่า: > > I'm looking at container:: directive. It does almost what I want - wraps >