Skip to content

Commit

Permalink
Sync from upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Aug 9, 2024
2 parents 01e458e + 094a535 commit 8d8ef54
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 242 deletions.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ option(BOOST_URL_BUILD_EXAMPLES "Build boost::url examples" ${BOOST_URL_IS_ROOT}
option(BOOST_URL_MRDOCS_BUILD "Build the target for MrDocs: see mrdocs.yml" OFF)
option(BOOST_URL_DISABLE_THREADS "Disable threads" OFF)
option(BOOST_URL_WARNINGS_AS_ERRORS "Treat warnings as errors" OFF)
set(BOOST_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../.." CACHE STRING "Boost source dir to use when running CMake from this directory")

# Check if environment variable BOOST_SRC_DIR is set
if (NOT DEFINED BOOST_SRC_DIR AND DEFINED ENV{BOOST_SRC_DIR})
set(DEFAULT_BOOST_SRC_DIR "$ENV{BOOST_SRC_DIR}")
else ()
set(DEFAULT_BOOST_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
endif ()
set(BOOST_SRC_DIR ${DEFAULT_BOOST_SRC_DIR} CACHE STRING "Boost source dir to use when running CMake from this directory")

#-------------------------------------------------
#
Expand Down
7 changes: 2 additions & 5 deletions doc/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ asciidoc:
nav:
- modules/ROOT/nav.adoc
ext:
collector:
run:
command: node doc/generate-files.mjs
scan:
dir: doc/build/generated-files
cpp-reference:
config: doc/mrdocs.yml
cpp-tagfiles:
files:
- file: ./doc/tagfiles/boost-url-doxygen.tag.xml
Expand Down
2 changes: 1 addition & 1 deletion doc/build_antora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ npm ci
echo "Building docs in custom dir..."
PATH="$(pwd)/node_modules/.bin:${PATH}"
export PATH
npx antora --clean --fetch "$PLAYBOOK"
npx antora --clean --fetch "$PLAYBOOK" --stacktrace --log-level all
echo "Done"

7 changes: 7 additions & 0 deletions doc/local-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ antora:
cpp-tagfiles:
using-namespaces:
- 'boost::'
- require: '@alandefreitas/antora-cpp-reference-extension'
dependencies:
- name: 'boost'
repo: 'https://github.com/boostorg/boost.git'
tag: 'develop'
variable: 'BOOST_SRC_DIR'

asciidoc:
attributes:
# Enable pagination
Expand Down
Loading

0 comments on commit 8d8ef54

Please sign in to comment.