From 0b5612862bb5ff06c5d4f97e1fe5ed11c203d97a Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 2 Jan 2026 11:48:34 +0100 Subject: [PATCH] simplified doc/Jamfile.v2 --- doc/Jamfile.v2 | 54 ++++++++++---------------------------------------- 1 file changed, 10 insertions(+), 44 deletions(-) diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index 0feecab2ee..70ff935692 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -1,57 +1,23 @@ -import generate ; -import path ; -import property-set ; -import virtual-target ; +# Copyright 2026 Joaquin M Lopez Munoz +# Distributed under the Boost Software License, Version 1.0. (See accompanying +# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -path-constant HERE : . ; +make html_ : build_antora.sh : @run-script ; -make html/index.html : build_antora.sh : @run-script ; -generate files-to-install : html/index.html : @delayed-glob ; -install install - : files-to-install - : html - html/unordered - ; -explicit html/index.html files-to-install ; - -# this runs the antora script actions run-script { bash $(>) } -# this globs after its sources are created -rule delayed-glob ( project name : property-set : sources * ) -{ - for local src in $(sources) - { - # the next line causes the source to be generated immediately - # and not later (which it normally would) - UPDATE_NOW [ $(src).actualize ] ; - } - - # we need to construct the path to the globbed directory; - # this path would be /antora - local root = [ path.root html [ $(project).location ] ] ; - local files ; +make cleanup_node_modules_ : html_ : @cleanup-node-modules ; - # actual globbing happens here - for local file in [ path.glob-tree $(root) : * ] - { - # we have to skip directories, because our match expression accepts anything - if [ CHECK_IF_FILE $(file) ] - { - # we construct a list of targets to copy - files += [ virtual-target.from-file $(file:D=) : $(file:D) : $(project) ] ; - } - } - - # we prepend empty usage requirements to the result - return [ property-set.empty ] $(files) ; +actions cleanup-node-modules +{ + bash -c "rm -rf node_modules" } ############################################################################### alias boostdoc ; explicit boostdoc ; -alias boostrelease : install ; -explicit boostrelease ; +alias boostrelease : html_ ; +explicit boostrelease ; \ No newline at end of file