# Make notebooks suitable for the Documentation Center?

**URL:** <https://community.wolfram.com/t/make-notebooks-suitable-for-the-documentation-center/9696>\
**Category:** Questions\
**Tags:** mathematica, computational-notebooks, ui-ux-and-ide\
**Created:** [November 30, 2016, 9:42am UTC](https://community.wolfram.com/t/make-notebooks-suitable-for-the-documentation-center/9696 "2016-11-30T09:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [November 30, 2016, 9:42am UTC](https://community.wolfram.com/t/make-notebooks-suitable-for-the-documentation-center/9696/1 "2016-11-30T09:42:30Z")

</div>

Normally, documentation meant to be integrated into the Documentation Center is built from special source notebooks.

According to the Workbench documentation, it should also be possible to use [alternative formats](http://reference.wolfram.com/workbench/topic/com.wolfram.eclipse.help/html/tasks/documentationpaclets/alternative.html). Just create the notebooks and put them at the specified location. They will be copied over during documentation build and they will get a suitable URI for the Documentation Center.

I tried this and it works, but there are some problems. The biggest one is that pressing the Reload button opens the notebooks in a standard window instead of in a documentation window.

[![enter image description here](https://i.stack.imgur.com/3ZOHP.png)](https://i.stack.imgur.com/3ZOHP.png)

How should a notebook be prepared so that it properly integrates into the Documentation Center and is well-behaved there?

This question is specifically about simple notebooks that do not go through the documentation build process.

As a first test, I was simply building a license page, for which there is no standard template. But eventually I would like to use this for documentation in alternative formats, as I won’t always have time to create standard format documentation.

* * *

**“What have you tried?”**

The toolbar source can be examined using

```
FrontEndResource["FEExpressions", "HelpViewerToolbar"]

```

The button seems to invoke the [Revert](http://reference.wolfram.com/language/ref/frontendobject/Revert.html) front end token, i.e. it’s similar to (the same as?) File → Revert… This explains the behaviour I see but I still don’t know why normal documentation notebooks don’t behave this way.

I tried taking `StyleDefinitions` (which also adds the toolbar docked cell) and `TaggingRules` from a normally built doc notebook and trasferring them to my custom notebook. I manually edited the URIs to match. The Revert button still re-opens the notebook in a new window.

Note that I am not asking for adding the help toolbar to the notebook. This can indeed by accomplished by ensuring that the notebook or its stylesheet has `DockedCells -> FEPrivate`FrontEndResource["FEExpressions", "HelpViewerToolbar"]`. But the Reload button will still open a new window which, while it does have the help toolbar, isn’t the same as the documentation browser. There are clear differences:

- The doc browser disappears and the notebook window appear at a new position on screen
- The notebook window doesn’t show “- Wolfram Mathematica 10.0” in the title bar
- When using the search toolbar in the notebook window, it will open a new doc browser instead of showing the results in the same window

What I want is to stay within the documentation browser and not open a separate notebook.

* * *

[Cross posted on StackExchange.](http://mathematica.stackexchange.com/q/132392/12)

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [November 30, 2016, 10:39am UTC](https://community.wolfram.com/t/make-notebooks-suitable-for-the-documentation-center/9696/2 "2016-11-30T10:39:40Z")

</div>

`Saveable -> False` needs to be set on the notebook for this to work properly. That’s all that’s needed.

When this option is set, it is not possible to use File → Save…

However, `NotebookSave` and `Export` do work.
