Skip to content
Snippets Groups Projects
Verified Commit bc141c1a authored by Lars Bilke's avatar Lars Bilke
Browse files

[Doxygen] Implemented full text search.

Fixes #3118.
parent 7c25c2dd
No related branches found
No related tags found
No related merge requests found
build docs:
stage: build
tags: [shell, envinf]
tags: [envinf2-shell]
dependencies: [meta]
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
......@@ -20,7 +20,7 @@ build docs:
- mkdir -p build
- cd build
script:
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_BUILD_PROCESSES=GroundwaterFlow
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_USE_POETRY=OFF -DOGS_BUILD_PROCESSES=SteadyStateDiffusion
- cmake --build . --target doc > >(tee make-docs.output)
- cat DoxygenWarnings.log|grep -v 'too many nodes'
- echo "doxygen_warnings `cat DoxygenWarnings.log|grep warning:|grep -v 'too many nodes'|wc -l|xargs`" > metrics.txt
......@@ -33,6 +33,8 @@ build docs:
netlify link --name ogs-doxygen-${CI_COMMIT_BRANCH//./-}
netlify deploy --prod --dir=docs
fi
sshpass -p $DOXYSEARCH_PW rsync -az doxysearch.db webdev@doxysearch.opengeosys.org:/var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH/
sshpass -p $DOXYSEARCH_PW ssh webdev@doxysearch.opengeosys.org doxyindexer -o /var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH /var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH/searchdata.xml
fi
artifacts:
expose_as: 'Doxygen'
......
......@@ -75,6 +75,14 @@ set(DOXYGEN_ALIASES
"ogs_missing_documentation = \\xrefitem ogs_missing_documentation \\\"Missing Documentation\\\" \\\"OGS Input File Parameters&mdash\;List of incomplete documentation pages\\\" Documentation missing/incomplete"
)
set(DOXYGEN_CREATE_SUBDIRS YES)
if($ENV{CI_COMMIT_BRANCH} MATCHES "master|^v[0-9]\.[0-9]\.[0-9]")
set(DOXYGEN_SERVER_BASED_SEARCH YES)
set(DOXYGEN_EXTERNAL_SEARCH YES)
set(DOXYGEN_SEARCHENGINE_URL
"http://doxysearch.opengeosys.org/$ENV{CI_COMMIT_BRANCH}/doxysearch.cgi"
)
message(STATUS "Doxygen search server: ${DOXYGEN_SEARCHENGINE_URL}")
endif()
configure_file(
${PROJECT_SOURCE_DIR}/Documentation/mainpage.dox.in
${PROJECT_BINARY_DIR}/DocAux/dox/mainpage.dox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment