NtsDK
NtsDK

Reputation: 971

How to customize Sphinx doc images folder?

I'm working with Sphinx doc and I want to translate my documentation to other languages. I want to make images language dependent so screenshots in English will be in one folder and screenshots in German in other.

Currently Sphinx takes all images from /images folder. As I see in other stackoverflow questions it is impossible to modify image directive path with variable substitutions.

Is it possible to change default images folder by some CLI option or other way?

UPD. I use Sphinx 1.3.1.

Upvotes: 1

Views: 1783

Answers (1)

NtsDK
NtsDK

Reputation: 971

I asked this question in Sphinx github. Takeshi Komiya gave answer which solved my problem. He suggests to use figure_language_filename option. I tried and it works. I can flexibly set path to image folders. Note: figure_language_filename option is available since Sphinx 1.4.

Upvotes: 3

Related Questions