New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status of context help #15
Comments
This is a major UX fail. I would say that the built-in help as it is, is useless. Therefore, to start, we should replace it by links to online documentation. We might have some problems with this because normally the documentations is not released at the same pace as QGIS itself. We need a strategy to point to the latest available documentation if the current QGIS version is not available. If possible, the GUI language should be used to open, if existent, the help doc in the current language. Then we have the problem of Offline help. It should be possible for users to download the documentation to use in offline enviroments. The system should allow to:
So, when the user click help QGIS would:
|
I'd say that doc checking should be first local and if that fails, online. It shouldn't be related to connectivity availability. Connectivity might be there but slow or expensive. Once the person has opted for a local doc (meaning that there is an option to choose to download doc or use online one), there's no reason to go and use the online one. It could also be proposed (or silently done) with desktop release point, an update of the doc too (until now, translation of new strings has occurred after the release of the doc which occurs after the desktop x.x.0 release). But all this is a second step debate. I don't know how technically linking the desktop to doc repo could be done but it'll require more investment in doc writing (to have it available, at least in English with the major release and not 2 versions later) but also a strict organization of the doc, to ensure permanent link from release to release (is it possible to use internal hyperlink, which ensures stability on reaching the section, even if moved under another chapter?). |
IMHO we really have to fix this for QGIS3. |
This related not only for context help, but for help system in general. For example we want to provide users with Processing algs help (both native and 3rd party), GRASS plugin also may want to display module help etc. Also it would be nice to have some generic mechanism which can be reused by plugins. |
PR which implements qgis/QGIS-Enhancement-Proposals#51 merged in master. So we can start with adopting docs, merging context help and linking them from QGIS |
@alexbruy Can you provide instructions on how to adopt the context help to point to Docs URL, for "normal" people like me? @rduivenvoorde If I recall, you once mention having a list with all help buttons and which section in docs they should point to. Do you still have it? Thanks |
You might be looking for http://hub.qgis.org/wiki/quantum-gis/ContextHelp |
@SrNetoChan you can look at qgis/QGIS#4023 for some examples. |
@alexbruy I played a bit with the help system recently and It looks like that the current implementation is not as described above by @SrNetoChan. If I understand the behavior in qgis, doc fetching is based on the order of the "repo" set. The upper the source is, the earlier it's checked and if no result found, the source below is tested, and so on, regardless online vs offline or English vs localized priority matters. Do I get the scheme?
However I don't know in which order: eg, for a Spanish user working with QGIS 3.0, is it better to get a 2.14 Spanish documentation (probably outdated) than an English-only Testing doc (probably more up to date)? For New features (eg. Dxf import, geopackage) that have a dedicated section, the Testing, hence English doc, will be anyway returned in the meantime. |
Current statusNew context helpC++Looking for: find . \( -name \*.h -o -name \*.cpp \) -exec grep -H "QgsHelp::openHelp(" \{\} \; | sed 's/:[^"]\+/\t/;s/" .\+$/"/' | sed 's/\.\/src\///' | sort | awk -F $'\t' '{print "|" $1 "|" $2 "|";}' | grep -v "||" | sed 's/"//g' Usage results (34)
PythonOnly from qgis.gui import QgsHelp
algHelp = QgsHelp.helpUrl("processing_algs/{}/{}".format(
self.alg.provider().id(), self.alg.id())).toString() |
First script
|
When I think that i had spent hours to rebuild and check this list, i'm just full of frustration for ignoring this kind of cool commands. I definitively need to learn that!
Interesting! then you'd need to map it with the source file, right? I have many other questions but i prefer not to disturb you with them yet and let you draw "your" system. |
Ah... And Thanks ! |
Current status of the former Helpviewer (C++ usage)find src \( -name \*.h -o -name \*.cpp \) -exec grep -H "QgsContextHelp::run(" \{\} \; | grep -v "//" | grep -v "qgscontexthelp" | sed 's/^src\///;s/:.*$//' | awk '{ print "|" $1 "|" }' Usage (14 cases)
Current status of the former Helpviewer (Python usage)Usage (1 case)
|
Closing... as context helps have been removed from repo and despite the numerous missing "connected help buttons" |
Many dialogs have a help button to show a context help which hasn't been updated for a while, although the dialog has evolved with new/removed features.
It might be nice to get rid of those useless buttons or rethink a way to link them to a doc repo. Some on-going (or pending?) discussions around this:
The text was updated successfully, but these errors were encountered: