Minor updates
This commit is contained in:
parent
aba75b29fd
commit
37a1a082a6
2 changed files with 15 additions and 24 deletions
11
doc/template/jade/lib.jade
vendored
11
doc/template/jade/lib.jade
vendored
|
|
@ -177,9 +177,6 @@ mixin render_starting_tabs(obj, pos)
|
|||
h1.memberHeader
|
||||
-var heading = obj.path
|
||||
span.name #{heading}
|
||||
-if (pos >= 0)
|
||||
span.editInC9
|
||||
mixin formatGHHref(obj.file)
|
||||
|
||||
-if (true || obj.filename.indexOf("index") < 0)
|
||||
ul(class='nav tabs pos#{pos}', data-tabs='tabs')
|
||||
|
|
@ -217,10 +214,4 @@ mixin links(collection)
|
|||
ul.method-list
|
||||
for obj in collection
|
||||
li
|
||||
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>
|
||||
mixin link(obj)
|
||||
28
index.html
28
index.html
|
|
@ -64,26 +64,26 @@
|
|||
</p>
|
||||
|
||||
<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
|
||||
* language modes and 24 color themes!
|
||||
*/
|
||||
function add(x, y) {
|
||||
* language modes and 24 color themes!
|
||||
*/
|
||||
function add(x, y) {
|
||||
var resultString = "Hello, Ace! The result of your math is: ";
|
||||
var result = x + y;
|
||||
return resultString + result;
|
||||
}
|
||||
var addResult = add(3, 2);
|
||||
console.log(addResult);
|
||||
</div>
|
||||
var result = x + y;
|
||||
return resultString + result;
|
||||
}
|
||||
var addResult = add(3, 2);
|
||||
console.log(addResult);
|
||||
</div>
|
||||
<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
|
||||
<a href="http://ace.ajax.org/build/kitchen-sink.html" target="_blank">kitchen sink</a>.
|
||||
</p>
|
||||
<h2>Features</h2>
|
||||
<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>Automatic indent and outdent</li>
|
||||
<li>An optional command line</li>
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
<div id="embedded_ace_code"><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Ace in Action</title>
|
||||
<title>Ace in Action</title>
|
||||
<style type="text/css" media="screen">
|
||||
#editor {
|
||||
position: absolute;
|
||||
|
|
@ -703,7 +703,7 @@ module.exports = {
|
|||
<div id="sidebarContainer" class="span2">
|
||||
<div id="sidebar">
|
||||
<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">
|
||||
<li>
|
||||
<div class="menu-item"><a href="./api/ace.html" class="menuLink namespace">Ace</a></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue