Skip to content

Commit ce329df

Browse files
committed
update the site
1 parent 142761d commit ce329df

File tree

4 files changed

+18
-25
lines changed

4 files changed

+18
-25
lines changed

ChangeLog.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
1+
2013.12.02 Version 1.1.2
2+
23
* New Features
34
- Accessibility Theme for Ace (Peter Xiao)
45
- use snipetManager for expanding emmet snippets
@@ -21,9 +22,8 @@
2122
- Protobuf (Zef Hemel)
2223
- Soy
2324
- Handlebars
24-
-
2525

26-
2013.06.04 Version 1.1.01
26+
2013.06.04 Version 1.1.1
2727

2828
- Improved emacs keybindings (Robert Krahn)
2929
- Added markClean, isClean methods to UndoManager (Joonsoo Jeon)

build

Submodule build updated 726 files

doc/site/js/main.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,21 @@ $(function() {
66
editor.container.style.opacity = "";
77
embedded_editor = ace.edit("embedded_ace_code");
88
embedded_editor.container.style.opacity = "";
9-
editor.session.setMode("ace/mode/javascript");
109
embedded_editor.session.setMode("ace/mode/html");
10+
embedded_editor.setAutoScrollEditorIntoView(true);
11+
embedded_editor.setOption("maxLines", 40);
1112

1213
editor.setOptions({
13-
maxLines: 30
14-
})
14+
maxLines: 30,
15+
mode: "ace/mode/javascript",
16+
autoScrollEditorIntoView: true
17+
});
1518

1619
ace.config.loadModule("ace/ext/emmet", function() {
1720
ace.require("ace/lib/net").loadScript("http://nightwing.github.io/emmet-core/emmet.js", function() {
1821
embedded_editor.setOption("enableEmmet", true);
1922
editor.setOption("enableEmmet", true);
2023
});
21-
22-
embedded_editor.setOptions({
23-
enableSnippets: true,
24-
enableBasicAutocompletion: true
25-
});
2624
});
2725

2826
ace.config.loadModule("ace/ext/language_tools", function() {
@@ -34,10 +32,7 @@ $(function() {
3432
enableSnippets: true,
3533
enableBasicAutocompletion: true
3634
});
37-
});
38-
39-
embedded_editor.setAutoScrollEditorIntoView(true);
40-
editor.setAutoScrollEditorIntoView(true);
35+
});
4136

4237
$("ul.menu-list li").click(function(e) {
4338
if (e.target.tagName === "LI") {

index.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,14 @@ <h1>Embedding Ace in Your Site</h1>
173173
common operations, such as setting a different language mode or
174174
getting the contents from the editor.
175175
</p>
176-
<h2>Loading Ace from a Local URL</h2>
177-
<p>The above code is all you need to embed Ace in your site (including setting language modes
178-
and themes). Plus it's super fast because it's on Amazon's distributed content network.
179-
</p>
180-
<p>But, if you want to clone host Ace locally you can
176+
<h2>Loading Ace from a Local URL</h2>
177+
<p>If you want to clone and host Ace locally you can
181178
use one of the <a href="https://github.com/ajaxorg/ace-builds/">pre-packaged versions</a>. Just copy
182179
one of <code>src*</code> subdirectories somewhere into your project, or use RequireJS to load the
183-
contents of <a href="https://github.com/ajaxorg/ace/tree/master/lib/ace">lib/ace</a> as <code>ace</code>:
180+
contents of <a href="https://github.com/ajaxorg/ace/tree/master/lib/ace">lib/ace</a> folder as <code>ace</code>:
181+
</p>
182+
<p>The packaged version can also be loaded from CDN's such as <a href="http://www.jsdelivr.com/#!ace">jsDelivr</a> or <a href="http://cdnjs.com/libraries/ace/">cdnjs</a>.
184183
</p>
185-
<pre><code class="javascript">var ace = require("lib/ace");</code></pre>
186184
</div>
187185
<div class="tab-pane fade" id="howto">
188186
<h1>Working with Ace</h1>
@@ -1117,7 +1115,7 @@ <h1>Projects Using Ace</h1>
11171115
<a href="http://bakemycss.mypathforpython.appspot.com/">BakeMyCss</a>
11181116
</li>
11191117
<li style="width: 248px;">
1120-
<img src="http://codecombat.com/images/logo.png" style="left: 48px; top: 10px;">
1118+
<img src="http://codecombat.com/images/pages/base/logo.png" style="left: 48px; top: 10px;">
11211119
<a href="http://codecombat.com">Code Combat</a>
11221120
</li>
11231121
<li>
@@ -1178,7 +1176,7 @@ <h1>Projects Using Ace</h1>
11781176
</li>
11791177
<li id="add_your_site">
11801178
<p>+</p>
1181-
<a href="mailto:[email protected]?subject=Put%20me%20on%20the%20Ace%20site!&body= adfadf asdf">Your Site Here</a>
1179+
<a href="mailto:[email protected]?subject=Put%20me%20on%20the%20Ace%20site!">Your Site Here</a>
11821180
</li>
11831181
</ul>
11841182
</div>

0 commit comments

Comments
 (0)