Skip to content

Commit fb9d997

Browse files
committed
wip
1 parent cbfa719 commit fb9d997

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

doc/build_antora.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ elif [ -n "${GITHUB_REPOSITORY:-}" ]; then
3434
sha=${GITHUB_SHA}
3535
fi
3636

37-
base_url="https://github.com/${repository}/blob/${sha}/"
37+
base_url="https://github.com/${repository}/blob/${sha}"
3838

3939
if [ -n "${base_url}" ]; then
4040
echo "Setting base-url to $base_url"
4141
cp mrdocs.yml mrdocs.yml.bak
42-
perl -i -pe 's{^\s*base-url:.*$}{base-url: '"$base_url"'}' mrdocs.yml
43-
perl -i -pe 's{(&lt;(.*?)&gt;</h3>)}{<a href="${base_url}include/$2">$1}g' \
44-
html/openmethod/ref_headers.html
42+
perl -i -pe 's{^\s*base-url:.*$}{base-url: '"$base_url/"'}' mrdocs.yml
43+
perl -i -pe 's/{{BASE_URL}}/$base_url/g' html/openmethod/ref_headers.html
4544
fi
4645

4746
echo "Building documentation with Antora..."

doc/modules/ROOT/pages/ref_headers.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ parameters:
2525
## High-level Headers
2626

2727
[#core]
28-
### <boost/openmethod/core.hpp>
28+
### link:{{BASE_URL}}/include/boost/openmethod/core.hpp[<boost/openmethod/core.hpp>]
2929

3030
Defines the main constructs of the library: methods, overriders and virtual
3131
pointers, and mechanisms to implement them. Does not define any public macros

0 commit comments

Comments
 (0)