Did you try all of the following permutations?  I think the 4th one is correct. 
 `sphinx-build` is like your 'manual' sphinx build.  If you use `make html`, 
sphinx will execute the build according to the directions in your Makefile.  In 
a perfect world, you put the configuration options in your Makefile and then 
simply run `make html`.

make -e SPHINXOPTS="-D language='en'" -b html 
/Applications/MAMP/htdocs/sakkadentrainer/doc 
/Applications/MAMP/htdocs/sakkadentrainer/doc/_build/html/en
make -e SPHINXOPTS="-D language='en'" -b html 
/Applications/MAMP/htdocs/sakkadentrainer/doc 
/Applications/MAMP/htdocs/sakkadentrainer/doc/_build
sphinx-build -e SPHINXOPTS="-D language='en'" -b html 
/Applications/MAMP/htdocs/sakkadentrainer/doc 
/Applications/MAMP/htdocs/sakkadentrainer/doc/_build/html/en
sphinx-build -e SPHINXOPTS="-D language='en'" -b html 
/Applications/MAMP/htdocs/sakkadentrainer/doc 
/Applications/MAMP/htdocs/sakkadentrainer/doc/_build


> On Jun 19, 2018, at 2:41 PM, Beat Gurtner <[email protected]> wrote:
> 
> I'm working on a Mac and use Sphinx 1.6.3 to build a documentation for my 
> software.
> 
> 
> 
> Recently I tried the Internationalization feature, which works quite well.
> 
> But now I wanted to export the different language into different folders:
> 
> 
> 
> doc/de
> doc/en
> doc/fr
> 
> 
> According to the docs, its simple:
> 
> 
> 
> $ sphinx-build -b html sourcedir builddir
> 
> 
> http://www.sphinx-doc.org/en/master/usage/quickstart.html#running-the-build 
> <http://www.sphinx-doc.org/en/master/usage/quickstart.html#running-the-build>
> 
> So I tried this:
> 
> make -e SPHINXOPTS="-D language='en'" -b html 
> /Applications/MAMP/htdocs/sakkadentrainer/doc/ 
> /Applications/MAMP/htdocs/sakkadentrainer/doc/_build/html/en/
> 
> 
> Which gives gives me the strange error:
> 
> Error: source directory and destination directory are same.
> 
> 
> What am I doing wrong?
> 
> 
> 
> Best regards Beat
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/sphinx-users 
> <https://groups.google.com/group/sphinx-users>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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