diff options
author | Brad King <brad.king@kitware.com> | 2023-03-07 13:49:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-03-07 13:49:30 (GMT) |
commit | 3d6075da4df6a4f93a835e446c2bbf29488f50bd (patch) | |
tree | e009fc9f05695f54cc5b789d1b0ee103728d75e7 /Tests | |
parent | 2e8e5c2cf0147ba71e5a20124d84fdfe3a2f3f1a (diff) | |
parent | 533ebb072bb90bdba296aac79114a1ed0840759f (diff) | |
download | CMake-3d6075da4df6a4f93a835e446c2bbf29488f50bd.zip CMake-3d6075da4df6a4f93a835e446c2bbf29488f50bd.tar.gz CMake-3d6075da4df6a4f93a835e446c2bbf29488f50bd.tar.bz2 |
Merge topic 'improve-doc-signatures'
533ebb072b Help: Use signature directive for string command
cd33f461a6 Help: Use signature directive for cmake_language command
74e3c1d313 Utilities/Sphinx: Add a directive to document command signatures
c09b760484 Utilities/Sphinx: Drop commented-out code from cmake domain impl
6e85ad7f8b Help/dev: Add per-directive sections in CMake Documentation Guide
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8243
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testRST.expect | 8 | ||||
-rw-r--r-- | Tests/CMakeLib/testRST.rst | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testRST.expect b/Tests/CMakeLib/testRST.expect index 5e3cdb1..076562a 100644 --- a/Tests/CMakeLib/testRST.expect +++ b/Tests/CMakeLib/testRST.expect @@ -70,6 +70,14 @@ Bracket Comment Content Generator expression $<OTHER_GENEX> description. +.. cmake:signature:: some_command(SOME_SIGNATURE) + + Command some_command SOME_SIGNATURE description. + +.. signature:: other_command(OTHER_SIGNATURE) + + Command other_command OTHER_SIGNATURE description. + .. cmake:variable:: some_var Variable some_var description. diff --git a/Tests/CMakeLib/testRST.rst b/Tests/CMakeLib/testRST.rst index 4139801..43b08da 100644 --- a/Tests/CMakeLib/testRST.rst +++ b/Tests/CMakeLib/testRST.rst @@ -73,6 +73,14 @@ Inline literal ``__`` followed by inline link `Link Text <InternalDest_>`_. Generator expression $<OTHER_GENEX> description. +.. cmake:signature:: some_command(SOME_SIGNATURE) + + Command some_command SOME_SIGNATURE description. + +.. signature:: other_command(OTHER_SIGNATURE) + + Command other_command OTHER_SIGNATURE description. + .. cmake:variable:: some_var Variable some_var description. |