Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow classic jump list to scroll and fix div tag #308

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docco.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docco.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ and rendering it to the specified output path.
write = (source, sections, config) ->

destination = (file) ->
path.join(config.output, file + '.html')
path.join(config.output, file.replace(/[\\\/]/g, '_') + '.html')

The **title** of the file is either the first heading in the prose, or the
name of the source file.
Expand Down
9 changes: 9 additions & 0 deletions resources/classic/docco.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,18 @@ ul.sections > li > div {
display: block;
}

#jump_page_wrapper{
position: fixed;
right: 0;
top: 0;
bottom: 0;
}

#jump_page {
padding: 5px 0 3px;
margin: 0 0 25px 25px;
max-height: 100%;
overflow: auto;
}

#jump_page .source {
Expand Down
17 changes: 10 additions & 7 deletions resources/classic/docco.jst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page">
<% for (var i=0, l=sources.length; i<l; i++) { %>
<% var source = sources[i]; %>
<a class="source" href="<%= path.basename(destination(source)) %>">
<%= path.basename(source) %>
</a>
<% } %>
<div id="jump_page_wrapper">
<div id="jump_page">
<% for (var i=0, l=sources.length; i<l; i++) { %>
<% var source = sources[i]; %>
<a class="source" href="<%= path.basename(destination(source)) %>">
<%= source %>
</a>
<% } %>
</div>
</div>
</div>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion resources/linear/docco.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ ul.sections {

.toc {
max-height: 0;
overflow: hidden;
overflow: auto;
text-align: center;
font-size: 13px;
line-height: 20px;
Expand Down
2 changes: 1 addition & 1 deletion resources/linear/docco.jst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<% var source = sources[i]; %>
<li>
<a class="source" href="<%= path.basename(destination(source)) %>">
<%= path.basename(source) %>
<%= source %>
</a>
</li>
<% } %>
Expand Down
17 changes: 9 additions & 8 deletions resources/parallel/docco.jst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<% for (var i=0, l=sources.length; i<l; i++) { %>
<% var source = sources[i]; %>
<a class="source" href="<%= path.basename(destination(source)) %>">
<%= path.basename(source) %>
</a>
<% } %>
<div id="jump_page_wrapper">
<div id="jump_page">
<% for (var i=0, l=sources.length; i<l; i++) { %>
<% var source = sources[i]; %>
<a class="source" href="<%= path.basename(destination(source)) %>">
<%= source %>
</a>
<% } %>
</div>
</div>
</div>
</li>
Expand Down