# SWI Prolog docset for Dash, Zeal et (Discussion)

**URL:** <https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176>\
**Category:** Discussion\
**Created:** [February 26, 2019, 3:48am UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176 "2019-02-26T03:48:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [February 26, 2019, 3:48am UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/1 "2019-02-26T03:48:41Z")

</div>

Great! Can you also make the script available to generate this? I’m happy to include that in the source distribution, so anyone can roll their own copy at any time that reflects precisely their version.

---

<div class="post-metadata">

**Author:** ![mye](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@mye](https://swi-prolog.discourse.group/u/mye)\
**Post date:** [February 26, 2019, 1:23pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/2 "2019-02-26T13:23:52Z")

</div>

I have [described the process](https://github.com/mye/Dash-User-Contributions/tree/master/docsets/SWI_Prolog) which uses a tool written in go, so not a simple script unfortunately. The dashing.json file in this repo contains the CSS selectors I used. I plan to update this whenever a new devel version is released, but it’s easy enough to build for other versions.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [February 26, 2019, 1:39pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/3 "2019-02-26T13:39:52Z")

</div>

Nice to have this. Pity it is not in Prolog 😭 There is a lot of HTML processing there and helpt/1 and friends already contain all the logic to index and segment the manual. You can access sqlite both through ODBC and the sqlite driver pack by Nicos …

---

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [February 27, 2019, 6:48pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/4 "2019-02-27T18:48:04Z")

</div>

‘read\_line\_to\_string/2’ is not showing up in the zeal docs, there is probably some bug in the script.

---

<div class="post-metadata">

**Author:** ![mye](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@mye](https://swi-prolog.discourse.group/u/mye)\
**Post date:** [February 27, 2019, 7:45pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/5 "2019-02-27T19:45:34Z")

</div>

> [@swi](#):
>
> ‘read\_line\_to\_string/2’ is not showing up in the zeal docs, there is probably some bug in the script.

That’s because in my installation it’s not in the `readutil.html` file. It is also not in `man/lib/readutil.doc` so the homepage does something extra to find the docs for this. Another example is `concurrent_maplist/2`. Not sure what to do here… I’ll wait some before pushing this upstream, maybe someone knows something.

Redoing it with Prolog would be a nice excercise but also more work 😄

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [February 27, 2019, 8:05pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/6 "2019-02-27T20:05:05Z")

</div>

Some libraries are not part of the HTML files and the website generates the help directly from the PlDoc comments in the (loaded) library. Zeal will have the same limitations as help/1 from the toplevel. For some outdated libraries this is ok, but eventually all well maintained libraries should be moved to the HTML docs. That is not really hard. See `man/lib` in the sources.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [February 27, 2019, 8:08pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-docset-for-dash-zeal-et-discussion/3176/7 "2019-02-27T20:08:21Z")

</div>

> [@mye](#):
>
> Redoing it with Prolog would be a nice excercise but also more work 😄

Would probably have been less work. help/1 and apropos/1 maintain an index of the documented predicates and there is a call to get the HTML for a specific predicate. So, generating an HTML document for every documented predicate is about 2 lines 🙂
