sphinx
sphinx copied to clipboard
exception: cannot import name 'l_' from 'sphinx.locale'
Describe the bug
I get the exception: cannot import name 'l_' from 'sphinx.locale' message when i try to build sphinx auto api for a .Net project. I have the docfx utility setup and it is creating the html for the documentation but when i wire in the sphinx auto api i get the error message above. Is this still supported for .NET? Here's what my conf.py looks like: project = 'cstutorial' copyright = '2022, dgb' author = 'dgb'
-- General configuration ---------------------------------------------------
https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [ 'sphinxcontrib.dotnetdomain', 'autoapi.extension', ]
templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
autoapi_type = 'dotnet' autoapi_dirs = ['../csharp-tutorial']
-- Options for HTML output -------------------------------------------------
https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'alabaster' html_static_path = ['_static']
Thanks - Damon
How to Reproduce
$ git clone https://github.com/.../some_project
$ cd some_project
$ pip install -r requirements.txt
$ cd docs
$ make html SPHINXOPTS="-D language=de"
$ # open _build/html/index and see bla bla
run: sphinx-build -b html . _build
Expected behavior
I expected the docfx documentation to be triggered and build a set of html files for the api
Your project
repository is here: [email protected]:damonbranch9/CSTest.git
Screenshots
No response
OS
Windows 10
Python version
3.9.6
Sphinx version
5.1.1
Sphinx extensions
No response
Extra tools
No response
Additional context
No response