ace/doc/resources/common_layout.jade
2012-04-28 16:25:33 +02:00

98 lines
No EOL
3.6 KiB
Text

-var dirPrefix = "./";
-var landingPage = 'false'
-var versions = []
mixin doctype
!!! 5
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[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
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")
-if (isIndex)
title #{title}
-else
title #{title} - #{fileName}
meta(name="generator", content="c9-doc-build")
meta(name="description", content="Ace API documentation for the online code editor.")
meta(name="author", content="Garen J. Torikian")
meta(name="viewport", content="width=device-width,initial-scale=1")
link(rel="stylesheet", href="#{dirPrefix}resources/csses/bootstrap.min.css")
link(rel="stylesheet", href="#{dirPrefix}resources/csses/prettify.css")
link(rel="stylesheet", href="#{dirPrefix}resources/csses/ace_api.css")
link(href="#{dirPrefix}resources/images/favicon.ico", rel="icon", type="image/x-icon")
script(src="#{dirPrefix}resources/javascripts/jquery.js")
script(src="#{dirPrefix}resources/javascripts/clicker.js")
script(src="#{dirPrefix}resources/javascripts/jquery.collapse.js")
script(src="#{dirPrefix}resources/javascripts/jquery.cookie.js")
script(src="#{dirPrefix}resources/javascripts/bootstrap-dropdown.js")
script(src="#{dirPrefix}resources/javascripts/jquery-scrollspy.js")
script(script src="#{dirPrefix}resources/javascripts/prettify-extension.js")
mixin navBar
div.navbar.navbar-fixed-top
div.navbar-inner
div.container
span.brand
ul.nav.topLinks
li#ace_site
a(href='../../index.html') Ace
li#ace_api.active
a(href='http://ace.ajax.org/api') Ace API Reference
form(id='searchbox', action='', class='navbar-search pull-right')
input(class='search-query span3', name='query', type='text', placeholder="Search the API", title="Search across all the documentation")
mixin footer
footer#footer
.container
.footer-text.pull-right
p
<a href="http://www.c9.io">About Cloud9</a> | Ace & Cloud9 IDE are &copy; <a href="http://ajax.org">Ajax.org</a> 2012
mixin endingScripts
// scripts concatenated and minified via ant build script
<script defer src="#{dirPrefix}resources/javascripts/plugins.js"></script>
<script defer src="#{dirPrefix}resources/javascripts/prettify.js"></script>
<script defer src="#{dirPrefix}resources/javascripts/prettify-extension.js"></script>
<script defer src="#{dirPrefix}resources/javascripts/ux.js"></script>
<script defer src="#{dirPrefix}resources/javascripts/disqus-ext.js"></script>
<script defer src="#{dirPrefix}resources/javascripts/ga.js"></script>
//-<script defer src="tree.js"></script>
// end scripts
//if lt IE 7
script(src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js")
script
window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
mixin identifyBuild(tree, type)
landingPage = 'true'
-dirPrefix = './'
mixin markdown(text, inline)
!= markdown(text, inline)
mixin formatGHHref(url, type)
url = url.substring(url.indexOf("src/") + 4)
if type == 'nodejs_ref_guide'
url = url.substring(0, url.lastIndexOf("#"))
url = 'src/' + url
else if type == 'nodejs_dev_guide'
url = 'src/' + url
-url = url.replace(/\/{2,}/g, "/").replace(/\//g,"%2F")
<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>