Continue finalizing ace api doc
This commit is contained in:
parent
c31834c678
commit
782da7637b
8 changed files with 105 additions and 62 deletions
|
|
@ -965,4 +965,36 @@ body #dsq-reply h3{
|
|||
|
||||
#dsq-global-toolbar, #dsq-pagination, .dsq-trackback-url{
|
||||
display : none;
|
||||
}
|
||||
|
||||
html
|
||||
{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#nonFooter
|
||||
{
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
* html #nonFooter
|
||||
{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#wrapper
|
||||
{
|
||||
padding-bottom: 9em;
|
||||
}
|
||||
|
||||
#footer
|
||||
{
|
||||
position: relative;
|
||||
margin-top: -3.5em;
|
||||
}
|
||||
|
|
@ -60,6 +60,40 @@ $(document).ready(function () {
|
|||
});
|
||||
}
|
||||
|
||||
// force a sticky footer
|
||||
$(window).bind("load", function() {
|
||||
|
||||
var footerHeight = 0,
|
||||
footerTop = 0,
|
||||
$footer = $("#footer");
|
||||
|
||||
positionFooter();
|
||||
|
||||
function positionFooter() {
|
||||
|
||||
footerHeight = $footer.height();
|
||||
footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px";
|
||||
|
||||
if ( ($(document.body).height()+footerHeight) < $(window).height()) {
|
||||
$footer.css({
|
||||
position: "absolute"
|
||||
}).animate({
|
||||
top: footerTop
|
||||
})
|
||||
} else {
|
||||
$footer.css({
|
||||
position: "static"
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$(window)
|
||||
.scroll(positionFooter)
|
||||
.resize(positionFooter)
|
||||
|
||||
});
|
||||
|
||||
var s, sx;
|
||||
|
||||
// scrolling offset calculation via www.quirksmode.org
|
||||
|
|
|
|||
|
|
@ -7,26 +7,32 @@ include lib
|
|||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
|
||||
mixin head(title + " - " + fileName)
|
||||
mixin head
|
||||
|
||||
body
|
||||
|
||||
mixin navBar
|
||||
|
||||
header.filler
|
||||
#nonFooter
|
||||
#wrapper
|
||||
mixin navBar
|
||||
|
||||
header.filler
|
||||
|
||||
|
||||
.container
|
||||
.content
|
||||
.row.centerpiece
|
||||
.span3.offset6.sidebarContainer
|
||||
#sidebar
|
||||
include ace_menu.jade
|
||||
.span9.mainContent
|
||||
#documentation
|
||||
-if (isIndex)
|
||||
mixin markdown(indexContent)
|
||||
-else
|
||||
mixin api()
|
||||
|
||||
div(id="disqus_thread")
|
||||
|
||||
.container
|
||||
.content
|
||||
.row.centerpiece
|
||||
.span3.offset6.sidebarContainer
|
||||
#sidebar
|
||||
include ace_menu.jade
|
||||
.span9.mainContent
|
||||
#documentation
|
||||
mixin api()
|
||||
mixin footer
|
||||
|
||||
div(id="disqus_thread")
|
||||
|
||||
mixin footer
|
||||
|
||||
mixin endingScripts
|
||||
mixin endingScripts
|
||||
|
|
@ -9,12 +9,15 @@ mixin doctype
|
|||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
|
||||
mixin head(guideTitle, additionalCSS)
|
||||
mixin head
|
||||
meta(charset="utf-8")
|
||||
//- N.B. http://blog.yjl.im/2011/01/bad-value-x-ua-compatible-for-attribute.html
|
||||
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")
|
||||
|
||||
title #{guideTitle}
|
||||
-if (isIndex)
|
||||
title #{title}
|
||||
-else
|
||||
title #{title} - #{fileName}
|
||||
|
||||
meta(name="generator", content="c9-doc-build")
|
||||
meta(name="description", content="A complete and community-driven resource for learning and developing Node.js applications.")
|
||||
|
|
@ -28,9 +31,6 @@ mixin head(guideTitle, additionalCSS)
|
|||
|
||||
link(href="#{dirPrefix}resources/images/favicon.ico", rel="icon", type="image/x-icon")
|
||||
|
||||
if additionalCSS
|
||||
link(rel="stylesheet", href="#{additionalCSS}")
|
||||
|
||||
script(src="#{dirPrefix}resources/javascripts/jquery.js")
|
||||
script(src="#{dirPrefix}resources/javascripts/clicker.js")
|
||||
script(src="#{dirPrefix}resources/javascripts/jquery.collapse.js")
|
||||
|
|
@ -93,4 +93,4 @@ mixin formatGHHref(url, type)
|
|||
url = 'src/' + url
|
||||
|
||||
-url = url.replace(/\/{2,}/g, "/").replace(/\//g,"%2F")
|
||||
<a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fc9%2Fnodemanual.org.git&file=#{url}&line_start=3&line_end=0' title='Edit in Cloud9 IDE'>[edit]</a>
|
||||
<a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%ace.git&file=#{url}&line_start=3&line_end=0' title='Edit in Cloud9 IDE'>[edit]</a>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
include ../common_layout
|
||||
|
||||
mixin identifyBuild('','')
|
||||
|
||||
mixin doctype
|
||||
|
||||
mixin head('Ace API Reference')
|
||||
|
||||
body(onload="styleCode()")
|
||||
|
||||
mixin topBar(whoAmI)
|
||||
|
||||
mixin header
|
||||
|
||||
.container
|
||||
.content
|
||||
.row.container
|
||||
.span5.offset4.sidebarContainer
|
||||
#sidebar
|
||||
|
||||
.span11
|
||||
div.title
|
||||
h1.pageTitle #{title}
|
||||
|
||||
.dev_guide#content
|
||||
mixin markdown(data)
|
||||
|
||||
div#disqus_thread
|
||||
|
||||
mixin footer
|
||||
|
||||
mixin endingScripts
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue