# Simplifying (Making) Mathematica Documentation

**URL:** <https://community.wolfram.com/t/simplifying-making-mathematica-documentation/13541>\
**Category:** Staff Picks\
**Tags:** mathematica, wolfram-add-ons, external-interfaces, packages-and-paclets, staff-pick\
**Created:** [January 15, 2019, 2:42am UTC](https://community.wolfram.com/t/simplifying-making-mathematica-documentation/13541 "2019-01-15T02:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![b3m2a1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/b3m2a1/32/7562_2.png) [@b3m2a1](https://community.wolfram.com/u/b3m2a1)\
**Post date:** [January 15, 2019, 2:42am UTC](https://community.wolfram.com/t/simplifying-making-mathematica-documentation/13541/1 "2019-01-15T02:42:56Z")

</div>

The Documentation Center is nice. The docs are reasonably complete. Stuff is somewhat searchable. It looks really nice. But if you’ve ever made your own system for generating these kinds of docs you know it’s a _lot_ of work. The notebooks are unnecessarily complicated. There are cutesy little elements here and there that don’t really buy us much.

I wanted something cleaner that would be easier to write, more transparent, and, crucially, more distributable. What I came up with was the [SimpleDocs](https://paclets.github.io/PacletServer/simpledocs.html#main-content) package.

[  
  ![5722urg.jpg](https://global.discourse-cdn.com/wolfram/original/3X/1/0/106069b58ee14ac44116c895f4846ed971d6f56d.jpeg)  
 ](https://paclets.github.io/PacletServer/simpledocs.html#main-content)

I’ll write a more extended example soon and once the interface has gelled completely, but I want to show off what it can do for us, entirely automatically. To do so I decided to make documentation for my (admittedly a little bloated) package development package [BTools](https://paclets.github.io/PacletServer/btools.html#main-content).

The first thing I did was start a new project from the `SimpleDocs` interface (I’ll document that later so it’s easy to follow along). The build folder started out much simpler (but I didn’t have to do much of anything for it!) but here’s what it looks like now:

 ![hmm.png](https://global.discourse-cdn.com/wolfram/original/2X/a/ad906f1fccb46884f919ab06749bcc85b1963b36.png)

I’m making two things in tandem, on the one hand I’m making docs that integrate nicely with the documentation center. Here’s an example of what I get when searching for `WebSiteBuild` locally:

 ![meep.png](https://global.discourse-cdn.com/wolfram/original/2X/5/5c58bddeff3069d580866b0077d53bfdaecd76d2.png)

It looks a lot like WRI docs (excluding the fact that I only have autogenerated content and the “Details” are hidden), but there are a few key differences, the big two being that it’s much, much simpler internally and it’s _version independent_. I package my own stylesheet with the docs, so they can be used cross version without issue and without looking terrible.

All the content in that notebook was generated automatically, though. I didn’t write any of it (and there are lots of details and options you don’t see here). In fact, I actually generated _all_ of the function docs automatically, and now I can go back and more fully document the big ones at my leisure. There is also a tutorial on how this works in the `SimpleDocs` docs.

At the same time as I build the docs notebooks I also built out .md files for each docs page. This is nice because these can then be fed into any number of website generators to make nice docs websites. Here’s the website I built for BTools that comes automatically from `SimpleDocs` (again, this will be documented more thoroughly in the coming weeks):

[  
  ![5444meh.png](https://global.discourse-cdn.com/wolfram/original/3X/6/c/6c9121dfe0880400c877d22b529934b2ac13c94d.png)  
 ](https://www.wolframcloud.com/objects/b3m2a1.docs/BTools/)

In this there’s an [index of functions](https://www.wolframcloud.com/objects/b3m2a1.docs/BTools/index/functions.html) and if I had guides or tutorials yet there’d be an index for both of those as well.

You can also [search for keywords] ([https://www.wolframcloud.com/objects/b3m2a1.docs/BTools/search.html?q=App](https://www.wolframcloud.com/objects/b3m2a1.docs/BTools/search.html?q=App)) which is powered by [tipuesearch](http://www.tipue.com/search/):

[  
  ![bleep.png](https://global.discourse-cdn.com/wolfram/original/3X/6/7/67a171467720e78d03e2012efbc49c4489051301.png)  
 ](https://www.wolframcloud.com/objects/b3m2a1.docs/BTools/search.html?q=App)

And there is much, much more I could do with this website and things. At the moment I’m really just scraping the very most basic stuff of what I can automatically do without _any_ real effort on my part (except for in development).

Hopefully this has shown that Mathematica docs can be simpler and, once I’ve finished using this package to document itself, can be simpler to make for anyone. As I said, I’m hoping to get this done and finalized in the next few weeks and once that is through I will write here again (and write a blog post) detailing how you can easily use it for yourself.

In the meantime here’s a video of the documentation for BTools being autogenerated:

[  
  ![yt.jpg](https://global.discourse-cdn.com/wolfram/original/3X/2/9/29f7f052baac09aaf8aa2b16f148bc68f6f8348e.jpeg)  
 ](https://www.youtube.com/watch?v=4lTrMwHCjyU)

---

<div class="post-metadata">

**Author:** ![jbaldwin](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jbaldwin](https://community.wolfram.com/u/jbaldwin)\
**Post date:** [January 15, 2019, 4:55pm UTC](https://community.wolfram.com/t/simplifying-making-mathematica-documentation/13541/2 "2019-01-15T16:55:28Z")

</div>

Excellent! Hovering over the “thumbs up” icon shows “Rate this as good.” Too bad there isn’t a bigger thumb.

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [February 1, 2019, 12:54pm UTC](https://community.wolfram.com/t/simplifying-making-mathematica-documentation/13541/3 "2019-02-01T12:54:47Z")

</div>

![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)

- Congratulations! This post is now a [Staff Pick](http://community.wolfram.com/content?curTag=staff+picks) as distinguished by a badge on [your profile](http://community.wolfram.com/web/b3m2a1)! Thank you, keep it coming, and consider contributing your work to the [The Notebook Archive](http://notebookarchive.org)!
