Permalink
Browse files

[#1147] Docs: Missing documentation home page sidebar links for refer…

…ence docs
  • Loading branch information...
1 parent 3b10dd9 commit ec77f2677cc10270790d7f3f7bc8ab7d2e0cacdf Peter Hilton committed Oct 2, 2011
Showing with 6 additions and 4 deletions.
  1. +3 −3 documentation/manual/home.textile
  2. +3 −1 modules/docviewer/public/playmanual/navigation.js
@@ -164,8 +164,8 @@ h2. <a name="references">References</a>
Extended references for day-to-day hacking.
-# "Quick index":index
-# "API documentation (Javadoc)":/@api/index.html
+# <a class="navigation" href="index">Quick index</a>
+# <a class="navigation" href="/@api/index.html">API documentation (Javadoc)</a>
# "Cheat sheets":cheatsheet/commandLine
## "Command Line":cheatsheet/commandLine
## "Controllers":cheatsheet/controllers
@@ -177,7 +177,7 @@ Extended references for day-to-day hacking.
## "Template tags":tags
## "Java extensions":javaextensions
## "Validations":validation-builtin
-# "Configuration reference":configuration
+# <a class="navigation" href="configuration">Configuration reference</a>
h2. <a name="modules">Distribution Modules</a>
@@ -4,6 +4,7 @@ $(document).ready(function(){
var navigation = '<ol class="navigation">';
var h2index = 0;
var h3index = 0;
+
$('#pageContent h2, #pageContent h3, #pageContent > div > ol > li > a').each(function(index) {
// In each heading, construct an in-page link from its id, or the nested a[name]
@@ -36,7 +37,8 @@ $(document).ready(function(){
}
// Output a nested LI for this H3.
- if (this.tagName == 'H3' || (this.tagName == 'A' && $(this).parent('li').find('li').size() > 0) ) {
+ var linkHasNestedList = (this.tagName == 'A' && $(this).parent('li').find('li').size() > 0);
+ if (this.tagName == 'H3' || linkHasNestedList || $(this).hasClass('navigation') ) {
h3index++;
// Start a new nested OL for the first H3.

0 comments on commit ec77f26

Please sign in to comment.