cpdocs 0.3.2__tar.gz → 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cpdocs-0.3.2 → cpdocs-0.3.4}/.github/workflows/docs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/.github/workflows/test.yml +3 -1
- cpdocs-0.3.4/.gitignore +11 -0
- cpdocs-0.3.4/.reuse/templates/bordered.jinja2 +8 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/PKG-INFO +1 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/cpdocs.yml +3 -1
- cpdocs-0.3.4/examples/basic-cpp/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/CMakeLists.txt +2 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/include/acme/math.hpp +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/src/math.cpp +3 -1
- cpdocs-0.3.4/examples/c-basic/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/CMakeLists.txt +2 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/properdocs.yml +3 -1
- cpdocs-0.3.4/examples/cpp-features/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/CMakeLists.txt +2 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/docs/cpdocs-minibuild.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/include/demo/solver.hpp +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/tools/minibuild.py +3 -1
- cpdocs-0.3.4/examples/cpp-templates/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/CMakeLists.txt +2 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/include/meta/meta.hpp +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/CMakeLists.txt +2 -2
- cpdocs-0.3.4/examples/fortran-basic/docs/cpdocs.yml +19 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/lib/normalize.f90 +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/mod/geometry.f90 +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/properdocs.yml +3 -1
- cpdocs-0.3.4/examples/generated-cpp/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/CMakeLists.txt +2 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/generated-template/generated.hpp +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/include/acme/core.hpp +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/src/generated.cpp +3 -1
- cpdocs-0.3.4/examples/mixed/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/CMakeLists.txt +2 -2
- cpdocs-0.3.4/examples/mixed/docs/cpdocs.yml +19 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/include/geom/vector.hpp +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/python/pygeom/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/src/geom.cpp +3 -1
- cpdocs-0.3.4/examples/python-basic/.gitignore +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/pyproject.toml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/src/dice/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/src/dice/_rng.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/src/dice/core.py +3 -1
- cpdocs-0.3.4/examples/rust-basic/Cargo.toml +12 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/docs/cpdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/properdocs.yml +3 -1
- cpdocs-0.3.4/examples/rust-basic/rust-toolchain.toml +7 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/src/geometry.rs +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/src/internal.rs +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/src/lib.rs +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/properdocs.yml +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/pyproject.toml +3 -2
- cpdocs-0.3.4/src/cpdocs/__init__.py +7 -0
- cpdocs-0.3.4/src/cpdocs/__main__.py +7 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/build.py +8 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/cli.py +5 -3
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/config.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/contract.py +9 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/base.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/cpp/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/cpp/extract.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/cpp/render.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/fortran/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/fortran/extract.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/fortran/render.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/python/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/python/extract.py +11 -3
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/python/render.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/rust/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/rust/extract.py +11 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/languages/rust/render.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/model.py +3 -1
- cpdocs-0.3.4/src/cpdocs/plugins/__init__.py +5 -0
- cpdocs-0.3.4/src/cpdocs/plugins/properdocs/__init__.py +9 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/plugins/properdocs/core.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/plugins/properdocs/plugin.py +3 -1
- cpdocs-0.3.4/src/cpdocs/providers/__init__.py +5 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/providers/cargo.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/providers/cmake.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/providers/contract.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/providers/python.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/rendering/__init__.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/rendering/common.py +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/rendering/html.py +24 -3
- {cpdocs-0.3.2 → cpdocs-0.3.4}/src/cpdocs/versioning.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/conftest.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_api_reference.py +7 -6
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_build.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_config.py +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_contract.py +26 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_examples.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_feature_set_signatures.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_properdocs_core.py +3 -2
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_rust_example.py +3 -1
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_rust_provider.py +5 -4
- {cpdocs-0.3.2 → cpdocs-0.3.4}/test/test_versioning.py +3 -2
- cpdocs-0.3.2/.gitignore +0 -9
- cpdocs-0.3.2/examples/basic-cpp/.gitignore +0 -3
- cpdocs-0.3.2/examples/c-basic/.gitignore +0 -3
- cpdocs-0.3.2/examples/cpp-features/.gitignore +0 -3
- cpdocs-0.3.2/examples/cpp-templates/.gitignore +0 -3
- cpdocs-0.3.2/examples/fortran-basic/docs/cpdocs.yml +0 -17
- cpdocs-0.3.2/examples/generated-cpp/.gitignore +0 -3
- cpdocs-0.3.2/examples/mixed/.gitignore +0 -3
- cpdocs-0.3.2/examples/mixed/docs/cpdocs.yml +0 -17
- cpdocs-0.3.2/examples/python-basic/.gitignore +0 -3
- cpdocs-0.3.2/examples/rust-basic/Cargo.toml +0 -11
- cpdocs-0.3.2/examples/rust-basic/rust-toolchain.toml +0 -6
- cpdocs-0.3.2/src/cpdocs/__init__.py +0 -5
- cpdocs-0.3.2/src/cpdocs/__main__.py +0 -5
- cpdocs-0.3.2/src/cpdocs/plugins/__init__.py +0 -3
- cpdocs-0.3.2/src/cpdocs/plugins/properdocs/__init__.py +0 -7
- cpdocs-0.3.2/src/cpdocs/providers/__init__.py +0 -3
- {cpdocs-0.3.2 → cpdocs-0.3.4}/LICENSES/Apache-2.0.txt +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/REUSE.toml +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/examples/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/explanation/architecture.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/explanation/feature-sets.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/how-to/ci.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/how-to/feature-sets.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/how-to/generated-headers.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/how-to/other-build-systems.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/how-to/properdocs.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/cli.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/cmake.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/comments.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/configuration.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/contract.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/extraction.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/reference/links.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/docs/web/tutorials/first-reference.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/basic-cpp/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/include/ring/ring.h +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/c-basic/src/ring.c +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-features/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/cpp-templates/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/docs/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/docs/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/fortran-basic/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/generated-cpp/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/mixed/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/docs/api/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/docs/web/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/docs/web/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/python-basic/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/Cargo.lock +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/docs/api.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/docs/index.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/examples/rust-basic/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/readme.md +0 -0
- {cpdocs-0.3.2 → cpdocs-0.3.4}/uv.lock +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
name: documentation
|
|
4
6
|
|
|
5
7
|
# The published site is always built from the default branch: with the full history, cpdocs
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
name: test
|
|
4
6
|
|
|
5
7
|
on:
|
cpdocs-0.3.4/.gitignore
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
__pycache__/
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
.venv/
|
|
9
|
+
build/
|
|
10
|
+
dist/
|
|
11
|
+
*.egg-info/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
--------------------------------------------------------------------------------------------------
|
|
2
|
+
{% for expression in spdx_expressions -%}
|
|
3
|
+
SPDX-License-Identifier: {{ expression }}
|
|
4
|
+
{% endfor -%}
|
|
5
|
+
{% for copyright_line in copyright_lines -%}
|
|
6
|
+
{{ copyright_line }}
|
|
7
|
+
{% endfor -%}
|
|
8
|
+
--------------------------------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cpdocs
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Semantic, versioned API documentation for C, C++, CUDA, HIP, Fortran, Python and Rust projects
|
|
5
5
|
Project-URL: Source, https://github.com/ambhora/cpdocs
|
|
6
6
|
Author-email: Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(cpdocs-basic-example VERSION 1.0.0 LANGUAGES CXX)
|
|
7
7
|
|
|
8
8
|
add_library(acme_math STATIC src/math.cpp)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#pragma once
|
|
4
6
|
|
|
5
7
|
#include <string_view>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: cpdocs basic C++ example
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#include <acme/math.hpp>
|
|
4
6
|
|
|
5
7
|
namespace acme {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(ring VERSION 0.1.0 LANGUAGES C)
|
|
7
7
|
|
|
8
8
|
add_library(ring STATIC src/ring.c)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: ring
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(demo-solver VERSION 1.2.0 LANGUAGES CXX)
|
|
7
7
|
|
|
8
8
|
set(PROJECT_FEATURES "none" CACHE STRING "Optional features: none, mpi, cuda, or all")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
# The same project documented through tools/minibuild.py instead of CMake:
|
|
4
6
|
# cpdocs build --config docs/cpdocs-minibuild.yml
|
|
5
7
|
contract: 3
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#pragma once
|
|
4
6
|
|
|
5
7
|
#include <cstddef>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: demo-solver
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
"""A deliberately tiny build system implementing the cpdocs JSON contract.
|
|
4
6
|
|
|
5
7
|
It exists to show that cpdocs is not tied to CMake. The first command writes all feature sets; the
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(meta VERSION 0.4.0 LANGUAGES CXX)
|
|
7
7
|
|
|
8
8
|
add_library(meta INTERFACE)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#pragma once
|
|
4
6
|
|
|
5
7
|
#include <concepts>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: meta
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(fortran_geometry VERSION 1.0.0 LANGUAGES NONE)
|
|
7
7
|
|
|
8
8
|
if(CPDOCS_FEATURE_SETS_OUTPUT)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
contract: 3
|
|
6
|
+
|
|
7
|
+
build:
|
|
8
|
+
feature-sets: >
|
|
9
|
+
cmake -S "{{source}}" -B "{{tmpdir}}" -G Ninja
|
|
10
|
+
-DCPDOCS_FEATURE_SETS_OUTPUT="{{output-file}}"
|
|
11
|
+
build: >
|
|
12
|
+
cmake -S "{{source}}" -B "{{tmpdir}}" -G Ninja
|
|
13
|
+
-DCPDOCS_FEATURE_SET="{{feature-set}}"
|
|
14
|
+
-DCPDOCS_MANIFEST_OUTPUT="{{output-file}}"
|
|
15
|
+
|
|
16
|
+
checks:
|
|
17
|
+
broken-references: fail
|
|
18
|
+
|
|
19
|
+
versions: [main]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
!
|
|
1
|
+
! --------------------------------------------------------------------------------------------------
|
|
2
2
|
! SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
3
|
+
! SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
! --------------------------------------------------------------------------------------------------
|
|
4
5
|
! Implementation-only helper. It is browseable in the file hierarchy but is not part of the API.
|
|
5
6
|
subroutine normalize_impl(x, y, z)
|
|
6
7
|
real, intent(inout) :: x, y, z
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
!
|
|
1
|
+
! --------------------------------------------------------------------------------------------------
|
|
2
2
|
! SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
3
|
+
! SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
! --------------------------------------------------------------------------------------------------
|
|
4
5
|
!> Geometry primitives.
|
|
5
6
|
module geometry
|
|
6
7
|
implicit none
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: Fortran cpdocs example
|
|
4
6
|
site_description: A minimal Fortran API rendered by cpdocs.
|
|
5
7
|
docs_dir: docs
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(cpdocs-generated-example VERSION 1.0.0 LANGUAGES CXX)
|
|
7
7
|
|
|
8
8
|
set(GENERATED_INCLUDE ${CMAKE_BINARY_DIR}/generated/include)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#pragma once
|
|
4
6
|
|
|
5
7
|
/// Public declarations produced by a CMake build target.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#pragma once
|
|
4
6
|
|
|
5
7
|
/// Public source-tree declarations.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: cpdocs generated-header example
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#include <acme/core.hpp>
|
|
4
6
|
#include <acme/generated.hpp>
|
|
5
7
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# --------------------------------------------------------------------------------------------------
|
|
2
|
-
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
3
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
4
|
# --------------------------------------------------------------------------------------------------
|
|
5
|
-
cmake_minimum_required(VERSION 3
|
|
5
|
+
cmake_minimum_required(VERSION 4.3)
|
|
6
6
|
project(geom VERSION 2.0.0 LANGUAGES CXX)
|
|
7
7
|
|
|
8
8
|
set(PROJECT_FEATURES "none" CACHE STRING "Optional features: none or simd")
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
contract: 3
|
|
6
|
+
|
|
7
|
+
build:
|
|
8
|
+
feature-sets: >
|
|
9
|
+
cmake -S "{{source}}" -B "{{tmpdir}}" -G Ninja
|
|
10
|
+
-DCPDOCS_FEATURE_SETS_OUTPUT="{{output-file}}"
|
|
11
|
+
build: >
|
|
12
|
+
cmake -S "{{source}}" -B "{{tmpdir}}" -G Ninja
|
|
13
|
+
-DCPDOCS_FEATURE_SET="{{feature-set}}"
|
|
14
|
+
-DCPDOCS_MANIFEST_OUTPUT="{{output-file}}"
|
|
15
|
+
|
|
16
|
+
checks:
|
|
17
|
+
broken-references: fail
|
|
18
|
+
|
|
19
|
+
versions: [main]
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#pragma once
|
|
4
6
|
|
|
5
7
|
/// Geometry primitives.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: geom
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
"""Python bindings of the geometry library."""
|
|
4
6
|
|
|
5
7
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
3
5
|
#include "geom/vector.hpp"
|
|
4
6
|
|
|
5
7
|
double geom::dot(vector3 const& a, vector3 const& b) noexcept {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
build/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: dice
|
|
4
6
|
docs_dir: docs/web
|
|
5
7
|
site_dir: build/site
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
[build-system]
|
|
4
6
|
requires = ["hatchling>=1.27"]
|
|
5
7
|
build-backend = "hatchling.build"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
"""Roll dice and combine the results."""
|
|
4
6
|
|
|
5
7
|
from .core import Die, roll
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
"""Private helpers; hidden from the API reference."""
|
|
4
6
|
|
|
5
7
|
import random as _random
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
"""The die model."""
|
|
4
6
|
|
|
5
7
|
from __future__ import annotations
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
[package]
|
|
6
|
+
name = "rust-geometry"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
edition = "2024"
|
|
9
|
+
|
|
10
|
+
[features]
|
|
11
|
+
batch = []
|
|
12
|
+
checked = []
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
contract: 3
|
|
4
6
|
|
|
5
7
|
build:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
3
5
|
site_name: Rust cpdocs example
|
|
4
6
|
site_description: A minimal Cargo/Rust API rendered from nightly rustdoc JSON by cpdocs.
|
|
5
7
|
docs_dir: docs
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
[toolchain]
|
|
6
|
+
channel = "nightly-2026-10-01"
|
|
7
|
+
profile = "minimal"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// --------------------------------------------------------------------------------------------------
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
3
|
+
// SPDX-FileCopyrightText: 2026 cpdocs developers
|
|
4
|
+
// --------------------------------------------------------------------------------------------------
|
|
4
5
|
/// A three-dimensional vector.
|
|
5
6
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
6
7
|
pub struct Vector3 {
|