Skip to content

Commit

Permalink
Fix CMakeLists.txt reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Feb 15, 2024
1 parent 3fcb4f0 commit 251f226
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions docs/src/_toc.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit 251f226

Please sign in to comment.