conan-io / docs

conan.io reStructuredText documentation
http://docs.conan.io
MIT License
104 stars 357 forks source link

autodoc: failed to import function 'trim_conandata' from module 'conan.tools.files.conandata' #3301

Open hwhsu1231 opened 1 year ago

hwhsu1231 commented 1 year ago

Problem Description

I tried to build the documentation of release/2.0 branch. The following commands are the demo:

git clone https://github.com/conan-io/docs.git
cd docs
git checkout release/2.0
pip install -r requirements.txt
make html

However, the error showed up:

image

Version and Platform

Logs

Click to expand logs ```cmd D:\Repo\GitHub\testing\docs>git branch develop * release/2.0 D:\Repo\GitHub\testing\docs>pip install -r requirements.txt Requirement already satisfied: sphinx==1.7.9 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 1)) (1.7.9) Requirement already satisfied: docutils<0.18 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (0.17.1) Requirement already satisfied: sphinx-sitemap>=2.1.0 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 3)) (2.5.0) Requirement already satisfied: sphinxcontrib-spelling in c:\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (4.2.1) Requirement already satisfied: sphinx-notfound-page in c:\python\python310\lib\site-packages (from -r requirements.txt (line 5)) (0.8) Requirement already satisfied: jinja2<=3.0.3 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 6)) (3.0.0) Requirement already satisfied: watchdog[watchmedo]==2.2.0 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 7)) (2.2.0) Requirement already satisfied: six>=1.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (1.16.0) Requirement already satisfied: Pygments>=2.0 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.14.0) Requirement already satisfied: snowballstemmer>=1.1 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.2.0) Requirement already satisfied: babel!=2.0,>=1.3 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.11.0) Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (0.7.12) Requirement already satisfied: imagesize in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (1.4.1) Requirement already satisfied: requests>=2.0.0 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.28.1) Requirement already satisfied: setuptools in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (59.8.0) Requirement already satisfied: packaging in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (23.0) Requirement already satisfied: sphinxcontrib-websupport in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (1.2.4) Requirement already satisfied: colorama>=0.3.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (0.4.6) Requirement already satisfied: PyYAML>=3.10 in c:\python\python310\lib\site-packages (from watchdog[watchmedo]==2.2.0->-r requirements.txt (line 7)) (6.0) Requirement already satisfied: PyEnchant>=1.6.5 in c:\python\python310\lib\site-packages (from sphinxcontrib-spelling->-r requirements.txt (line 4)) (3.2.2) Requirement already satisfied: MarkupSafe>=2.0.0rc2 in c:\python\python310\lib\site-packages (from jinja2<=3.0.3->-r requirements.txt (line 6)) (2.1.1) Requirement already satisfied: pytz>=2015.7 in c:\python\python310\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.9->-r requirements.txt (line 1)) (2022.6) Requirement already satisfied: charset-normalizer<3,>=2 in c:\python\python310\lib\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (2.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python\python310\lib\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (1.26.12) Requirement already satisfied: certifi>=2017.4.17 in c:\python\python310\lib\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (2022.9.14) Requirement already satisfied: sphinxcontrib-serializinghtml in c:\python\python310\lib\site-packages (from sphinxcontrib-websupport->sphinx==1.7.9->-r requirements.txt (line 1)) (1.1.5) D:\Repo\GitHub\testing\docs>make html Running Sphinx v1.7.9 Initializing Spelling Checker making output directory... loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [html]: targets for 239 source files that are out of date updating environment: 239 added, 0 changed, 0 removed C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: erprojecttsools_toolchain The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: ol_requires_packagesies_ce_cpp The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): reading sources... [100%] whatsnew t_flow sphinx-sitemap: No pages generated for sitemap.xml Warning, treated as error: autodoc: failed to import function 'trim_conandata' from module 'conan.tools.files.conandata'; the following exception was raised: Traceback (most recent call last): File "C:\Python\Python310\lib\site-packages\sphinx\util\inspect.py", line 222, in safe_getattr return getattr(obj, name, *defargs) AttributeError: module 'conan.tools.files.conandata' has no attribute 'trim_conandata' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python\Python310\lib\site-packages\sphinx\ext\autodoc\importer.py", line 176, in import_object obj = attrgetter(obj, attrname) File "C:\Python\Python310\lib\site-packages\sphinx\ext\autodoc\__init__.py", line 274, in get_attr return autodoc_attrgetter(self.env.app, obj, name, *defargs) File "C:\Python\Python310\lib\site-packages\sphinx\ext\autodoc\__init__.py", line 1514, in autodoc_attrgetter return safe_getattr(obj, name, *defargs) File "C:\Python\Python310\lib\site-packages\sphinx\util\inspect.py", line 238, in safe_getattr raise AttributeError(name) AttributeError: trim_conandata D:\Repo\GitHub\testing\docs> ```
czoido commented 1 year ago

