Sphinx Autodoc skip member from docstring

You can now (as of version 0.6) use :exclude-members: to exclude specific members from the documentation: The directives supporting member documentation also have a exclude-members option that can be used to exclude single member names from documentation, if all members are to be documented. New in version 0.6. Source: http://www.sphinx-doc.org/en/stable/ext/autodoc.html In your specific case, you … Read more

Disabling individual Sphinx warning messages

Are there .rst files in your Sphinx project whose content you don’t want in the output? Use the exclude_patterns configuration variable. No output (and no warning messages) will be generated for files matching the specified patterns. See http://www.sphinx-doc.org/en/master/usage/configuration.html#confval-exclude_patterns. Are there .rst files in your Sphinx project that are not part of any toctree but whose … Read more

Sphinx: how to exclude imports in automodule?

There is no way to tell Sphinx to exclude some imports. When using autodoc, all documented modules must be cleanly importable. You might be able to work around the problem by doing some mocking. Here is an article describing the solution to a problem that seems quite similar to yours: http://blog.rtwilson.com/how-to-make-your-sphinx-documentation-compile-with-readthedocs-when-youre-using-numpy-and-scipy/. Here is a small … Read more

How to right-align columns content in reStructuredText simple tables?

Sadly I don’t think rst offers that ability… the table styling options are rather limited. That said, if you’re rendering to HTML, you could add a custom stylesheet with a css rule such as: table.right-align-right-col td:last-child { text-align: right } and then add the directive: .. rst-class:: right-align-right-col right above your table in the rst … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)