# # Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) # Copyright (c) 2021 Dmitry Arkhipov (grisumbras@gmail.com) # # 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) # # Official repository: https://github.com/boostorg/json # project json/doc : default-build on ; import-search /boost/docca ; using asciidoctor ; import common ; import docca ; import feature ; import path ; import property-set ; if ! ( htmldir in [ feature.values asciidoctor-backend ] ) { feature.extend asciidoctor-backend : htmldir ; } local here-dir = [ path.root $(__file__:D) [ path.pwd ] ] ; local include-prefix = [ path.native $(here-dir:D)/include ] ; docca.pyreference entities.adoc : [ glob-tree-ex ../include/boost/json : *.hpp *.ipp : detail impl ] externals.hpp : ALIASES="esafe=\"@par Exception Safety\"" DISTRIBUTE_GROUP_DOC=YES MACRO_EXPANSION=YES EXPAND_ONLY_PREDEF=YES "PREDEFINED=\\ BOOST_FORCEINLINE \\ BOOST_JSON_DECL \\ BOOST_JSON_DOCS \\ BOOST_SYMBOL_VISIBLE \\ \"BOOST_JSON_INLINE_VARIABLE(v, t)=constexpr t v;\"" ABBREVIATE_BRIEF= INLINE_INHERITED_MEMB=YES JAVADOC_AUTOBRIEF=YES AUTOLINK_SUPPORT=NO EXTRACT_ALL=YES EXTRACT_LOCAL_CLASSES=NO STRIP_FROM_PATH=$(include-prefix) reference.adoc.jinja2 config.json ; generate with-path : entities.adoc : @with-path ; install images : [ glob images/*.png ] : html/images ; explicit images ; #------------------------------------------------------------------------------- # # HTML documentation for $(BOOST_ROOT)/doc/html # #------------------------------------------------------------------------------- local backend-module = [ path.root htmldir.rb $(here-dir) ] ; html index : pages/main.adoc : html images with-path /boost/boostlook//boostlook nofooter nofootnotes pagelevels=2 icons=font project-dir=$(here-dir:D) "project-gh=https://github.com/boostorg/json/edit/develop" docinfo=shared-head pages/docinfo.html htmldir htmldir.rb "-r $(backend-module)" attribute-missing=warn -v --trace all:-w extra:-w pedantic:-w on:--failure-level=WARN ; #------------------------------------------------------------------------------- # # These are used to inform the build system of the # means to build the integrated and stand-alone docs. # alias boostdoc ; explicit boostdoc ; alias boostrelease : index ; explicit boostrelease ; #------------------------------------------------------------------------------- # # helpers # rule with-path ( project name : ps : src ) { local pwd = [ path.pwd ] ; local here = [ path.root $(__file__:D) $(pwd) ] ; local path = [ path.root [ $(src).name ] [ $(src).path ] ] ; path = [ path.root $(path) $(pwd) ] ; path = [ path.relative-to $(here)/pages $(path) ] ; return [ $(ps).add-raw entities-file=$(path) ] $(src) ; }