From beed9c20da5fbacf8626e2d4b747bb84ae7f6d93 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 7 Nov 2026 17:49:12 +0100 Subject: Moved docs around --- docs_old/.nix/derivation.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs_old/.nix/derivation.nix (limited to 'docs_old/.nix/derivation.nix') diff --git a/docs_old/.nix/derivation.nix b/docs_old/.nix/derivation.nix new file mode 100644 index 0000000..a6dee7d --- /dev/null +++ b/docs_old/.nix/derivation.nix @@ -0,0 +1,42 @@ +{ lib +, stdenvNoCC +, python3 +, python3Packages +, doxygen +, gasp +, version +}: + +stdenvNoCC.mkDerivation { + pname = "forstio-docs"; + inherit version; + + src = ../../.; + + nativeBuildInputs = [ + python3 + python3Packages.sphinx + python3Packages.sphinx-rtd-theme + doxygen + gasp + ]; + + buildPhase = '' + # C++ API generation + pushd docs + doxygen Doxygen.in + python3 ${gasp.outPath}/bin/gasp.py xml --namespace saw > cpp_map.json + # C++ and C template generation + mkdir -p source/cpp_api + python3 ${gasp.outPath}/bin/make_rst.py --title="C++" -t ${gasp.outPath}/templates/rst -m cpp_map.json -o source/cpp_api + make html + popd + ''; + + installPhase = '' + mkdir -p $out + pushd docs + mv build/html $out/html + popd + ''; +} -- cgit v1.3.1