Skip to content

Commit d70c538

Browse files
randyh62samjwu
andauthored
Reorg docs621 (#224) (#248) (#252)
* doc reorg with src folder (#195) * doc reorg with src folder * leo's comments * added Files and Content * Update codeowners for docs * reorg based on Paul's feedback --------- * add Cory's comments --------- Co-authored-by: Sam Wu <22262939+samjwu@users.noreply.github.com>
1 parent 489ef56 commit d70c538

20 files changed

+254
-120
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
* @pfultz2 @lawruble13 @cgmb
22
# Documentation files
3-
docs/* @ROCm/rocm-documentation @pfultz2 @lawruble13 @cgmb
3+
docs/ @ROCm/rocm-documentation @pfultz2 @lawruble13 @cgmb
44
*.md @ROCm/rocm-documentation @pfultz2 @lawruble13 @cgmb
55
*.rst @ROCm/rocm-documentation @pfultz2 @lawruble13 @cgmb
6+
.readthedocs.yaml @ROCm/rocm-documentation @pfultz2 @lawruble13 @cgmb

docs/src/_toc.yml.in

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,20 @@ defaults:
1010
maxdepth: 6
1111
root: index.rst
1212
subtrees:
13-
- caption: Basic Common Functionality
13+
- caption: Installation
14+
entries:
15+
- file: reference/ROCMInstallTargets.rst
16+
- file: reference/ROCMInstallSymlinks.rst
17+
- file: reference/ROCMHeaderWrapper.rst
18+
- file: reference/ROCMCreatePackage.rst
19+
- file: reference/ROCMClients.rst
20+
- file: reference/ROCMPackageConfigHelpers.rst
21+
- caption: Basic functions
1422
entries:
1523
- file: reference/ROCMCheckTargetIds.rst
1624
- file: reference/ROCMSetupVersion.rst
1725
- file: reference/ROCMAnalyzers.rst
18-
- caption: Installation & Packaging
19-
entries:
20-
- file: reference/ROCMInstallTargets.rst
21-
subtrees:
22-
- entries:
23-
- file: reference/ROCMInstallSymlinks.rst
24-
- file: reference/ROCMHeaderWrapper.rst
25-
- file: reference/ROCMCreatePackage.rst
26-
subtrees:
27-
- entries:
28-
- file: reference/ROCMClients.rst
29-
- file: reference/ROCMPackageConfigHelpers.rst
30-
- caption: Standard Tooling
26+
- caption: Standard tooling
3127
entries:
3228
- file: reference/ROCMClangTidy.rst
3329
- file: reference/ROCMCppCheck.rst
@@ -37,7 +33,7 @@ subtrees:
3733
- file: reference/ROCMDocs.rst
3834
- file: reference/ROCMDoxygenDoc.rst
3935
- file: reference/ROCMSphinxDoc.rst
40-
- caption: Internal usage
36+
- caption: Internal use
4137
entries:
4238
- file: reference/ROCMUtilities.rst
4339
- caption: About

docs/src/contents.rst

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
.. rocm-cmake documentation master file, created by
2+
sphinx-quickstart on Thu Sep 16 18:46:06 2021.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
.. highlight:: cmake
6+
7+
.. meta::
8+
:description: ROCm CMake
9+
:keywords: ROCm, Cmake, library, api, AMD
10+
11+
.. _contents:
12+
13+
****************************************************
14+
Modules and functions
15+
****************************************************
16+
17+
- :ref:`rocmanalyzers`
18+
+ :any:`rocm_mark_as_analyzer`
19+
+ :any:`ROCM_ENABLE_GH_ANNOTATIONS`
20+
- :ref:`rocmchecktargetids`
21+
+ :any:`rocm_check_target_ids`
22+
- :ref:`rocmclangtidy`
23+
+ :any:`rocm_enable_clang_tidy`
24+
+ :any:`rocm_clang_tidy_check`
25+
+ :any:`CLANG_TIDY_EXE`
26+
+ :any:`CLANG_TIDY_CACHE`
27+
+ :any:`CLANG_TIDY_CACHE_SIZE`
28+
+ :any:`CLANG_TIDY_DEPEND_ON_TARGET`
29+
- :ref:`rocmclients`
30+
+ :any:`rocm_package_setup_client_component`
31+
- :ref:`rocmcppcheck`
32+
+ :any:`rocm_enable_cppcheck`
33+
+ :any:`CPPCHECK_EXE`
34+
+ :any:`CPPCHECK_BUILD_DIR`
35+
- :ref:`rocmcreatepackage`
36+
+ :any:`rocm_create_package`
37+
+ :any:`rocm_package_add_rpm_dependencies`
38+
+ :any:`rocm_package_add_deb_dependencies`
39+
+ :any:`rocm_package_add_dependencies`
40+
+ :any:`rocm_package_setup_component`
41+
- :ref:`rocmdocs`
42+
+ :any:`rocm_mark_as_doc`
43+
+ :any:`rocm_clean_doc_output`
44+
- :ref:`rocmdoxygendoc`
45+
+ :any:`rocm_add_doxygen_doc`
46+
+ :any:`DOXYGEN_EXECUTABLE`
47+
+ :any:`DOT_EXECUTABLE`
48+
- :ref:`rocminstallsymlinks`
49+
+ :any:`rocm_install_symlink_subdir`
50+
- :ref:`rocminstalltargets`
51+
+ :any:`rocm_install`
52+
+ :any:`rocm_install_targets`
53+
+ :any:`rocm_export_targets`
54+
- :ref:`rocmconfighelpers`
55+
+ :any:`rocm_configure_package_config_file`
56+
- :ref:`rocmsetupversion`
57+
+ :any:`rocm_get_version`
58+
+ :any:`rocm_setup_version`
59+
- :ref:`rocmsphinxdoc`
60+
+ :any:`rocm_add_doxygen_doc`
61+
+ :any:`SPHINX_EXECUTABLE`
62+
+ :any:`SPHINX_${BUILDER}_DIR`
63+
- :ref:`rocmtest`
64+
+ :any:`rocm_enable_test_package`
65+
+ :any:`rocm_add_test`
66+
+ :any:`rocm_add_test_executable`
67+
+ :any:`rocm_test_header`
68+
+ :any:`rocm_test_headers`
69+
+ :any:`rocm_install_test`
70+
+ :any:`rocm_mark_as_test`
71+
+ :any:`rocm_link_test_dependencies`
72+
+ :any:`rocm_test_link_libraries`
73+
+ :any:`CTEST_PARALLEL_LEVEL`
74+
+ :any:`CTEST_TIMEOUT`
75+
+ :any:`ROCM_TEST_GDB`
76+
- :ref:`rocmutilities`
77+
+ :any:`rocm_join_if_set`
78+
+ :any:`rocm_defer`
79+
+ :any:`rocm_find_program_version`
80+
81+
Index and tables
82+
================
83+
84+
* :ref:`genindex`
85+
* :ref:`search`

docs/src/index.rst

Lines changed: 26 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -4,103 +4,43 @@
44
contain the root `toctree` directive.
55
.. highlight:: cmake
66

7-
ROCm CMake Build Tools
8-
======================
7+
.. meta::
8+
:description: ROCm CMake
9+
:keywords: ROCm, Cmake, library, api, AMD
910

10-
Summary
11-
-------
11+
.. _rocm-cmake:
1212

13-
ROCm CMake Build Tools (also stylized as "ROCmCMakeBuildTools" and previously
14-
known as "rocm-cmake") is a collection of functions that unify and simplify the
15-
CMake code of the ROCm components, as well as ensuring consistency across these
16-
components.
13+
****************************************************
14+
ROCm CMake build tools
15+
****************************************************
1716

18-
Usage
19-
-----
17+
ROCm CMake build tools (also known as "rocm-cmake") is a collection of functions
18+
that unify and simplify the CMake code of ROCm components, as well as ensuring
19+
consistency across these different components. The ROCm CMake build tools are used
20+
when building and developing many AMD ROCm libraries, but are not runtime dependencies
21+
for any libraries, packages or executables.
2022

21-
The ROCm CMake Build Tools are primarily used at build time of a library, and
22-
as such are not runtime dependencies for any generated libraries, packages,
23-
or executables.
23+
.. important::
24+
ROCm CMake tools are not required when building or compiling an application that uses ROCm or HIP components.
2425

25-
The tools can be included into a CMake project by running::
26+
The build tools can be included into a CMake project by running:
27+
28+
.. code-block:: shell
2629
2730
find_package(ROCmCMakeBuildTools)
2831
# or
2932
find_package(ROCM) # deprecated, but included for backwards compatibility
3033
3134
Once the tools have been included in this manner, individual files may be
32-
included by running ``include(<file_name>)``. The file names, and the
33-
functions, variables, and macros accessible using each file are listed below.
34-
35-
Files & Contents
36-
~~~~~~~~~~~~~~~~
35+
included by running ``include(<file_name>)``. The file names, the
36+
functions, variables, and macros accessible using each file are described in
37+
this documentation.
3738

38-
- :any:`ROCMAnalyzers`
39-
+ :any:`rocm_mark_as_analyzer`
40-
+ :any:`ROCM_ENABLE_GH_ANNOTATIONS`
41-
- :any:`ROCMCheckTargetIds`
42-
+ :any:`rocm_check_target_ids`
43-
- :any:`ROCMClangTidy`
44-
+ :any:`rocm_enable_clang_tidy`
45-
+ :any:`rocm_clang_tidy_check`
46-
+ :any:`CLANG_TIDY_EXE`
47-
+ :any:`CLANG_TIDY_CACHE`
48-
+ :any:`CLANG_TIDY_CACHE_SIZE`
49-
+ :any:`CLANG_TIDY_DEPEND_ON_TARGET`
50-
- :any:`ROCMClients`
51-
+ :any:`rocm_package_setup_client_component`
52-
- :any:`ROCMCppCheck`
53-
+ :any:`rocm_enable_cppcheck`
54-
+ :any:`CPPCHECK_EXE`
55-
+ :any:`CPPCHECK_BUILD_DIR`
56-
- :any:`ROCMCreatePackage`
57-
+ :any:`rocm_create_package`
58-
+ :any:`rocm_package_add_rpm_dependencies`
59-
+ :any:`rocm_package_add_deb_dependencies`
60-
+ :any:`rocm_package_add_dependencies`
61-
+ :any:`rocm_package_setup_component`
62-
- :any:`ROCMDocs`
63-
+ :any:`rocm_mark_as_doc`
64-
+ :any:`rocm_clean_doc_output`
65-
- :any:`ROCMDoxygenDoc`
66-
+ :any:`rocm_add_doxygen_doc`
67-
+ :any:`DOXYGEN_EXECUTABLE`
68-
+ :any:`DOT_EXECUTABLE`
69-
- :any:`ROCMInstallSymlinks`
70-
+ :any:`rocm_install_symlink_subdir`
71-
- :any:`ROCMInstallTargets`
72-
+ :any:`rocm_install`
73-
+ :any:`rocm_install_targets`
74-
+ :any:`rocm_export_targets`
75-
- :any:`ROCMPackageConfigHelpers`
76-
+ :any:`rocm_configure_package_config_file`
77-
- :any:`ROCMSetupVersion`
78-
+ :any:`rocm_get_version`
79-
+ :any:`rocm_setup_version`
80-
- :any:`ROCMSphinxDoc`
81-
+ :any:`rocm_add_doxygen_doc`
82-
+ :any:`SPHINX_EXECUTABLE`
83-
+ :any:`SPHINX_${BUILDER}_DIR`
84-
- :any:`ROCMTest`
85-
+ :any:`rocm_enable_test_package`
86-
+ :any:`rocm_add_test`
87-
+ :any:`rocm_add_test_executable`
88-
+ :any:`rocm_test_header`
89-
+ :any:`rocm_test_headers`
90-
+ :any:`rocm_install_test`
91-
+ :any:`rocm_mark_as_test`
92-
+ :any:`rocm_link_test_dependencies`
93-
+ :any:`rocm_test_link_libraries`
94-
+ :any:`CTEST_PARALLEL_LEVEL`
95-
+ :any:`CTEST_TIMEOUT`
96-
+ :any:`ROCM_TEST_GDB`
97-
- :any:`ROCMUtilities`
98-
+ :any:`rocm_join_if_set`
99-
+ :any:`rocm_defer`
100-
+ :any:`rocm_find_program_version`
39+
You can access the build tools on the `ROCm CMake GitHub repository <https://github.com/ROCm/rocm-cmake>`_.
40+
For a complete listing of the features of ROCm CMake refer to :ref:`contents`.
10141

102-
Indices and tables
103-
==================
42+
To contribute to the documentation, refer to
43+
`Contributing to ROCm <https://rocm.docs.amd.com/en/latest/contribute/contributing.html>`_.
10444

105-
* :ref:`genindex`
106-
* :ref:`search`
45+
You can find licensing information on the
46+
`Licensing <https://rocm.docs.amd.com/en/latest/about/license.html>`_ page.

docs/src/reference/ROCMAnalyzers.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
.. meta::
2+
:description: ROCm CMake
3+
:keywords: ROCm, Cmake, library, api, AMD
4+
5+
.. _rocmanalyzers:
6+
7+
****************************************************
18
ROCMAnalyzers
2-
=============
9+
****************************************************
310

4-
This creates a ``analyze`` target which can run all analysis for a project.
11+
This creates an ``analyze`` target which can run all analysis for a project.
512

613
Commands
714
--------
@@ -19,4 +26,4 @@ Variables
1926

2027
.. cmake:variable:: ROCM_ENABLE_GH_ANNOTATIONS
2128
22-
Set this variable to ``ON`` so that analyzers will emit diagnostics in a format that github can use to annotate pull requests.
29+
Set this variable to ``ON`` so that analyzers will emit diagnostics in a format that GitHub can use to annotate pull requests.

docs/src/reference/ROCMCheckTargetIds.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
.. meta::
2+
:description: ROCm CMake
3+
:keywords: ROCm, Cmake, library, api, AMD
4+
5+
.. _rocmchecktargetids:
6+
7+
****************************************************
18
ROCMCheckTargetIds
2-
==================
9+
****************************************************
310

411
Commands
512
--------

docs/src/reference/ROCMClangTidy.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
.. meta::
2+
:description: ROCm CMake
3+
:keywords: ROCm, Cmake, library, api, AMD
4+
5+
.. _rocmclangtidy:
6+
7+
****************************************************
18
ROCMClangTidy
2-
=============
9+
****************************************************
310

411
Commands
512
--------

docs/src/reference/ROCMClients.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
.. meta::
2+
:description: ROCm CMake
3+
:keywords: ROCm, Cmake, library, api, AMD
4+
5+
.. _rocmclients:
6+
7+
****************************************************
18
ROCMClients
2-
===========
9+
****************************************************
310

411
Commands
512
--------

docs/src/reference/ROCMCppCheck.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
.. meta::
2+
:description: ROCm CMake
3+
:keywords: ROCm, Cmake, library, api, AMD
4+
5+
.. _rocmcppcheck:
6+
7+
****************************************************
18
ROCMCppCheck
2-
============
9+
****************************************************
310

411
Commands
512
--------

docs/src/reference/ROCMCreatePackage.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
.. meta::
2+
:description: ROCm CMake
3+
:keywords: ROCm, Cmake, library, api, AMD
4+
5+
.. _rocmcreatepackage:
6+
7+
****************************************************
18
ROCMCreatePackage
2-
=================
9+
****************************************************
310

411
Commands
512
--------

0 commit comments

Comments
 (0)