hello, I use sphinx to create the documentation for an API I’m using the http domain, it works fine in for doc written in my .rst files but not for docstrings that I get using autodoc - can someone see why?
abele_ has quit
abele joined the channel
jon_ross has quit
ok I solved my problem, I had started the directive .. http:get:: in the rst file before calling autodoc, now I have the complete .. http:get:: block in the docstring and it works
[02sphinx] 07shimizukawa <shimizukawa@gmail.com> 030a9e1d8 - fix documentation for extension development tutorial. Closes #1624. Thanks to dkeeney_fastacash.
fading joined the channel
jon_ross has quit
fading has quit
jon_ross joined the channel
jon_ross has quit
jon_ross joined the channel
jon_ross has quit
jon_ross joined the channel
jon_ross has quit
jon_ross joined the channel
jon_ross has quit
jon_ross joined the channel
jon_ross has quit
jon_ross joined the channel
jon_ross has quit
jon_ross joined the channel
jon_ross has left the channel
sohail-ahmed joined the channel
sohail-ahmed has quit
sohail-ahmed joined the channel
kushal has quit
sohail-ahmed has quit
kushal joined the channel
kushal has quit
kushal joined the channel
sohail-ahmed joined the channel
sohail-ahmed has quit
kushal
I am trying to get bengali in latexpdf output from sphix, any tips on how to handle this?
veebers joined the channel
sdough joined the channel
MVXA
is there a neat live-reload extension available for sphinx which will also update the view in the browser?
sdough
MVXA: You mean re-build when files are changed but also push the update to the browser somehow?
MVXA
yes
or instructing the browser to refresh the view from the newly generated html file
i'm growing somewat tired of the edit, make docs, f5 cycle
sdough
Have you looked for tools to run a command when watched files change?
MVXA
that wouldn't cover the browser part, would it?
sdough
You could combine that with a browser greasemonkey script that periodically refreshes.
MVXA
uhm
sdough
Pushing a refresh down to the browser sounds pretty complex.
and outside the general sphinx use case.
MVXA
oh well, it would be just a candy
sdough
Suffice to say I don't know of one, so if you didn't find one I don't know that I'd find anything either.
MVXA
okay, thanks though
the usual flow looks like writing some passages and then see how it ends up on the browser, reading it again there, fixing some typos, wording, etc. and ensure it also appeals to the eye. Easing the last step would be nice but if it can't be had what so ever … sphinx is great enough
hectorh30 joined the channel
kushal has quit
mrshu joined the channel
mrshu
hi
I have a strange sphinx docstring question
I have a link that's well beyond 72 characters that PEP8 specifies
mrshu: IIRC a line continuation can cause display whitespace discontinuities in some renderers, such as the man page one.
mrshu
sdough: hmm, ok
sdough: what do you suggest then?
sdough
I don't know if it's worth bothering about in your use case. I broke PEP8 and left the line long. I think https://pypi.python.org/pypi/sphinxcontrib-napo... might allow breaking lines without those problems?
I agree with the last line of that SO answer: "Also, PEP8 is a guide, not a law - this seems a (rare) case where it's ok to ignore it."
PEP8 itself gives "But most importantly: know when to be inconsistent -- sometimes the style guide just doesn't apply. When in doubt, use your best judgment. Look at other examples and decide what looks best. And don't hesitate to ask! "