Skip to content

Remove ./ from relative paths in online-help.qhp#2860

Merged
danmar merged 1 commit into
cppcheck-opensource:mainfrom
c72578:2020-10-26_Remove_dot_slash_from_paths_in_online-help.qhp
Oct 26, 2020
Merged

Remove ./ from relative paths in online-help.qhp#2860
danmar merged 1 commit into
cppcheck-opensource:mainfrom
c72578:2020-10-26_Remove_dot_slash_from_paths_in_online-help.qhp

Conversation

@c72578
Copy link
Copy Markdown
Contributor

@c72578 c72578 commented Oct 26, 2020

- Fixes the following errors, when opening online-help.qhc using Qt
  assistant: QTextBrowser: No document for
  qthelp://cppcheck.sourceforge.net/doc/./preferences.html
  etc.
- Furthermore, ./ is not used anymore in Qt documentation:
    https://doc.qt.io/qt-5/qtassistant-simpletextviewer-example.html
  It was used previously:
    https://doc.qt.io/archives/qt-4.8/qt-help-simpletextviewer-example.html
  Example:
    <section title="Find File" ref="./findfile.html">
    ->
    <section title="Find File" ref="findfile.html">
@c72578
Copy link
Copy Markdown
Contributor Author

c72578 commented Oct 26, 2020

How to reproduce:

cd gui/help/
qhelpgenerator online-help.qhcp -o online-help.qhc
# View the generated online-help.qhc file using Qt assistant
assistant -collectionFile online-help.qhc
# Click on Contents - Cppcheck GUI Help - Preferences
# Output on Linux terminal:
QTextBrowser: No document for qthelp://cppcheck.sourceforge.net/doc/./preferences.html

Tested with: Qt 5.15.1

@c72578 c72578 marked this pull request as ready for review October 26, 2020 05:08
@danmar danmar merged commit 1f6cb7a into cppcheck-opensource:main Oct 26, 2020
@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Oct 26, 2020

I somehow have the feeling that I needed this before. But I merged this for now..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants