How to remove the cause of an unexpected indentation warning when generating code documentation?

Just add a blank line after the summary description of the method, before the description of the parameters: “”” Gtk.EventBox::button-release-event signal handler. :param widget: The clicked widget (The Gtk.EventBox). :param event: Gdk.EventButton object with information regarding the event. :param user_data: The Gtk.LinkButton that should be opened when the Gtk.EventBox is clicked. :return: None “”” Here … Read more

How do I have multiple versions of my doc with sphinx?

You could just use Read The Docs to host your documentation for you. They automatically handle multiple versions with a dropdown: https://docs.readthedocs.io/en/latest/index.html If you’d like to host your own documentation on GitHub Pages or some other web server, I made a Sphinx extension that does what you’re looking for: https://github.com/sphinx-contrib/sphinxcontrib-versioning

How to make an internal link to a heading in sphinx restructuredtext without creating arbitrary labels?

reStructuredText supports implicit hyperlink targets. From the reStructuredText quick reference: Section titles, footnotes, and citations automatically generate hyperlink targets (the title text or footnote/citation label is used as the hyperlink name). So the following text (lifted from the reStructuredText quick reference, spelling mistakes and all): Titles are targets, too ======================= Implict references, like `Titles are … Read more

Which files should I tell my VCS to ignore when using Sphinx for documentation? [closed]

If you take a look at the contents of Makefile you’ll see something as follows: BUILDDIR = build … clean: -rm -rf $(BUILDDIR)/* This means that make clean just removes the build directory so, with regard to version control, ignoring the contents of the build directory should be enough as you already suspected.

Sphinx, reStructuredText show/hide code snippets

You don’t need a custom theme. Use the built-in directive container that allows you to add custom css-classes to blocks and override the existsting theme to add some javascript to add the show/hide-functionality. This is _templates/page.html: {% extends “!page.html” %} {% block footer %} <script type=”text/javascript”> $(document).ready(function() { $(“.toggle > *”).hide(); $(“.toggle .header”).show(); $(“.toggle .header”).click(function() … Read more

Relative imports require the ‘package’ argument

I came to this question via Google, so I’ll answer what helped me (not directly related to the question). I use importlib to dynamically import sub-packages given by a string. import importlib module_name=”subpackage.i.import” special_module = importlib.import_module(module_name, package=None) This simply has to be adjusted to import importlib module_name=”subpackage.i.import” special_module = importlib.import_module(module_name, package=”my_current_pkg”)

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