Hi @hwhsu1231 Yes, autodocs needs to have the conan sources in the PYTHONPATH, that's what is failing. Please, clone the sources from the conan repository, checkout the conan release/2.0 branch add that folder to the PYTHONPATH and try again. Hope this helps.

hwhsu1231 commented 1 year ago

Hi @hwhsu1231 Yes, autodocs needs to have the conan sources in the PYTHONPATH, that's what is failing. Please, clone the sources from the conan repository, checkout the conan release/2.0 branch add that folder to the PYTHONPATH and try again. Hope this helps.

Still not working?

Click to expand logs ```cmd D:\Repo\GitHub\testing\docs>git checkout release/2.0 Switched to branch 'release/2.0' Your branch is up to date with 'origin/release/2.0'. D:\Repo\GitHub\testing\docs>echo %PYTHONPATH% %PYTHONPATH% D:\Repo\GitHub\testing\docs>set PYTHONPATH=D:\Repo\GitHub\testing\docs D:\Repo\GitHub\testing\docs>echo %PYTHONPATH% D:\Repo\GitHub\testing\docs D:\Repo\GitHub\testing\docs>pip install -r requirements.txt Collecting sphinx==1.7.9 (from -r requirements.txt (line 1)) Using cached Sphinx-1.7.9-py2.py3-none-any.whl (1.9 MB) Requirement already satisfied: docutils<0.18 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (0.17.1) Requirement already satisfied: sphinx-sitemap>=2.1.0 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 3)) (2.5.0) Requirement already satisfied: sphinxcontrib-spelling in c:\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (4.2.1) Requirement already satisfied: sphinx-notfound-page in c:\python\python310\lib\site-packages (from -r requirements.txt (line 5)) (0.8) Requirement already satisfied: jinja2<=3.0.3 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 6)) (3.0.0) Requirement already satisfied: watchdog[watchmedo]==2.2.0 in c:\python\python310\lib\site-packages (from -r requirements.txt (line 7)) (2.2.0) Requirement already satisfied: six>=1.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (1.16.0) Requirement already satisfied: Pygments>=2.0 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.14.0) Requirement already satisfied: snowballstemmer>=1.1 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.2.0) Requirement already satisfied: babel!=2.0,>=1.3 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.11.0) Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (0.7.12) Requirement already satisfied: imagesize in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (1.4.1) Requirement already satisfied: requests>=2.0.0 in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (2.28.1) Requirement already satisfied: setuptools in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (59.8.0) Requirement already satisfied: packaging in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (23.0) Requirement already satisfied: sphinxcontrib-websupport in c:\python\python310\lib\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (1.2.4) Requirement already satisfied: colorama>=0.3.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from sphinx==1.7.9->-r requirements.txt (line 1)) (0.4.6) Requirement already satisfied: PyYAML>=3.10 in c:\python\python310\lib\site-packages (from watchdog[watchmedo]==2.2.0->-r requirements.txt (line 7)) (6.0) Requirement already satisfied: PyEnchant>=1.6.5 in c:\python\python310\lib\site-packages (from sphinxcontrib-spelling->-r requirements.txt (line 4)) (3.2.2) Requirement already satisfied: MarkupSafe>=2.0.0rc2 in c:\python\python310\lib\site-packages (from jinja2<=3.0.3->-r requirements.txt (line 6)) (2.1.1) Requirement already satisfied: pytz>=2015.7 in c:\python\python310\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.9->-r requirements.txt (line 1)) (2022.6) Requirement already satisfied: charset-normalizer<3,>=2 in c:\python\python310\lib\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (2.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python\python310\lib\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (1.26.12) Requirement already satisfied: certifi>=2017.4.17 in c:\python\python310\lib\site-packages (from requests>=2.0.0->sphinx==1.7.9->-r requirements.txt (line 1)) (2022.9.14) Requirement already satisfied: sphinxcontrib-serializinghtml in c:\python\python310\lib\site-packages (from sphinxcontrib-websupport->sphinx==1.7.9->-r requirements.txt (line 1)) (1.1.5) Installing collected packages: sphinx Attempting uninstall: sphinx Found existing installation: Sphinx 1.8.6 Uninstalling Sphinx-1.8.6: Successfully uninstalled Sphinx-1.8.6 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. sphinxcontrib-jquery 4.1 requires Sphinx>=1.8, but you have sphinx 1.7.9 which is incompatible. Successfully installed sphinx-1.7.9 D:\Repo\GitHub\testing\docs>make html Running Sphinx v1.7.9 Initializing Spelling Checker loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [html]: targets for 239 source files that are out of date updating environment: 239 added, 0 changed, 0 removed C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: erprojecttsools_toolchain The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: ol_requires_packagesies_ce_cpp The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): reading sources... [100%] whatsnew t_flow sphinx-sitemap: No pages generated for sitemap.xml Warning, treated as error: autodoc: failed to import function 'trim_conandata' from module 'conan.tools.files.conandata'; the following exception was raised: Traceback (most recent call last): File "C:\Python\Python310\lib\site-packages\sphinx\util\inspect.py", line 222, in safe_getattr return getattr(obj, name, *defargs) AttributeError: module 'conan.tools.files.conandata' has no attribute 'trim_conandata' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python\Python310\lib\site-packages\sphinx\ext\autodoc\importer.py", line 176, in import_object obj = attrgetter(obj, attrname) File "C:\Python\Python310\lib\site-packages\sphinx\ext\autodoc\__init__.py", line 274, in get_attr return autodoc_attrgetter(self.env.app, obj, name, *defargs) File "C:\Python\Python310\lib\site-packages\sphinx\ext\autodoc\__init__.py", line 1514, in autodoc_attrgetter return safe_getattr(obj, name, *defargs) File "C:\Python\Python310\lib\site-packages\sphinx\util\inspect.py", line 238, in safe_getattr raise AttributeError(name) AttributeError: trim_conandata D:\Repo\GitHub\testing\docs> ```
czoido commented 1 year ago

