Skip to content Skip to sidebar Skip to footer

Use Sphinx To Generate Standalone Html Files

I'm quite new to Sphinx and I'm trying to create the docs for my application. It would be nice to generate a 'standalone' HTML file for each topic. I mean: Sphinx creates a useful

Solution 1:

The default HTML output (when using the html builder) includes a sidebar (navigation pane) for most themes, usually on the left hand side.

There are other output formats, such as HTML Help and Qt Help, with builders that produce HTML files without the sidebar. Use one of those.

The documentation for these builders says "this builder produces the same output as the standalone HTML builder...", but that is misleading IMHO. The output is not the same.

Solution 2:

This is what worked for me: https://stackoverflow.com/a/53212488/2636544, i.e. add following to conf.py:

html_theme_options = {
    # Disable showing the sidebar. Defaults to 'false''nosidebar': True,
}

Works for alabaster theme.

Post a Comment for "Use Sphinx To Generate Standalone Html Files"