From 7302759ab01a274ff608f309eca8a48ae8a60a01 Mon Sep 17 00:00:00 2001
From: rolux At its core, Ox.doc is list of lines like this: ... If you are documenting an object with properties, these lines can be nested: The same goes for functions and events: foo bar foo bar foo bar foo bar This will be a text about Parasitical Inheritance
+ Our city object will look like this:
+
Obviously, in a real-world scenario, you would make sure that the
data already comes in this form.
*/
diff --git a/readme/html/OxDoc.html b/readme/html/OxDoc.html
deleted file mode 100644
index e6bd40ff..00000000
--- a/readme/html/OxDoc.html
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
{
"area": 1460851200,
"capital": false,
@@ -65,7 +66,8 @@ Ox.load({UI: {showScreen: true}, Geo: {}}, function() {
"region": "Asia, Eastern Asia, China",
"south": 31.050547083986842,
"west": 121.25731130524166
- }
+ }
+ Ox.doc - A JavaScript Documentation Language
-
-//@ name <type> summary
-/*@
-name <type> summary
- Longer description
- that may contain HTML.
-@*/
-
-
-/*@
-My.team <object> Some sports team
- name <string> The team's name
- lastMatch <object> The most recent result
- for <number> Goals for
- against <number> Goals against
- won <boolean> If true, last match was a win
-@*/
-
-/*@
-My.readURL <function> Reads data from a remote URL
- (url, callback) -> <o> Request handler
- cancel <function> The handler's only property. Takes no arguments. Cancels the request.
- url <string> Remote URL
- callback <function> Callback function
- result <object> Result object
- status <number> HTTP status code
- data <string> Data read from URL, or empty string
- stalled <event> Fires when the connection is stalled
- reason <string> Potential cause of the network problem
-@*/
-
-
-
-
-/*@
-foo <o> Demo object
- array <a> An array (and we don't care about the type of its elements)
- boolean <b> True or false
- date <d> Date object
- element <e> DOM element
- function <f> A function
- number <n> A number
- object <o> An object
- regexp <r> Regular Expression
- string <s> A string
- undefined <u> undefined
- Makes most sense for the result of a function that doesn't return,
- or as the last of multiple types, to indicate a property may be missing
- any_value <*> anything
- event <!> A custom event
- example1 <[n]|u> An array of numbers, or undefined
- example2 <s|'foo'> A string, default 'foo'
-@*/
-
-
-//@ My.TYPES <number> Request timeout, in seconds
-My.REQUEST_TIMEOUT = 60;
-try it out
-
-/*@
-My.getProtocol <function> Returns the protocol part of a URL
- (url) -> <string> Protocol, like "https", otherwise ""
- url <string> Just some URL
-@*/
-My.getProtocol = function(url) {
- var match = url.match(/^(.+):\/\//);
- return match ? match[1] : '';
-};
-
-/*@
-My.readURL <f> Reads data from a remote URL
- (url, callback) -> <o> Request handler
- (url, options, callback) -> <o> Request handler
- cancel <f> Function to cancel the request
- url <s> Remote URL
- options <o> Optional config object
- timeout <n|60> Timeout in seconds
- type <s|'GET'> Request type ('GET', 'POST', 'PUT' or 'DELETE')
- callback <f> Callback function
- result <o> Result object
- status <n> HTTP status code
- data <s> Data read from URL, or empty string
-@*/
-My.readURL = function(url, options, callback) {
- if (arguments.length == 2) {
- callback = options;
- options = {timeout: 60, type: 'GET'};
- }
-};
-try it out
-
-
-/*@
-My.Request <o> Remote request utility
-@*/
-My.Request = (function()
- // ...
- r
-)();
\ No newline at end of file
diff --git a/readme/html/ParasiticalInheritance.html b/readme/html/ParasiticalInheritance.html
deleted file mode 100644
index 72493710..00000000
--- a/readme/html/ParasiticalInheritance.html
+++ /dev/null
@@ -1,23 +0,0 @@
-Parasitical Inheritance
-
-
-Ox.IconList = function(options, self) {
- self = self || {};
- var that = Ox.Element({}, self)
- .defaults({
- ...
- pageLength: 100,
- selected: [],
- size: 128,
- sort: [],
- ...
- })
- .options(options || {});
-
- ...
-
- return that;
-}
-
blockquote+test +
/* diff --git a/readme/html/test2.html b/readme/test2.html similarity index 100% rename from readme/html/test2.html rename to readme/test2.html