Skip to content

Commit e0d19c5

Browse files
committed
Move some files into doc/ to keep root dir clean
1 parent e56c553 commit e0d19c5

File tree

9 files changed

+53
-53
lines changed

9 files changed

+53
-53
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
CodeMirror 2 is a rewrite of [CodeMirror
44
1](http://github.com/marijnh/CodeMirror). The docs live
5-
[here](http://codemirror.net/manual.html), and the project page is
5+
[here](http://codemirror.net/doc/manual.html), and the project page is
66
[http://codemirror.net/](http://codemirror.net/).

demo/runmode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>CodeMirror: Mode Runner Demo</h1>
3434
<dl>
3535
<dt><code>text (string)</code></dt>
3636
<dd>The document to run through the highlighter.</dd>
37-
<dt><code>mode (<a href="../manual.html#option_mode">mode spec</a>)</code></dt>
37+
<dt><code>mode (<a href="../doc/manual.html#option_mode">mode spec</a>)</code></dt>
3838
<dd>The mode to use (must be loaded as normal).</dd>
3939
<dt><code>output (function or DOM node)</code></dt>
4040
<dd>If this is a function, it will be called for each token with

compress.html renamed to doc/compress.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<head>
44
<title>CodeMirror: Compression Helper</title>
55
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
6-
<link rel="stylesheet" type="text/css" href="doc/docs.css"/>
6+
<link rel="stylesheet" type="text/css" href="docs.css"/>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
88
</head>
99
<body>
1010

1111
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
1212

1313
<pre class="grey">
14-
<img src="doc/baboon.png" class="logo" alt="logo"/>/* Script compression
14+
<img src="baboon.png" class="logo" alt="logo"/>/* Script compression
1515
helper */
1616
</pre>
1717

internals.html renamed to doc/internals.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CodeMirror: Internals</title>
55
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
6-
<link rel="stylesheet" type="text/css" href="doc/docs.css"/>
6+
<link rel="stylesheet" type="text/css" href="docs.css"/>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
88
<style>dl dl {margin: 0;} .update {color: #d40 !important}</style>
99
</head>
@@ -12,7 +12,7 @@
1212
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
1313

1414
<pre class="grey">
15-
<img src="doc/baboon.png" class="logo" alt="logo"/>/* (Re-) Implementing A Syntax-
15+
<img src="baboon.png" class="logo" alt="logo"/>/* (Re-) Implementing A Syntax-
1616
Highlighting Editor in JavaScript */
1717
</pre>
1818

@@ -341,7 +341,7 @@ <h2 id="summary">What Gives?</h2>
341341
really known for respecting document flow. Now that an editor instance
342342
is a plain <code>div</code> element, it is much easier to size it to
343343
fit the surrounding elements. You don't even have to make it scroll if
344-
you do not <a href="demo/resize.html">want to</a>.</li>
344+
you do not <a href="../demo/resize.html">want to</a>.</li>
345345

346346
</ul>
347347

manual.html renamed to doc/manual.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CodeMirror: User Manual</title>
55
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
6-
<link rel="stylesheet" type="text/css" href="doc/docs.css"/>
6+
<link rel="stylesheet" type="text/css" href="docs.css"/>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
88
<style>dl dl {margin: 0;}</style>
99
</head>
@@ -12,7 +12,7 @@
1212
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
1313

1414
<pre class="grey">
15-
<img src="doc/baboon.png" class="logo" alt="logo"/>/* User manual and
15+
<img src="baboon.png" class="logo" alt="logo"/>/* User manual and
1616
reference guide */
1717
</pre>
1818

@@ -46,7 +46,7 @@ <h2 id="usage">Basic Usage</h2>
4646
example:</p>
4747

4848
<pre>&lt;script src="lib/codemirror.js">&lt;/script>
49-
&lt;link rel="stylesheet" href="lib/codemirror.css">
49+
&lt;link rel="stylesheet" href="../lib/codemirror.css">
5050
&lt;script src="mode/javascript/javascript.js">&lt;/script></pre>
5151

5252
<p>Having done this, an editor instance can be created like
@@ -130,7 +130,7 @@ <h2 id="config">Configuration</h2>
130130
<dd>The theme to style the editor with. You must make sure the
131131
CSS file defining the corresponding <code>.cm-s-[name]</code>
132132
styles is loaded (see
133-
the <a href="theme/"><code>theme</code></a> directory in the
133+
the <a href="../theme/"><code>theme</code></a> directory in the
134134
distribution). The default is <code>"default"</code>, for which
135135
colors are included in <code>codemirror.css</code>. It is
136136
possible to use multiple theming classes at once—for
@@ -159,7 +159,7 @@ <h2 id="config">Configuration</h2>
159159
<dd>Configures the keymap to use. The default
160160
is <code>"default"</code>, which is the only keymap defined
161161
in <code>codemirror.js</code> itself. Extra keymaps are found in
162-
the <a href="keymap/"><code>keymap</code></a> directory.</dd>
162+
the <a href="../keymap/"><code>keymap</code></a> directory.</dd>
163163

164164
<dt id="option_extraKeys"><code>extraKeys (object)</code></dt>
165165
<dd>Can be used to specify extra keybindings for the editor.
@@ -296,7 +296,7 @@ <h2 id="styling">Customized Styling</h2>
296296
simply provide the colors for that mode, and can be adapted in a
297297
very straightforward way. To style the editor itself, it is
298298
possible to alter or override the styles defined
299-
in <a href="lib/codemirror.css"><code>codemirror.css</code></a>.</p>
299+
in <a href="../lib/codemirror.css"><code>codemirror.css</code></a>.</p>
300300

301301
<p>Some care must be taken there, since a lot of the rules in this
302302
file are necessary to have CodeMirror function properly. Adjusting
@@ -370,7 +370,7 @@ <h2 id="styling">Customized Styling</h2>
370370

371371
<p>Themes are also simply CSS files, which define colors for
372372
various syntactic elements. See the files in
373-
the <a href="theme/"><code>theme</code></a> directory.</p>
373+
the <a href="../theme/"><code>theme</code></a> directory.</p>
374374

375375
<h2 id="api">Programming API</h2>
376376

@@ -655,14 +655,14 @@ <h2 id="addons">Add-ons</h2>
655655
editor functionality. In brief, they are:</p>
656656

657657
<dl>
658-
<dt id="util_dialog"><a href="lib/util/dialog.js"><code>dialog.js</code></a></dt>
658+
<dt id="util_dialog"><a href="../lib/util/dialog.js"><code>dialog.js</code></a></dt>
659659
<dd>Provides a very simple way to query users for text input.
660660
Adds an <code>openDialog</code> method to CodeMirror instances,
661661
which can be called with an HTML fragment that provides the
662662
prompt (should include an <code>input</code> tag), and a
663663
callback function that is called when text has been entered.
664664
Depends on <code>lib/util/dialog.css</code>.</dd>
665-
<dt id="util_searchcursor"><a href="lib/util/searchcursor.js"><code>searchcursor.js</code></a></dt>
665+
<dt id="util_searchcursor"><a href="../lib/util/searchcursor.js"><code>searchcursor.js</code></a></dt>
666666
<dd>Adds the <code>getSearchCursor(query, start, caseFold) →
667667
cursor</code> method to CodeMirror instances, which can be used
668668
to implement search/replace functionality. <code>query</code>
@@ -691,15 +691,15 @@ <h2 id="addons">Add-ons</h2>
691691
replacement.</dd>
692692
</dl></dd>
693693

694-
<dt id="util_search"><a href="lib/util/search.js"><code>search.js</code></a></dt>
694+
<dt id="util_search"><a href="../lib/util/search.js"><code>search.js</code></a></dt>
695695
<dd>Implements the search commands. CodeMirror has keys bound to
696696
these by default, but will not do anything with them unless an
697697
implementation is provided. Depends
698698
on <code>searchcursor.js</code>, and will make use
699699
of <a href="#util_dialog"><code>openDialog</code></a> when
700700
available to make prompting for search queries less ugly.</dd>
701-
<dt id="util_foldcode"><a href="lib/util/foldcode.js"><code>foldcode.js</code></a></dt>
702-
<dd>Helps with code folding. See <a href="demo/folding.html">the
701+
<dt id="util_foldcode"><a href="../lib/util/foldcode.js"><code>foldcode.js</code></a></dt>
702+
<dd>Helps with code folding. See <a href="../demo/folding.html">the
703703
demo</a> for an example.
704704
Call <code>CodeMirror.newFoldFunction</code> with a range-finder
705705
helper function to create a function that will, when applied to
@@ -710,12 +710,12 @@ <h2 id="addons">Add-ons</h2>
710710
no block is started on that line. This file
711711
provides <code>CodeMirror.braceRangeFinder</code>, which finds
712712
blocks in brace languages (JavaScript, C, Java, etc).</dd>
713-
<dt id="util_runmode"><a href="lib/util/runmode.js"><code>runmode.js</code></a></dt>
713+
<dt id="util_runmode"><a href="../lib/util/runmode.js"><code>runmode.js</code></a></dt>
714714
<dd>Can be used to run a CodeMirror mode over text without
715715
actually opening an editor instance.
716-
See <a href="demo/runmode.html">the demo</a> for an
716+
See <a href="../demo/runmode.html">the demo</a> for an
717717
example.</dd>
718-
<dt id="util_simple-hint"><a href="lib/util/simple-hint.js"><code>simple-hint.js</code></a></dt>
718+
<dt id="util_simple-hint"><a href="../lib/util/simple-hint.js"><code>simple-hint.js</code></a></dt>
719719
<dd>Provides a framework for showing autocompletion hints.
720720
Defines <code>CodeMirror.simpleHint</code>, which takes a
721721
CodeMirror instance and a hinting function, and pops up a widget
@@ -726,7 +726,7 @@ <h2 id="addons">Add-ons</h2>
726726
and <code>to</code> give the start and end of the token that is
727727
being completed. Depends
728728
on <code>lib/util/simple-hint.css</code>.</dd>
729-
<dt id="util_javascript-hint"><a href="lib/util/javascript-hint.js"><code>javascript-hint.js</code></a></dt>
729+
<dt id="util_javascript-hint"><a href="../lib/util/javascript-hint.js"><code>javascript-hint.js</code></a></dt>
730730
<dd>Defines <code>CodeMirror.javaScriptHint</code>, which is a
731731
simple hinting function for the JavaScript mode.</dd>
732732
</dl>
@@ -909,13 +909,13 @@ <h2 id="modeapi">Writing CodeMirror Modes</h2>
909909
provide <code>startState</code>, <code>copyState</code>,
910910
<code>compareStates</code>, and <code>indent</code> methods. For
911911
an example of a trivial mode, see
912-
the <a href="mode/diff/diff.js">diff mode</a>, for a more involved
913-
example, see the <a href="mode/clike/clike.js">C-like
912+
the <a href="../mode/diff/diff.js">diff mode</a>, for a more involved
913+
example, see the <a href="../mode/clike/clike.js">C-like
914914
mode</a>.</p>
915915

916916
<p>Sometimes, it is useful for modes to <em>nest</em>—to have one
917917
mode delegate work to another mode. An example of this kind of
918-
mode is the <a href="mode/htmlmixed/htmlmixed.js">mixed-mode HTML
918+
mode is the <a href="../mode/htmlmixed/htmlmixed.js">mixed-mode HTML
919919
mode</a>. To implement such nesting, it is usually necessary to
920920
create mode objects and copy states yourself. To create a mode
921921
object, there are <code>CodeMirror.getMode(options,

oldrelease.html renamed to doc/oldrelease.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CodeMirror</title>
55
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
6-
<link rel="stylesheet" type="text/css" href="doc/docs.css"/>
6+
<link rel="stylesheet" type="text/css" href="docs.css"/>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
88
<link rel="alternate" href="http://twitter.com/statuses/user_timeline/242283288.rss" type="application/rss+xml"/>
99
</head>
@@ -12,15 +12,15 @@
1212
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
1313

1414
<pre class="grey">
15-
<img src="doc/baboon.png" class="logo" alt="logo"/>/* Old release history */
15+
<img src="baboon.png" class="logo" alt="logo"/>/* Old release history */
1616

1717
</pre>
1818
<p class="rel">26-05-2011: <a href="http://codemirror.net/codemirror-2.01.zip">Version 2.01</a>:</p>
1919
<ul class="rel-note">
20-
<li>Add a <a href="mode/smalltalk/index.html">Smalltalk mode</a>.</li>
21-
<li>Add a <a href="mode/rst/index.html">reStructuredText mode</a>.</li>
22-
<li>Add a <a href="mode/python/index.html">Python mode</a>.</li>
23-
<li>Add a <a href="mode/plsql/index.html">PL/SQL mode</a>.</li>
20+
<li>Add a <a href="../mode/smalltalk/index.html">Smalltalk mode</a>.</li>
21+
<li>Add a <a href="../mode/rst/index.html">reStructuredText mode</a>.</li>
22+
<li>Add a <a href="../mode/python/index.html">Python mode</a>.</li>
23+
<li>Add a <a href="../mode/plsql/index.html">PL/SQL mode</a>.</li>
2424
<li><code>coordsChar</code> now works</li>
2525
<li>Fix a problem where <code>onCursorActivity</code> interfered with <code>onChange</code>.</li>
2626
<li>Fix a number of scrolling and mouse-click-position glitches.</li>
@@ -57,7 +57,7 @@ <h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMi
5757
<li>Disabling spell-check on WebKit browsers now works.</li>
5858
</ul>
5959

60-
<p class="rel">08-02-2011: <a href="http://codemirror.net/2/">Version 2.0 beta 1</a>:</p>
60+
<p class="rel">08-02-2011: <a href="http://codemirror.net/">Version 2.0 beta 1</a>:</p>
6161
<p class="rel-note">CodeMirror 2 is a complete rewrite of
6262
CodeMirror, no longer depending on an editable frame.</p>
6363

doc/reporting.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CodeMirror: Reporting Bugs</title>
55
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
6-
<link rel="stylesheet" type="text/css" href="../doc/docs.css"/>
6+
<link rel="stylesheet" type="text/css" href="docs.css"/>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
88
<style>li { margin-top: 1em; }</style>
99
</head>
@@ -12,7 +12,7 @@
1212
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
1313

1414
<pre class="grey">
15-
<img src="../doc/baboon.png" class="logo" alt="logo"/>/* Reporting bugs
15+
<img src="baboon.png" class="logo" alt="logo"/>/* Reporting bugs
1616
effectively */
1717
</pre>
1818

doc/upgrade_v2.2.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<head>
44
<title>CodeMirror: Upgrading to v2.2</title>
55
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"/>
6-
<link rel="stylesheet" type="text/css" href="../doc/docs.css"/>
6+
<link rel="stylesheet" type="text/css" href="docs.css"/>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
88
</head>
99
<body>
1010

1111
<h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMirror</a></h1>
1212

1313
<pre class="grey">
14-
<img src="../doc/baboon.png" class="logo" alt="logo"/>/* Upgrading to v2.2
14+
<img src="baboon.png" class="logo" alt="logo"/>/* Upgrading to v2.2
1515
*/
1616
</pre>
1717

@@ -31,7 +31,7 @@ <h2>No more default.css</h2>
3131
<h2>Different key customization</h2>
3232

3333
<p>CodeMirror has moved to a system
34-
where <a href="../manual.html#option_keyMap">keymaps</a> are used to
34+
where <a href="manual.html#option_keyMap">keymaps</a> are used to
3535
bind behavior to keys. This means <a href="../demo/emacs.html">custom
3636
bindings</a> are now possible.</p>
3737

@@ -40,7 +40,7 @@ <h2>Different key customization</h2>
4040
and <code>smartHome</code>, are no longer supported. Instead, you can
4141
provide custom bindings to influence the way these keys act. This is
4242
done through the
43-
new <a href="../manual.html#option_extraKeys"><code>extraKeys</code></a>
43+
new <a href="manual.html#option_extraKeys"><code>extraKeys</code></a>
4444
option, which can hold an object mapping key names to functionality. A
4545
simple example would be:</p>
4646

0 commit comments

Comments
 (0)