Skip to content

Commit 4922a41

Browse files
committed
build_antora.sh: patch base-url with permalink
1 parent e0e17d5 commit 4922a41

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

doc/build_antora.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ for f in $(find html -name '*.html'); do
5757
done
5858

5959
if [ -n "${base_url:-}" ]; then
60-
perl -i -pe "s[{{BASE_URL}}][$base_url]g" html/openmethod/ref_headers.html
6160
if [ -f mrdocs.yml.bak ]; then
6261
mv -f mrdocs.yml.bak mrdocs.yml
6362
echo "Restored original mrdocs.yml"
6463
else
6564
echo "mrdocs.yml.bak not found; skipping restore"
6665
fi
66+
perl -i -pe "s[{{BASE_URL}}][$base_url]g" \
67+
html/openmethod/ref_headers.html html/openmethod/BOOST_OPENMETHOD*.html
6768
fi
6869

6970
echo "Done"

doc/modules/ROOT/pages/BOOST_OPENMETHOD.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
### Synopsis
55

6-
Defined in <boost/openmethod/macros.hpp>.
6+
Defined in link:{{BASE_URL}}/include/boost/openmethod/macros.hpp[<boost/openmethod/macros.hpp>].
77

88
```c++
99
BOOST_OPENMETHOD(ID, (PARAMETERS...), RETURN_TYPE [, REGISTRY]);

0 commit comments

Comments
 (0)