nano-: usually i just ask questions, if people find the question interesting they'll answer
Hasimir joined the channel
slick666_work joined the channel
slick666_work has quit
j12t joined the channel
j12t has quit
Hasimir joined the channel
j12t joined the channel
j12t has quit
slick666_work joined the channel
j12t joined the channel
slick666_work has quit
malinoff joined the channel
j12t has quit
malinoff has quit
malinoff joined the channel
Hasimir joined the channel
j12t joined the channel
j12t has quit
Hasimir joined the channel
slick666_work joined the channel
malinoff has quit
slick666_work has quit
kushal joined the channel
Hasimir joined the channel
stanislas has quit
stanislas joined the channel
slick666_work joined the channel
slick666_work has quit
Akien joined the channel
kennethpjdyer joined the channel
malinoff joined the channel
j12t joined the channel
treyhunner has quit
j12t has quit
treyhunner joined the channel
Akien has quit
slick666_work joined the channel
slick666_work has quit
masklinn joined the channel
masklinn_ joined the channel
masklinn has quit
masklinn_ is now known as masklinn
av_ joined the channel
ljosberinn joined the channel
kushal joined the channel
j12t joined the channel
j12t has quit
nano-
ngoldbaum: Yes, I can dig out symbols that I want to emit "autoattribute" directives for. I was hoping I could do this via a sphinx extension, so I just type ".. myconstgeneratorthingie::" in my .rst file and the extension takes constants of that script and produces autoattribute for each one. If it's not possible to depend on other extensions (autodoc in this case), then at least attribute:: with :annotation: ought to be possible to emit to ...
... produce the same thing?
oh, forgot to include paste, here is an example of how I can dig out symbols sphinx will not include automatically, http://90555e844d02d5df.paste.se/
slick666_work joined the channel
ngoldbaum: I've tried to play around with addnodes.desc* methods, if I understand addnodes.desc_addname should be used for the module, and addnodes.desc_name for the constant, but I don't get any '.' between the module and the constant, should I add that as the first character in the constant? Also, they will not be crossreferable from the rest of my documentation via `VALUE_TYPE_NONE` for example, with default_role='any'.
The rest of the documentation is extracted via autoclass directives.
Another option would be to have my build system generate a rst file containing .. autoattribute:: for each constant, but that's almost as hacky as writing such a file on my own.
slick666_work has quit
av_ has quit
kushal joined the channel
j12t joined the channel
ljosberinn joined the channel
j12t has quit
chilversc
I just can't figure out how to emit a reference from a directive
does the directive have to resolve it (if so which method), or does it emit a node and a later step links it (if so which node & arguments)
I'd like the standard handling fall back to text and emit a warning if the target does not exist
its more the values I'm interested in, so something like a json dump (trying to explore the various return types from the different sphinx methods)
I'm finding the sphinx docs quite difficult to follow once I get in to the api as they are missing all the apis around directives etc (that come from docutils)
ngoldbaum
ah, i don't think sphinx internals are documented particularly well
chilversc
and I just can't find the docutils api documenation anywhere
ngoldbaum
it's people cribbing off of other people's hacks all the way down
nano-: are you aware that sphinx can do this sort of stuff for you?
unless i'm misunderstanding what you're going for
nano-: look for sphinx.ext.autosummary
it can automatically generate API docs
nano-
It can't it will not emit for imports.
ngoldbaum
ah, then you're getting into dark and scary territory
ngoldbaum doesn't understand sphinx internals much
nano-
Well.. not really. I don't have to have sphinx know about imports. I just need to write an extension that emits arbitrary sphinx syntax that documentation generated via autoclass can refer to via `SOMECONST` when the default_role is 'any', just like it would be able to if I added a .. autoattribute:: SOMECONST
So I hope writing extensions isn't dark and scary. That doesn't make sense :)
ngoldbaum
nano-: it kind of is
you need to know sphinx and docutils internals
it's best if whatever you're trying to do is simple enough that you don't need to look at that stuff
nano-
Ok.. so then I guess a python script that preprocesses the .rst file to append the .. autoattribute:: will have to do then.