Skip to content

Commit 18915e8

Browse files
authored
Merge pull request #7 from rsps/add-docs
Add static site generator for building documentation
2 parents 4e7fec5 + 281b7d0 commit 18915e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+5322
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ build/
1515
.build/
1616

1717
.idea/
18+
19+
/vendor

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
* A "mini" testing framework for cmake modules and scripts, in `testing.cmake`.
2121
* `RSP_CMAKE_SCRIPTS_BUILD_TESTS` project option for building tests.
2222
* `tests.yaml` GitHub Actions workflow.
23+
* `composer.json` to install [Daux.io](https://daux.io) dev-dependency (_documentation generator_).
24+
* "rsp" theme for Daux (_placed in `resources/daux/themes/rsp`_).
2325

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

composer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "rsp/cmake-scripts",
3+
"description": "A collection of CMake scripts for C++ projects.",
4+
"type": "library",
5+
"license": "MIT",
6+
"homepage": "https://github.com/rsps/cmake-scripts",
7+
"support": {
8+
"source": "https://github.com/rsps/cmake-scripts",
9+
"issues": "https://github.com/rsps/cmake-scripts/issues"
10+
},
11+
"authors": [
12+
{
13+
"name": "Alin Eugen Deac",
14+
"email": "[email protected]",
15+
"role": "developer"
16+
}
17+
],
18+
"minimum-stability": "dev",
19+
"prefer-stable": true,
20+
"require": {
21+
"php": "^8.2",
22+
"daux/daux.io": "^0.22.3"
23+
},
24+
"scripts": {
25+
"docs:build": [
26+
"@make:docs-build-dir",
27+
"vendor/bin/daux clear-cache",
28+
"vendor/bin/daux generate --source=docs --destination=build/docs/"
29+
],
30+
"docs:dev": [
31+
"@make:docs-build-dir",
32+
"vendor/bin/daux serve"
33+
],
34+
"make:docs-build-dir": [
35+
"@php -r \"is_dir('build/docs') || mkdir(directory: 'build/docs', recursive: true);\""
36+
]
37+
},
38+
"scripts-descriptions": {
39+
"docs:build": "Builds a Html page containing all documentation, in the 'build/docs' directory",
40+
"docs:dev": "Live update the documentation",
41+
"make:docs-build-dir": "Creates the build directory for the documentation, if it does not already exist"
42+
}
43+
}

0 commit comments

Comments
 (0)