I want to build an offline documentation app for which I already have my content in markdown format. I want to make it available in Linux app which users can read without internet access.
For the same, I’ve converted markdowns to HTML to display them in a viewer app using Yelp. But I don’t know where to start with Yelp to view my HTML contents. Is there a guide to getting started with Yelp and building your own doc viewer app like GNOME Help.
yelp supports processing Mallard and DocBook XML source files. If you convert Markdown into HTML, you can just a web browser to view them, no need for yelp I think.
For viewing documentation, there is Devhelp. It can read HTML documentation stored in gtk-doc/html directory under $XDG_DATA_DIRS (e.g. /usr/share, ~/.local/share), as long as you have an .devhelp2 index.
For example, you would have /usr/local/share/gtk-doc/html/foo, which would contain the HTML files and also foo.devhelp2. Here is a trimmed down devhelp2 file from GTK 3:
Sphinx can also generate the Devhelp index for you using GitHub - sphinx-doc/sphinxcontrib-devhelp but only the legacy devhelp1 version and I am not sure if that is still supported.
In the worst case, you can manually write a minimal index without any table of contents: