Minor updates

This commit is contained in:
Garen Torikian 2013-01-05 00:06:28 -08:00 • committed by nightwing
commit 37a1a082a6
2 changed files with 15 additions and 24 deletions

View file

@ -177,9 +177,6 @@ mixin render_starting_tabs(obj, pos)
h1.memberHeader h1.memberHeader
-var heading = obj.path -var heading = obj.path
span.name #{heading} span.name #{heading}
-if (pos >= 0)
span.editInC9
mixin formatGHHref(obj.file)
-if (true || obj.filename.indexOf("index") < 0) -if (true || obj.filename.indexOf("index") < 0)
ul(class='nav tabs pos#{pos}', data-tabs='tabs') ul(class='nav tabs pos#{pos}', data-tabs='tabs')
@ -217,10 +214,4 @@ mixin links(collection)
ul.method-list ul.method-list
for obj in collection for obj in collection
li li
mixin link(obj) mixin link(obj)
mixin formatGHHref(url)
url = url.substring(url.indexOf("ace/lib"))
-url = url.replace(/\/{2,}/g, "/").replace(/\//g,"%2F")
<a href='http://c9.io/open/git/?url=git%3A%2F%2Fgithub.com%2Fajaxorg%2Face.git' title='Edit in Cloud9 IDE'>[edit]</a>

View file

@ -64,26 +64,26 @@
</p> </p>
<div id="ace_editor_demo">/** <div id="ace_editor_demo">/**
* In fact, you're looking at Ace right now. Go ahead and play with it! * In fact, you're looking at Ace right now. Go ahead and play with it!
* *
* We are currently showing off the JavaScript mode. Ace supports over 60 * We are currently showing off the JavaScript mode. Ace supports over 60
* language modes and 24 color themes! * language modes and 24 color themes!
*/ */
function add(x, y) { function add(x, y) {
var resultString = "Hello, Ace! The result of your math is: "; var resultString = "Hello, Ace! The result of your math is: ";
var result = x + y; var result = x + y;
return resultString + result; return resultString + result;
} }
var addResult = add(3, 2); var addResult = add(3, 2);
console.log(addResult); console.log(addResult);
</div> </div>
<p id="embed_link"><a href="#nav=embedding">Learn how to embed this in your own site</a></p> <p id="embed_link"><a href="#nav=embedding">Learn how to embed this in your own site</a></p>
<p class="highlight_note">Looking for a more full-featured demo? Check out the <p class="highlight_note">Looking for a more full-featured demo? Check out the
<a href="http://ace.ajax.org/build/kitchen-sink.html" target="_blank">kitchen sink</a>. <a href="http://ace.ajax.org/build/kitchen-sink.html" target="_blank">kitchen sink</a>.
</p> </p>
<h2>Features</h2> <h2>Features</h2>
<ul class="content-list"> <ul class="content-list">
<li><a href="http://pcwalton.blogspot.com/2010/11/syntax-highlighting-specification.html">Syntax highlighting</a> for over 60 languages (TextMate/Sublime <em>.tmlanguage</em> files can be imported)</li> <li><a href="http://pcwalton.blogspot.com/2010/11/syntax-highlighting-specification.html">Syntax highlighting</a> for over 60 languages (TextMate/Sublime Text<em>.tmlanguage</em> files can be imported)</li>
<li>Over 20 themes (TextMate/Sublime Text <em>.tmtheme</em> files can be imported)</li> <li>Over 20 themes (TextMate/Sublime Text <em>.tmtheme</em> files can be imported)</li>
<li>Automatic indent and outdent</li> <li>Automatic indent and outdent</li>
<li>An optional command line</li> <li>An optional command line</li>
@ -138,7 +138,7 @@
<div id="embedded_ace_code">&lt;!DOCTYPE html> <div id="embedded_ace_code">&lt;!DOCTYPE html>
&lt;html lang="en"> &lt;html lang="en">
&lt;head> &lt;head>
&lt;title>Ace in Action&lt;/title> &lt;title>Ace in Action&lt;/title>
&lt;style type="text/css" media="screen"> &lt;style type="text/css" media="screen">
#editor { #editor {
position: absolute; position: absolute;
@ -703,7 +703,7 @@ module.exports = {
<div id="sidebarContainer" class="span2"> <div id="sidebarContainer" class="span2">
<div id="sidebar"> <div id="sidebar">
<div id="well"> <div id="well">
<form id="searchbox" action="" class="navbar-search"> <input name="query" type="text" placeholder="Search the API" title="Search across all the documentation" class="search-query span3" /></form> <form id="searchbox" action="" class="navbar-search"> <input name="query" type="text" placeholder="Search the API" title="Search across all the documentation" class="search-query span2" /></form>
<ul class="menu"> <ul class="menu">
<li> <li>
<div class="menu-item"><a href="./api/ace.html" class="menuLink namespace">Ace</a></div> <div class="menu-item"><a href="./api/ace.html" class="menuLink namespace">Ace</a></div>