Closed
Bug 665715
Opened 13 years ago
Closed 12 years ago
Kuma: Show a table of contents on each page, showing H1-H3 headers
Categories
(developer.mozilla.org Graveyard :: Wiki pages, defect, P1)
developer.mozilla.org Graveyard
Wiki pages
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: openjck, Assigned: groovecoder)
References
Details
(Whiteboard: u=administrator c=wiki p=3 s=2012-04-10 t=2012-04-10)
No description provided.
Reporter | ||
Updated•13 years ago
|
Version: unspecified → Kuma
Reporter | ||
Updated•13 years ago
|
Whiteboard: [u: user] [c: wiki] → [u: administrator] [c: wiki]
Assignee | ||
Updated•13 years ago
|
Assignee: lcrouch → nobody
Assignee | ||
Updated•13 years ago
|
Target Milestone: 1.0 alpha → ---
Updated•13 years ago
|
Target Milestone: --- → 0.9.9
Reporter | ||
Updated•13 years ago
|
Whiteboard: [u: administrator] [c: wiki] → u=administrator c=wiki p=
Assignee | ||
Comment 1•13 years ago
|
||
Automatically-generated Table of Contents. This needs the template system.
Target Milestone: 0.9.9 → ---
Updated•13 years ago
|
Priority: -- → P1
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → 2.6
Assignee | ||
Comment 3•12 years ago
|
||
11:40:53 - sheppy: groovecoder: It's automatic. There's a preference to say how many levels deep to make the TOC, and we have it set to only go two deep. 11:41:09 - groovecoder: sheppy: okay 11:41:09 - sheppy: And it pulls them from the Hx blocks.
Comment 4•12 years ago
|
||
I'd suggest we try the HTML5 Outline algorithm to construct a ToC: https://developer.mozilla.org/en/Sections_and_Outlines_of_an_HTML5_document#The_HTML5_Outline_Algorithm http://dev.w3.org/html5/spec/headings-and-sections.html#outlines We already use something like it, to identify the sections for section editing.
Comment 5•12 years ago
|
||
And, this doesn't necessarily need the templating system. But, it should build the ToC from the source resulting *after* macro evaluation so that any sections or headers introduced by templates are included
Comment 6•12 years ago
|
||
Ideally, there would be some way to tell the wiki not to generate a TOC on a particular page; for example, landing pages don't usually need one, since they're small, and the TOC clutters them up.
Assignee | ||
Comment 7•12 years ago
|
||
Checkbox for No TOC, generate TOC markup server-side w/ HTML5 outline algorithm. Highest-level header might actually be H2 or something.
Whiteboard: u=administrator c=wiki p= → u=administrator c=wiki p=3
Assignee | ||
Updated•12 years ago
|
Whiteboard: u=administrator c=wiki p=3 → u=administrator c=wiki p=3 s=2012-04-10 t=2012-04-03
Target Milestone: 2.6 → ---
Assignee | ||
Updated•12 years ago
|
Whiteboard: u=administrator c=wiki p=3 s=2012-04-10 t=2012-04-03 → u=administrator c=wiki p=3 s=2012-04-10 t=2012-04-10
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → lcrouch
Comment 8•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/96d1c26e977f1b2bc3d196f23081ef90f49b7e07 Merge pull request #154 from groovecoder/665715-toc Bug 665715 generate TOC for document view
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 9•12 years ago
|
||
qa-verified https://developer-stage9.mozilla.org/en/HTML/HTML5
Updated•12 years ago
|
Version: Kuma → unspecified
Updated•12 years ago
|
Component: Website → Landing pages
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•