-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when internationalizing documentation using sphinx and nbsphinx #727
Comments
Thanks for reporting this! I have never used Sphinx internationalization myself, but I remember an issue a few years ago (#154) which seems to have been solved with #156. After that, I haven't heard about any problems, but maybe nobody has used it since then? Anyway, I tried to reproduce, but the dependencies of the example project made it too cumbersome for me. Can you please provide a minimal reproducible example? |
@mgeier |
I don't think we should bother the Sphinx team at this point, I have the feeling that we can solve this on the If you help me reproduce the problem, I can try to find the root cause and hopefully fix it. |
In case it helps, sphinx "marks" translated strings with What I would not know how to handle are the different types of cells allowed. It is clear they will no longer be json, but I don't know if when using gettext things get "translated" to rst (in which case always falling back to rst as is done now should never be an issue) or if that depends on the type of cell |
Describe the bug
When attempting to internationalize Sphinx documentation that contains ipynb files using the
make -e SPHINXOPTS="-D language='de'" html
command, the following error occurs:How to Reproduce
git clone https://github.com/hwchase17/langchain.git
cd langchain/docs
locale_dirs = ['locale/'] # path is example but recommended.
make gettext
sphinx-intl update -p _build/gettext -l de
make -e SPHINXOPTS="-D language='de'" html
Environment Information
Sphinx extensions
The text was updated successfully, but these errors were encountered: