Skip to content

Commit b4a8b0f

Browse files
committed
make doc page the user home page
1 parent bce1599 commit b4a8b0f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

doc/build_antora.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ if [ -z "${BOOST_SRC_DIR:-}" ]; then
3939
fi
4040
fi
4141

42+
BRANCH=master
43+
4244
if [ -n "${BOOST_SRC_DIR:-}" ]; then
4345
if [ -n "${CIRCLE_REPOSITORY_URL:-}" ]; then
4446
if [[ "$CIRCLE_REPOSITORY_URL" =~ boostorg/boost(\.git)?$ ]]; then
4547
LIB="$(basename "$(dirname "$SCRIPT_DIR")")"
4648
REPOSITORY="boostorg/${LIB}"
49+
BRANCH=$(git -C "$BOOST_SRC_DIR" rev-parse --abbrev-ref HEAD)
4750
else
4851
ACCOUNT="${CIRCLE_REPOSITORY_URL#*:}"
4952
ACCOUNT="${ACCOUNT%%/*}"
@@ -81,7 +84,7 @@ echo "Fixing links to non-mrdocs URIs..."
8184

8285
for f in $(find html -name '*.html'); do
8386
perl -i -pe 's{&lcub;&lcub;(.*?)&rcub;&rcub;}{<a href="../../../$1.html">$1</a>}g' "$f"
84-
perl -i -pe 's{<a href="motivation.html">Boost.OpenMethod</a>}{<a href="https://www.boost.org/library/develop/openmethod/">Boost.OpenMethod</a>}g' "$f"
87+
perl -i -pe 's{href="index.html"}{href="https://www.boost.org/library/${BRANCH}/openmethod/"}g' "$f"
8588
done
8689

8790

doc/modules/ROOT/nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* xref:motivation.adoc[Motivation]
1+
* xref:index.adoc[Motivation]
22
* Basic Features
33
** xref:basics.adoc[Methods and Overriders]
44
** xref:performance.adoc[Performance]
File renamed without changes.

0 commit comments

Comments
 (0)