diff --git a/projects/rocr-runtime/.gitignore b/projects/rocr-runtime/.gitignore index 6950597ee3..674a97908f 100644 --- a/projects/rocr-runtime/.gitignore +++ b/projects/rocr-runtime/.gitignore @@ -10,3 +10,13 @@ patches-* build/ outgoing/ Makefile + +# documentation artifacts +_build/ +_doxygen/ +_images/ +_static/ +_templates/ +_toc.yml +doxygen + diff --git a/projects/rocr-runtime/runtime/.readthedocs.yaml b/projects/rocr-runtime/runtime/.readthedocs.yaml index b3299fa4e8..fa47a331ee 100644 --- a/projects/rocr-runtime/runtime/.readthedocs.yaml +++ b/projects/rocr-runtime/runtime/.readthedocs.yaml @@ -4,13 +4,13 @@ version: 2 sphinx: - configuration: docs/conf.py + configuration: runtime/docs/conf.py formats: [htmlzip, pdf, epub] python: install: - - requirements: docs/sphinx/requirements.txt + - requirements: runtime/docs/sphinx/requirements.txt build: os: ubuntu-22.04 diff --git a/projects/rocr-runtime/runtime/docs/conf.py b/projects/rocr-runtime/runtime/docs/conf.py index 1aaa9e65f8..74c2049b37 100644 --- a/projects/rocr-runtime/runtime/docs/conf.py +++ b/projects/rocr-runtime/runtime/docs/conf.py @@ -9,11 +9,8 @@ import re from rocm_docs import ROCmDocs -os.system("cp ../README.md index.md") -os.system("cp ../src/README.md structure.md") - -with open('../src/CMakeLists.txt', encoding='utf-8') as f: - match = re.search(r'get_version \(\s+\"?([0-9.]+)[^0-9.]+', f.read()) +with open('../../CMakeLists.txt', encoding='utf-8') as f: + match = re.search(r'get_version\(\"?([0-9.]+)[^0-9.]+', f.read()) if not match: raise ValueError("VERSION not found!") version_number = match[1] diff --git a/projects/rocr-runtime/runtime/docs/doxygen/Doxyfile b/projects/rocr-runtime/runtime/docs/doxygen/Doxyfile index e75453a3de..8452f55418 100644 --- a/projects/rocr-runtime/runtime/docs/doxygen/Doxyfile +++ b/projects/rocr-runtime/runtime/docs/doxygen/Doxyfile @@ -917,7 +917,7 @@ WARN_LOGFILE = # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. -INPUT = ../../src/inc/ +INPUT = ../../hsa-runtime/inc/ # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses diff --git a/projects/rocr-runtime/runtime/docs/sphinx/requirements.txt b/projects/rocr-runtime/runtime/docs/sphinx/requirements.txt index ebe9e361d1..a6bce78dc0 100644 --- a/projects/rocr-runtime/runtime/docs/sphinx/requirements.txt +++ b/projects/rocr-runtime/runtime/docs/sphinx/requirements.txt @@ -2,7 +2,7 @@ # This file is autogenerated by pip-compile with Python 3.10 # by the following command: # -# pip-compile requirements.in +# pip-compile sphinx/requirements.in # accessible-pygments==0.0.5 # via pydata-sphinx-theme