Skip to content

Commit

Permalink
[playframework#1147] Docs: Missing documentation home page sidebar li…
Browse files Browse the repository at this point in the history
…nks for reference docs
  • Loading branch information
Peter Hilton committed Oct 2, 2011
1 parent ade31d5 commit dbe94e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions documentation/manual/home.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>

Expand Down
4 changes: 3 additions & 1 deletion modules/docviewer/public/playmanual/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit dbe94e9

Please sign in to comment.