Skip to content

Commit 3116175

Browse files
authored
Merge pull request #8 from rsps/improve-docs
Improve docs
2 parents 165d97d + cb00fef commit 3116175

37 files changed

+1551
-21
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# CMake Scripts Code of Conduct
2+
3+
You can find the code of conduct in the [official documentation](https://rsps.github.io/cmake-scripts/current/code_of_conduct.html).

.github/CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# CMake Scripts Contribution Guide
2+
3+
The contribution guide is located in the [official documentation](https://rsps.github.io/cmake-scripts/current/contribution_guide.html).
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Bug or Defect report
3+
about: Report a bug or defect
4+
---
5+
6+
## Describe the bug
7+
8+
A clear and concise description of what the bug is.
9+
10+
## To Reproduce**
11+
12+
_Steps to reproduce the behavior:_
13+
1. Import module xyz...
14+
2. Call function with parameters ...
15+
4. See error
16+
17+
## Expected behavior
18+
19+
_A clear and concise description of what you expected to happen._
20+
21+
## Possible solution
22+
23+
_How could this defect be resolved (if you are able to provide such)_
24+
25+
## Affected version(s)
26+
_The affected version(s) of this project._
27+
- Version [e.g. 1.1.0]
28+
29+
## CMake Version
30+
_The CMake version used, in which the bug or defect was encountered_
31+
- Version [e.g. 3.30.0]
32+
33+
## OS
34+
35+
_The operating system you used._
36+
- E.g. Ubuntu 24.04
37+
38+
## Additional context
39+
40+
_Add any other context about the bug or defect..._
41+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Feature Request
3+
about: Ask for a new or change of an existing feature
4+
---
5+
6+
## Description
7+
8+
_What is the main purpose of the requested feature or change, e.g. what problem or challenge should to solve?... and why?_
9+
10+
## Possible solution
11+
12+
_How should the feature be implemented?_

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
_A short summary of what does this PR fixes, changes or adds..._
2+
3+
## Details
4+
5+
_More details about the PR... Delete this section, if not need!_
6+
7+
## References
8+
9+
* [Reference to issue(s)](www.google.com)

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
* `tests.yaml` and `deploy-docs.yaml` GitHub Actions workflows.
2323
* `composer.json` to install [Daux.io](https://daux.io) dev-dependency (_documentation generator_).
2424
* "rsp" theme for Daux (_placed in `resources/daux/themes/rsp`_).
25+
* Support Policy, Code of Conduct, Contribution Guide and Security Policy in the docs.
26+
* Defect and Feature Request issue templates (_for GitHub_).
27+
* Pull request template (_for GitHub_).
2528

2629
[Unreleased]: https://github.com/rsps/cmake-scripts/compare/develop

SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Security Policy
2+
3+
The security policy can be found in the [official documentation](https://rsps.github.io/cmake-scripts/current/security_policy.html).

cmake/rsp/testing.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (NOT COMMAND "define_test_suite")
6969
#
7070
# @see end_test_case()
7171
#
72-
# @param <string> name Human readable name of test suite TODO: Can this be used for ctest labels / groups?
72+
# @param <string> name Human readable name of test suite
7373
# @param DIRECTORY <path> Path to directory that contains test-cases
7474
# @param [MATCH <glob>] Glob used to match test-case files.
7575
# Defaults to "*_test.cmake".

cmake/rsp/testing/asserts.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ endif ()
171171

172172
if (NOT COMMAND "assert_in_list")
173173

174-
#! assert_in_list : Assert key (value) to be inlist
174+
#! assert_in_list : Assert key (value) to be in given list
175175
#
176176
# @see https://cmake.org/cmake/help/latest/command/if.html#in-list
177177
#
@@ -196,7 +196,7 @@ endif ()
196196

197197
if (NOT COMMAND "assert_not_in_list")
198198

199-
#! assert_not_in_list : Assert key (value) not to be inlist
199+
#! assert_not_in_list : Assert key (value) not to be in given list
200200
#
201201
# @see https://cmake.org/cmake/help/latest/command/if.html#in-list
202202
#

docs/+current/01_release-notes.md

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,95 @@ author: RSP Systems A/S
1111

1212
## Support Policy
1313

14-
_TODO: ...incomplete, please review documentation at a later point_
14+
The following shows the supported versions of the "CMake Scripts" project.
15+
16+
| Version | CMake | Release | Security Fixes Until |
17+
|---------|-------------|---------|----------------------|
18+
| `1.x` | `3.30 - ?` | _TBD_ | _TBD_ |
19+
| `0.x`* | `3.30 - ? ` | _TBD_ | _N/A_ |
20+
21+
_* - current supported version._ \
22+
_TBD - "To be decided"._ \
23+
_N/A - "Not available"._
1524

1625
## `v0.x` Highlights
1726

18-
_TODO: ...incomplete, please review documentation at a later point_
27+
### "Mini" Testing Framework
28+
29+
(_available since `v0.1`_)
30+
31+
A "mini" testing framework for testing your CMake modules and scripts.
32+
33+
```cmake
34+
define_test("has built assets" "has_built_assets")
35+
function(has_built_assets)
36+
assert_file_exists("resources/images/menu_bg.png" MESSAGE "No menu bg")
37+
assert_file_exists("resources/images/bg.png" MESSAGE "No background")
38+
39+
# ...etc
40+
endfunction()
41+
```
42+
43+
See [testing module](./modules/testing/cmake/index.md) for additional information.
44+
45+
### Git
46+
47+
(_available since `v0.1`_)
48+
49+
Git related utilities.
50+
51+
```cmake
52+
git_find_version_tag(
53+
OUTPUT version
54+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
55+
)
56+
57+
message("${version}") # 1.15.2
58+
```
59+
60+
See [git module](./modules/git/index.md) for additional information.
61+
62+
### Version
63+
64+
(_available since `v0.1`_)
65+
66+
Helpers for dealing with a project’s versioning
67+
68+
```cmake
69+
version_from_file(
70+
FILE "version"
71+
OUTPUT my_package
72+
)
73+
74+
message("${my_package}_SEMVER") # 2.0.0-beta.3+AF1004
75+
```
76+
77+
See [version module](./modules/version/index.md) for additional information.
78+
79+
### Cache
80+
81+
(_available since `v0.1`_)
82+
83+
Module that offers additional caching functionality (_via CMake’s Cache Entry mechanism_).
84+
85+
```cmake
86+
cache_set(
87+
KEY foo
88+
VALUE "bar"
89+
TTL 5
90+
)
91+
92+
# ... Elsewhere in your cmake scripts, 5 seconds later...
93+
94+
cache_get(KEY foo)
95+
96+
message("${foo}") # (empty string)
97+
```
98+
99+
See [cache module](./modules/cache/index.md) for additional information.
100+
101+
## Changelog
102+
103+
For additional information about the latest release, new features, changes or defect fixes, please review the
104+
[Changelog](https://github.com/rsps/cmake-scripts/blob/main/CHANGELOG.md).
19105

0 commit comments

Comments
 (0)