Fix docbook installation for doc/kcontrol/kcmlaunchfeedback
ClosedPublic

Authored by lueck on Mar 24 2018, 9:15 PM.

Details

Summary

kcms/launch/kcm_launchfeedback.desktop
X-DocPath=kcontrol/kcmlaunchfeedback/index.html

doc/kcontrol/kcmlaunch/CMakeLists.txt
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kcontrol/kcmlaunch)

kcmlaunch != kcmlaunchfeedback therefore the en_US documentation is not found

Scripty generates the install path from the dir name
l10n-kf5/[lang]/docs/kde-workspace/kcontrol/kcmlaunch/CMakeLists.txt
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/${CURRENT_LANG}/ SUBDIR kcontrol/kcmlaunch )

We need X-DocPath=kcontrol/kcmlaunch/index.html in the desktop file
then khelpcenter finds the correct docbook for en_US and all language translations

Test Plan

build and works

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
lueck created this revision.Mar 24 2018, 9:15 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 24 2018, 9:15 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
lueck requested review of this revision.Mar 24 2018, 9:15 PM
davidedmundson accepted this revision.Mar 24 2018, 11:40 PM
This revision is now accepted and ready to land.Mar 24 2018, 11:40 PM
hein requested changes to this revision.Mar 24 2018, 11:42 PM
hein added a subscriber: hein.

I disagree with this patch - I renamed things for consistency for a reason and emailed i18n-doc, so I expect the docs to get renamed.

This revision now requires changes to proceed.Mar 24 2018, 11:42 PM
aacid added a subscriber: aacid.Mar 25 2018, 10:21 AM

Your email said "master branch renamed kcmlaunch.pot to kcmlaunchfeedback.pot" you did never mention docs.

Anyhow, are you asking Burkhard to change the patch to rename the folder? I guess that's also a fine solution.

In D11661#233341, @hein wrote:

I disagree with this patch - I renamed things for consistency for a reason and emailed i18n-doc, so I expect the docs to get renamed.

Right you emailed i18n-doc, changed the X-DocPath to control/kcmlaunchfeedback/index.html, but not the install target in doc/kcontrol/kcmlaunch/CMakeLists.txt,
therefore the englisch documentation is not found.

The name of the docmessages catalog, the name of the translated docs and the install target for the translated docs are autogenerated by scripty.
Rename the translated docs is therefore no real option, the dir doc/kcontrol/kcmlaunch/ has to be renamed, another level of consistency ;-)

I will upload a new patch so fix this bug for the english and the language docs.

lueck updated this revision to Diff 30498.Mar 25 2018, 12:27 PM
lueck retitled this revision from Fix wrong X-DocPath in kcm_launchfeedback.desktop to Fix docbook installation for doc/kcontrol/kcmlaunchfeedback.

rename dir doc/kcontrol/kcmlaunch to doc/kcontrol/kcmlaunchfeedback
scripty automatically generates the correct name for the docmessages catalog, the language docs and the install target

change install target to kcontrol/kcmlaunchfeedback in doc/kcontrol/kcmlaunchfeedback/CMakeLists.txt
now the english docbook is found by khelpcenter

Restricted Application added a subscriber: kde-doc-english. · View Herald TranscriptMar 25 2018, 12:27 PM
hein accepted this revision.Mar 26 2018, 6:10 AM

Thanks! :)

This revision is now accepted and ready to land.Mar 26 2018, 6:10 AM
This revision was automatically updated to reflect the committed changes.