Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3,187
Issues
3,187
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
7ae13999
Commit
7ae13999
authored
Apr 11, 2014
by
Brad King
Committed by
Kitware Robot
Apr 11, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge topic 'qthelp_names'
111bb67c
Help: Use a more-appropriate qthelp namespace and file name.
parents
61ac6d64
111bb67c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
Utilities/Sphinx/CMakeLists.txt
Utilities/Sphinx/CMakeLists.txt
+5
-0
Utilities/Sphinx/conf.py.in
Utilities/Sphinx/conf.py.in
+4
-0
Utilities/Sphinx/fixup_qthelp_names.cmake
Utilities/Sphinx/fixup_qthelp_names.cmake
+32
-0
No files found.
Utilities/Sphinx/CMakeLists.txt
View file @
7ae13999
...
...
@@ -79,6 +79,11 @@ if(SPHINX_QTHELP)
# https://codereview.qt-project.org/#change,82250 in Qt 4.
COMMAND
${
CMAKE_COMMAND
}
"-DCSS_DIR=
${
CMAKE_CURRENT_BINARY_DIR
}
/qthelp/_static"
-P
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/apply_qthelp_css_workaround.cmake"
# Workaround sphinx configurability:
# https://bitbucket.org/birkenfeld/sphinx/issue/1448/make-qthelp-more-configurable
COMMAND
${
CMAKE_COMMAND
}
"-DQTHELP_DIR=
${
CMAKE_CURRENT_BINARY_DIR
}
/qthelp/"
"-DCMake_VERSION=
${
CMake_VERSION_MAJOR
}${
CMake_VERSION_MINOR
}${
CMake_VERSION_PATCH
}
"
-P
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/fixup_qthelp_names.cmake"
COMMAND qcollectiongenerator
${
CMAKE_CURRENT_BINARY_DIR
}
/qthelp/CMake.qhcp
)
endif
()
...
...
Utilities/Sphinx/conf.py.in
View file @
7ae13999
...
...
@@ -61,3 +61,7 @@ html_theme = 'default'
html_title = 'CMake %s Documentation' % release
html_short_title = '%s Documentation' % release
html_favicon = 'cmake-favicon.ico'
# Not supported yet by sphinx:
# https://bitbucket.org/birkenfeld/sphinx/issue/1448/make-qthelp-more-configurable
# qthelp_namespace = "org.cmake"
# qthelp_qch_name = "CMake-300.qch"
Utilities/Sphinx/fixup_qthelp_names.cmake
0 → 100644
View file @
7ae13999
file
(
READ
"
${
QTHELP_DIR
}
/CMake.qhcp"
QHCP_CONTENT
)
string
(
REPLACE
"<homePage>qthelp://org.sphinx.cmake"
"<homePage>qthelp://org.cmake"
QHCP_CONTENT
"
${
QHCP_CONTENT
}
"
)
string
(
REPLACE
"<startPage>qthelp://org.sphinx.cmake"
"<startPage>qthelp://org.cmake"
QHCP_CONTENT
"
${
QHCP_CONTENT
}
"
)
string
(
REPLACE
"<output>CMake.qch"
"<output>CMake-
${
CMake_VERSION
}
.qch"
QHCP_CONTENT
"
${
QHCP_CONTENT
}
"
)
string
(
REPLACE
"<file>CMake.qch"
"<file>CMake-
${
CMake_VERSION
}
.qch"
QHCP_CONTENT
"
${
QHCP_CONTENT
}
"
)
file
(
WRITE
"
${
QTHELP_DIR
}
/CMake.qhcp"
"
${
QHCP_CONTENT
}
"
)
file
(
READ
"
${
QTHELP_DIR
}
/CMake.qhp"
QHP_CONTENT
)
string
(
REPLACE
"<namespace>org.sphinx.cmake"
"<namespace>org.cmake"
QHP_CONTENT
"
${
QHP_CONTENT
}
"
)
file
(
WRITE
"
${
QTHELP_DIR
}
/CMake.qhp"
"
${
QHP_CONTENT
}
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment