Skip to content

Commit

Permalink
ci: docbuild: generate versioned custom.properties
Browse files Browse the repository at this point in the history
Generate a versioned custom.properties file, so that NCS releases are
handled correctly.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
  • Loading branch information
gmarull committed Jun 28, 2023
1 parent 2ff4408 commit 5ab3652
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ jobs:
echo "publish2 main ${VERSION} ${ARCHIVE}" > "${MONITOR}"
fi
# add zoomin metadata
cp doc/custom.properties doc/_build/html
sed -i 's/__VERSION__/'"${VERSION}"'/g' doc/_build/html/custom.properties
# compress
cd doc/_build/html
zip -rq "${ARCHIVE}" .
Expand Down
4 changes: 2 additions & 2 deletions doc/custom.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
manual.name=ncs
booktitle=nRF Connect SDK
manual.name=ncs-__VERSION__
booktitle=nRF Connect SDK - __VERSION__

0 comments on commit 5ab3652

Please sign in to comment.