mozilla/kuma — pull request #160 by ubernostrum (2012-04-13 10:38:33+00:00)
Title: Bug 742516: show/hide table of contents

This adds a new field on Revision for showing/hiding the ToC, a property on Document to tell whether the current revision wants a ToC or not, and support in forms/views.

Two things to note:

1. This assumes the default is to show the ToC, and the migration will toggle ToC on for every document. This seemed like the preferable option since we'll probably want the ToC most of the time, and can identify the individual articles we don't want it for and toggle them off.
2. The field itself is just kinda stuffed into the editing template up where the title/slug/etc. are; I wouldn't mind having someone better at UI than I am take a look and see if it logically belongs with some specific group of fields.