I think the problem comes because you are putting the conan docs in the PYTHONPATH, but you have to put the conan sources. You can also have an updated version of conan installed in you environment, I think you have one outdated version. Try to do pip install conan --upgrade and make the docs again.

hwhsu1231 commented 1 year ago

OK, it works after upgrading the Conan package!

Click to expand logs ```cmd D:\Repo\GitHub\testing\docs>pip install conan --upgrade Requirement already satisfied: conan in c:\python\python310\lib\site-packages (2.0.2) Collecting conan Downloading conan-2.0.8.tar.gz (363 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 363.3/363.3 kB 1.4 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: requests<3.0.0,>=2.25 in c:\python\python310\lib\site-packages (from conan) (2.28.1) Requirement already satisfied: urllib3<1.27,>=1.26.6 in c:\python\python310\lib\site-packages (from conan) (1.26.12) Requirement already satisfied: colorama<0.5.0,>=0.4.3 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from conan) (0.4.6) Requirement already satisfied: PyYAML<7.0,>=6.0 in c:\python\python310\lib\site-packages (from conan) (6.0) Requirement already satisfied: patch-ng<1.18,>=1.17.4 in c:\python\python310\lib\site-packages (from conan) (1.17.4) Requirement already satisfied: fasteners>=0.15 in c:\python\python310\lib\site-packages (from conan) (0.18) Requirement already satisfied: Jinja2<4.0.0,>=3.0 in c:\python\python310\lib\site-packages (from conan) (3.0.0) Requirement already satisfied: python-dateutil<3,>=2.8.0 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from conan) (2.8.2) Requirement already satisfied: MarkupSafe>=2.0.0rc2 in c:\python\python310\lib\site-packages (from Jinja2<4.0.0,>=3.0->conan) (2.1.1) Requirement already satisfied: six>=1.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from python-dateutil<3,>=2.8.0->conan) (1.16.0) Requirement already satisfied: charset-normalizer<3,>=2 in c:\python\python310\lib\site-packages (from requests<3.0.0,>=2.25->conan) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in c:\users\hwhsu1231\appdata\roaming\python\python310\site-packages (from requests<3.0.0,>=2.25->conan) (2.8) Requirement already satisfied: certifi>=2017.4.17 in c:\python\python310\lib\site-packages (from requests<3.0.0,>=2.25->conan) (2022.9.14) Building wheels for collected packages: conan Building wheel for conan (pyproject.toml) ... done Created wheel for conan: filename=conan-2.0.8-py3-none-any.whl size=467098 sha256=c839a4b7124ff23a57a7f0b76b441f8e143a30ee689fd7edf4bd714295862bf7 Stored in directory: c:\users\hwhsu1231\appdata\local\pip\cache\wheels\ad\8c\43\d73892490f3dccc8b4dc57d31274836d1b5d1077b18709199e Successfully built conan Installing collected packages: conan Attempting uninstall: conan Found existing installation: conan 2.0.2 Uninstalling conan-2.0.2: Successfully uninstalled conan-2.0.2 Successfully installed conan-2.0.8 D:\Repo\GitHub\testing\docs>make html Running Sphinx v1.7.9 Initializing Spelling Checker loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [html]: targets for 239 source files that are out of date updating environment: 239 added, 0 changed, 0 removed C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: erprojecttsools_toolchain The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): C:\Python\Python310\lib\site-packages\sphinx\util\nodes.py:57: FutureWarning: ol_requires_packagesies_ce_cpp The iterable returned by Node.traverse() will become an iterator instead of a list in Docutils > 0.16. for classifier in reversed(node.parent.traverse(nodes.classifier)): reading sources... [100%] whatsnew t_flow looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] whatsnew _flowuires_packagesies_ce_cpp generating indices... genindex writing additional pages... search copying images... [100%] images/conan-package_id.png rtifactory\../../../../images/artifactory/artifactory_local_repository.png copying downloadable files... [100%] images/cheatsheet/conan2-cheatsheet-v5.png copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded. The HTML pages are in _build\html. sphinx-sitemap: sitemap.xml was generated for URL https://docs.conan.io/ in D:\Repo\GitHub\testing\docs\_build\html/sitemap.xml Build finished. The HTML pages are in _build/html. D:\Repo\GitHub\testing\docs> ```
hwhsu1231 commented 1 year ago

I have a question. Does it mean that we had better install the latest release of Conan 2.X.Y if we want to build the corresponding release/2.X branch of Conan-Docs?

czoido commented 1 year ago

I have a question. Does it mean that we had better install the latest release of Conan 2.X.Y if we want to build the corresponding release/2.X branch of Conan-Docs?

Yes, that's it, release/2.0 is related with the latest Conan release, and autodoc needs the sources to complete the docs.