Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion DoxyfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ HTML_HEADER = html_header.html
HTML_FOOTER = html_footer.html
# MR - need to fix https://meshlib.io/documentation/Cpp/namespaceMR.html 404
EXCLUDE_SYMBOLS = Json std MR
SHOW_GROUPED_MEMB_INC = YES
SHOW_GROUPED_MEMB_INC = YES
PAGE_OUTLINE_PANEL = NO
3 changes: 1 addition & 2 deletions DoxyfileCpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
PREDEFINED = MR_BIND_PREFERRED_NAME MR_CANONICAL_TYPEDEFS MRMESH_API MRSYMBOLMESH_API MRVIEWER_API MRIOEXTRAS_API MRVOXELS_API
SKIP_FUNCTION_MACROS = YES


EXCLUDE_SYMBOLS = Json std
HTML_OUTPUT = html/Cpp
FULL_PATH_NAMES = YES # need add STRIP_FROM_INC_PATH and STRIP_FROM_PATH
26 changes: 20 additions & 6 deletions scripts/custom_search/search.patch
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

// The number of matches from the last run of <Search()>.
this.lastMatchCount = 0;
@@ -594,70 +581,8 @@
@@ -594,84 +581,8 @@
}
}

Expand All @@ -98,6 +98,12 @@
- elem.setAttribute('className',attr);
- }
-
- const decodeHtml = (html) => {
- const txt = document.createElement("textarea");
- txt.innerHTML = html;
- return txt.value;
- };
-
- const results = document.getElementById("SRResults");
- results.innerHTML = '';
- searchData.forEach((elem,index) => {
Expand All @@ -111,10 +117,14 @@
- srLink.setAttribute('id','Item'+index);
- setKeyActions(srLink,'return searchResults.Nav(event,'+index+')');
- setClassAttr(srLink,'SRSymbol');
- srLink.innerHTML = elem[1][0];
- srLink.innerHTML = decodeHtml(elem[1][0]);
- srEntry.appendChild(srLink);
- if (elem[1].length==2) { // single result
- srLink.setAttribute('href',resultsPath+elem[1][1][0]);
- if (elem[1][1][0].startsWith('http://') || elem[1][1][0].startsWith('https://')) { // absolute path
- srLink.setAttribute('href',elem[1][1][0]);
- } else { // relative path
- srLink.setAttribute('href',resultsPath+elem[1][1][0]);
- }
- srLink.setAttribute('onclick','searchBox.CloseResultsWindow()');
- if (elem[1][1][1]) {
- srLink.setAttribute('target','_parent');
Expand All @@ -123,7 +133,7 @@
- }
- const srScope = document.createElement('span');
- setClassAttr(srScope,'SRScope');
- srScope.innerHTML = elem[1][1][2];
- srScope.innerHTML = decodeHtml(elem[1][1][2]);
- srEntry.appendChild(srScope);
- } else { // multiple results
- srLink.setAttribute('href','javascript:searchResults.Toggle("SR_'+id+'")');
Expand All @@ -134,14 +144,18 @@
- srChild.setAttribute('id','Item'+index+'_c'+c);
- setKeyActions(srChild,'return searchResults.NavChild(event,'+index+','+c+')');
- setClassAttr(srChild,'SRScope');
- srChild.setAttribute('href',resultsPath+elem[1][c+1][0]);
- if (elem[1][c+1][0].startsWith('http://') || elem[1][c+1][0].startsWith('https://')) { // absolute path
- srChild.setAttribute('href',elem[1][c+1][0]);
- } else { // relative path
- srChild.setAttribute('href',resultsPath+elem[1][c+1][0]);
- }
- srChild.setAttribute('onclick','searchBox.CloseResultsWindow()');
- if (elem[1][c+1][1]) {
- srChild.setAttribute('target','_parent');
- } else {
- srChild.setAttribute('target','_blank');
- }
- srChild.innerHTML = elem[1][c+1][2];
- srChild.innerHTML = decodeHtml(elem[1][c+1][2]);
- srChildren.appendChild(srChild);
- }
- srEntry.appendChild(srChildren);
Expand Down
7 changes: 6 additions & 1 deletion scripts/update_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ TARGET_DIR="${1:-MeshLib/local}"
prepare_source_files() {
CURRENT_DIR=$(pwd)
cd ../MeshLib/
find source -name '*.h' -exec perl -pe 's|(?<!/)//(?![/!]) ?|/// |g;s|/\*(?![\*!]) ?|/** |g;s{^(\s*[^\s].*?)(?!/)(///|//!)(?!<)\s*$}{$1$2<}mg' -i {} \;
find source -name '*.h' -exec perl -pe 's/^\s*\}\s*\/\/\s*namespace.*$/}/' -i {} \;
find source -name '*.h' -exec perl -pe 's|(?<!/)//(?![/!]) ?|/// |g;s|/\*(?![\*!]) ?|/** |g' -i {} \;
cd "$CURRENT_DIR"
python3 ./scripts/generate_default_group.py
}
Expand Down Expand Up @@ -54,6 +55,10 @@ generate_documentation_simple() {
echo "GENERATE_XML = YES" >> Doxyfile${MODULE}Tag
echo "XML_OUTPUT = ./xml_${MODULE}" >> Doxyfile${MODULE}Tag
fi
if [ "$MODULE" = "Cpp" ]; then
echo "STRIP_FROM_INC_PATH = $(realpath ../MeshLib/source)" >> Doxyfile${MODULE}Tag
echo "STRIP_FROM_PATH = $(realpath ../MeshLib/source)" >> Doxyfile${MODULE}Tag
fi
echo "========== ${MODULE}" >> log.txt
echo "========== ${MODULE}" >> log_error.txt
start=$(date +%s.%N)
Expand Down
4 changes: 2 additions & 2 deletions scripts/update_search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ if [ "$(basename "$PWD")" != "MeshInspector.github.io" ]; then
return 1
fi

if [ "$(doxygen --version | cut -d' ' -f1)" != "1.11.0" ]; then
if [ "$(doxygen --version | cut -d' ' -f1)" != "1.14.0" ]; then
echo "[ERROR] Unsuitable version of doxygen!"
echo "Use doxygen version 1.11.0 or update this script (and patch file)"
echo "Use doxygen version 1.14.0 or update this script (and patch file)"
return 1
fi

Expand Down