Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pol Munoz Pastor
Gaudi
Commits
8d18ea01
Commit
8d18ea01
authored
10 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
made the use of local MathJax optional (off by default)
parent
5f2c16b2
No related branches found
Branches containing commit
Tags
dox2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GaudiRelease/doc/doxygen/CMakeLists.txt
+30
-19
30 additions, 19 deletions
GaudiRelease/doc/doxygen/CMakeLists.txt
GaudiRelease/doc/doxygen/Doxyfile.in
+1
-1
1 addition, 1 deletion
GaudiRelease/doc/doxygen/Doxyfile.in
with
31 additions
and
20 deletions
GaudiRelease/doc/doxygen/CMakeLists.txt
+
30
−
19
View file @
8d18ea01
...
...
@@ -38,6 +38,36 @@ Release notes of the packages:
set
(
DOXYGEN_HTML_EXTRA_FILES
"
${
DOXYGEN_HTML_EXTRA_FILES
}
${
extra_file
}
"
)
endforeach
()
# run Doxygen to generate the documentation
add_custom_target
(
run-doxygen
COMMAND
${
env_cmd
}
--xml
${
env_xml
}
${
DOXYGEN_EXECUTABLE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile
COMMENT
"Running Doxygen..."
)
# 'doc' target
add_custom_target
(
doc DEPENDS run-doxygen
)
option
(
DOXYGEN_WITH_LOCAL_MATHJAX
"Use a local copy of MathJax instead of taking it from cdn.mathjax.org"
FALSE
)
if
(
DOXYGEN_WITH_LOCAL_MATHJAX
)
# install MathJax Javascript math renderer
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/doxygen/mathjax
COMMAND
${
CMAKE_COMMAND
}
-DTARFILE_DEST=
${
CMAKE_CURRENT_BINARY_DIR
}
-DINSTALL_DIR=
${
CMAKE_BINARY_DIR
}
/doxygen
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/get_mathjax.cmake
COMMENT
"Installing MathJax..."
)
# in principle this is not needed, but it allows to run Doxygen and install
# MathJax at the same time
add_custom_target
(
install-MathJax DEPENDS
${
CMAKE_BINARY_DIR
}
/doxygen/mathjax
)
add_dependencies
(
doc install-MathJax
)
set
(
MATHJAX_RELPATH
"../mathjax"
)
else
()
set
(
MATHJAX_RELPATH
"http://cdn.mathjax.org/mathjax/latest"
)
endif
()
# massage some version numbers
string
(
REGEX REPLACE
"_python.*"
""
Boost_version
"
${
Boost_config_version
}
"
)
string
(
REGEX REPLACE
"
\\
."
"_"
Boost_url_version
"
${
Boost_version
}
"
)
...
...
@@ -48,23 +78,4 @@ Release notes of the packages:
configure_file
(
${
template
}
.in
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
template
}
@ONLY
)
endforeach
()
# install MathJax Javascript math renderer
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/doxygen/mathjax
COMMAND
${
CMAKE_COMMAND
}
-DTARFILE_DEST=
${
CMAKE_CURRENT_BINARY_DIR
}
-DINSTALL_DIR=
${
CMAKE_BINARY_DIR
}
/doxygen
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/get_mathjax.cmake
COMMENT
"Installing MathJax..."
)
# in principle this is not needed, but it allows to run Doxygen and install
# MathJax at the same time
add_custom_target
(
install-MathJax DEPENDS
${
CMAKE_BINARY_DIR
}
/doxygen/mathjax
)
# run Doxygen to generate the documentation
add_custom_target
(
run-doxygen
COMMAND
${
env_cmd
}
--xml
${
env_xml
}
${
DOXYGEN_EXECUTABLE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile
COMMENT
"Running Doxygen..."
)
# 'doc' target
add_custom_target
(
doc DEPENDS run-doxygen install-MathJax
)
endif
()
This diff is collapsed.
Click to expand it.
GaudiRelease/doc/doxygen/Doxyfile.in
+
1
−
1
View file @
8d18ea01
...
...
@@ -1437,7 +1437,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH =
../mathjax
MATHJAX_RELPATH =
@MATHJAX_RELPATH@
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment