From 251f2267ef34f13a0dce221a140502d55c7b0a51 Mon Sep 17 00:00:00 2001 From: Lauren Wrubleski Date: Thu, 15 Feb 2024 15:43:38 -0700 Subject: [PATCH] Fix CMakeLists.txt reference --- docs/src/_toc.yml | 38 ++++++++++++++++++++++++++++++++++++++ docs/src/conf.py | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 docs/src/_toc.yml diff --git a/docs/src/_toc.yml b/docs/src/_toc.yml new file mode 100644 index 00000000..1a656de2 --- /dev/null +++ b/docs/src/_toc.yml @@ -0,0 +1,38 @@ +defaults: + numbered: False + maxdepth: 6 +root: index.rst +subtrees: + - caption: Basic Common Functionality + entries: + - file: reference/ROCMCheckTargetIds.rst + - file: reference/ROCMSetupVersion.rst + - file: reference/ROCMAnalyzers.rst + - caption: Installation & Packaging + entries: + - file: reference/ROCMInstallTargets.rst + subtrees: + - entries: + - file: reference/ROCMInstallSymlinks.rst + - file: reference/ROCMHeaderWrapper.rst + - file: reference/ROCMCreatePackage.rst + subtrees: + - entries: + - file: reference/ROCMClients.rst + - file: reference/ROCMPackageConfigHelpers.rst + - caption: Standard Tooling + entries: + - file: reference/ROCMClangTidy.rst + - file: reference/ROCMCppCheck.rst + - file: reference/ROCMTest.rst + - caption: Documentation in CMake + entries: + - file: reference/ROCMDocs.rst + - file: reference/ROCMDoxygenDoc.rst + - file: reference/ROCMSphinxDoc.rst + - caption: Internal usage + entries: + - file: reference/ROCMUtilities.rst + - caption: About + entries: + - file: license.rst diff --git a/docs/src/conf.py b/docs/src/conf.py index 269626b4..d5a0d3cb 100755 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -57,7 +57,7 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -with open('../CMakeLists.txt', encoding='utf-8') as f: +with open('../../CMakeLists.txt', encoding='utf-8') as f: match = re.search(r'rocm_setup_version\(VERSION\s+\"?([0-9.]+)[^0-9.]+', f.read()) if not match: raise ValueError("VERSION not found!")