Hi all,

I have a sphinx project with different languages (handled perfectly with 
sphinx-intl). I need only to build the html output and I have to export it.
The problem is that I have to export it as small in size as I can and here 
the deal. 

I noticed that in the html build folder the `_images` folder is copied for 
all languages. As you can image, the `_images` folder is the real problem 
for the size: to make an idea I have 3 languages and each `_images` folder 
weights 7 MB. 

This is the tree of he output html:

help/build/html/
├── en
│   ├── 2dhistogram.html
│   ├── bar.html
│   ├── basic_usage.html
│   ├── box.html
│   ├── contour.html
│   ├── from_console.html
│   ├── genindex.html
│   ├── histogram.html
│   ├── _images
│   ├── index.html
│   ├── intro.html
│   ├── objects.inv
│   ├── pie.html
│   ├── polar.html
│   ├── scatter.html
│   ├── search.html
│   ├── searchindex.js
│   ├── _sources
│   ├── _static
│   └── ternary.html
├── it
│   ├── 2dhistogram.html
│   ├── bar.html
│   ├── basic_usage.html
│   ├── box.html
│   ├── contour.html
│   ├── from_console.html
│   ├── genindex.html
│   ├── histogram.html
│   ├── _images
│   ├── index.html
│   ├── intro.html
│   ├── objects.inv
│   ├── pie.html
│   ├── polar.html
│   ├── scatter.html
│   ├── search.html
│   ├── searchindex.js
│   ├── _sources
│   ├── _static
│   └── ternary.html
└── nl
    ├── 2dhistogram.html
    ├── bar.html
    ├── basic_usage.html
    ├── box.html
    ├── contour.html
    ├── from_console.html
    ├── genindex.html
    ├── histogram.html
    ├── _images
    ├── index.html
    ├── intro.html
    ├── objects.inv
    ├── pie.html
    ├── polar.html
    ├── scatter.html
    ├── search.html
    ├── searchindex.js
    ├── _sources
    ├── _static
    └── ternary.html
Inserisci qui il codice...




and just for information, this is the tree of the input folder (all the 
images are in the `img` folder, willingly the images are **not** localized):

├── 2dhistogram.rst
├── bar.rst
├── basic_usage.rst
├── box.rst
├── conf.py
├── contour.rst
├── from_console.rst
├── histogram.rst
├── img
├── index.rst
├── intro.rst
├── pie.rst
├── polar.rst
├── scatter.rst
└── ternary.rst



One solution that comes in my mind is to have a **single** `_images` folder 
in output where all the different languages can catch the images from. This 
folder could be in the same one of the output languages for example or in 
another parent folder.

I could not find a solution by editing the conf.py and/or the Makefile.

Someone has faced the same issue or known a solution for that?

Many thanks!

Cheers

Matteo

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to