I was trying not to be utterly useless, I spent about an hour looking at contrib repos and other extensions nicola_fm, do you rememberwhat it may have been called?
[02sphinx] 07tk0miya 03ae3b761 - Add testcase for pycode interface
[02sphinx] 07tk0miya 0357667b5 - Add testcase for oneliner
[02sphinx] 07tk0miya 03b1f8042 - Add testcase for sphinx.util.docstrings
[02sphinx] ... and 4 more commits.
Jugurtha joined the channel
micah_chatt joined the channel
micah_chatt has quit
micah_chatt joined the channel
Blendify is now known as Blendify|afk
micah_chatt has quit
micah_chatt joined the channel
micah_chatt has quit
micah_chatt joined the channel
micah_chatt has quit
micah_chatt joined the channel
micah_chatt has quit
micah_chatt joined the channel
micah_chatt has quit
bmbouter joined the channel
bmbouter
isn't there a thing in Sphinx that allows me to run code and take the result and have that be the content for the docs
as a way to generate examples from actual code instead of hard coding them for example
begriffs joined the channel
micah_chatt joined the channel
Blendify|afk has quit
micah_chatt_ joined the channel
micah_chatt has quit
micah_chatt_ is now known as micah_chatt
sartan
Last day or so I was struggling to do the same, bmbouter, ended up writing my own extension
i might release it when I clean it up and complete the features
bmbouter
sartan: cool ty
sartan
Some examples that nicola_fm pointed at me was autorun, py_directive
I checked out sphinx-autorun, it had a weird parser that was kind of tied to docstring constructs
you might find some luck with the doctest module as well depending on your requirements
bmbouter: do you have an example of what you would like to input and what you would like to see as output?
i'm writing a super feature rich 'execute code' for internal usage right now, can cater to your requirements as well
micah_chatt has quit
micah_chatt joined the channel
micah_chatt has quit
micah_chatt joined the channel
bmbouter
sartan: it's mostly around demonstrating API responses. our docs have a live API available so we can def run things against it and use the response as output
I've got an execute_code directive that will accept python code to highlight, will execute it, and render(and highlight) results. Can also load from a filename -- did that so I can separately unit test api samples
bmbouter
sartan: that looks really legit but I can't try it right now
especially having them outside of the docstrings is nice
sartan: you going to publish an alpha on PyPI?
sartan
Yeah, I think so... I found all the other alternatives pretty lacking
no offense to anybody who wrote any of them
what do you mean by 'having hte outside of the docstrings' ?
micah_chatt has quit
micah_chatt joined the channel
Blendify has quit
micah_chatt has quit
micah_chatt_ joined the channel
micah_chatt joined the channel
micah_chatt has quit
micah_chatt_ has quit
begriffs joined the channel
begriffs
Anyone know if there's a way in sphinx with the RTD theme to have the menus in the toctree all start completely collapsed, showing only the :caption: of each item?