Skip to content

Zipped HTML includes unnecessary files #9068

@MikhailRyazanov

Description

@MikhailRyazanov

Details

Expected Result

We are building online HTML documentation + additional downloadable PDF and zipped HTML. The project uses many plot directives, and in Sphinx's conf.py we specify plot_formats = ['svg', 'png', 'pdf'] such that SVG images can be used for HTML builds and PDF images for the PDF build (PNG images are saved just in case, they shouldn't harm).

When I do sphinx-build -b singlehtml locally, only the necessary SVG images are copied to the output directory (into its _images subdirectory), as expected, producing a clean result. So I expect that the ZIP archive for “Zipped HTML” built by Read the Docs should have only the index.html file and the _images and _static subdirectories with only the necessary files.

Actual Result

The ZIP archive generated on Read the Docs (htmlzip in .readthedocs.yml; -b readthedocssinglehtmllocalmedia in the log file) contains all the generated image files, including absolutely unneedeed PNG and PDF and even .py files related to them, scattered everywhere, including the root (where only index.html should be) and copies of the subdirectories of our doc source tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy