-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make docs only for the first level #16
Comments
Could you please elaborate on what you are trying to achieve @Moshikol and what is not working as expected? Could you include instructions on how to reproduce the problem? |
I have tried to make a docx file from Sphinx, the docx file came out only with the first level of data. |
Thank you @Moshikol. Could you give a pointer to the doc directory you mention, or otherwise perhaps give an example of how the files are laid out? |
Thanks for the example @Moshikol. I've reproduced the problem see branch https://github.com/mherkazandjian/docxsphinx/tree/hb/feature/autodoc3 It seems that the docx builder is not able to handle the autodoc directive properly. (Also when the autodoc directive is placed at a higher level, so it is not just a problem for the third level.) Not sure how much work it is to improve this though. |
Ok so what do we need to do to solve this issue? |
Above branch now will include the module information, but not in the right style (so it is ugly and useless). I don't know how these styles are handled, let me have a look. |
The indentation is correct now, now the styles |
@Moshikol, would you be willing to try branch hb/feature/autodoc3? The automodule directive should work now, but there are probably cases that I have not tested. (In general we do not have a full test suite yet.) If you try it, could you also indicate how the style can be improved? It is similar to the html output, but not (yet) as pretty. |
Perhaps the field_list should be a table, then the parameters, returns and return types would align properly |
Great now it working Thanks. but I have some styling comments
|
Thanks for showing interest in our little project @Moshikol. We started it mainly to scratch our own itch, as in we had to produce Word documents and there wasn't a good way to do so automatically. The project has grown to be quite useful already, but many sphinx/rst features are not yet implemented (or not well enough). The next weeks are a bit busy and chaotic, but I'll try to work on it a bit more. This is a side project for us, but we're proud that it works. Improving the class/function signature shouldn't be hard. (Or feel free to fork and try yourself.) The formatting is quite simple by default. However it is possible to provide an empty docx document as template that has the styles the way you want (similar as with html). I'm not sure we have documented that properly though. For this particular case of autodoc it would require using styles specific for these 'description lists', which is currently not done. Also, we can make it a bit prettier by default. |
I have noticed another BUG |
The hb/feature/autodoc3 is gone, but the hb/feature/autodoc now exists. See also #20. It should look a bit better. But as you can see, not much time to work on it.. |
the make docx function making a word document only with the first level of tree
word:
html:
The text was updated successfully, but these errors were encountered: