Labs/Ubiquity/Ubiquity 0.1 Development Tutorial: Difference between revisions

m (fixing URLs)
Line 56: Line 56:


= Development =
= Development =
If you want to start writing code for Ubiquity, you <b>need</b> to follow the [http://developer.mozilla.org/en/JavaScript_style_guide Mozilla's Javascript style guide] (especially with respect to indentation and variable naming). This helps to maintain consistency in Ubiquity's code.
(TODO: find a style guide for HTML + CSS)


The heart of the code can be found in the subdirectory:
The heart of the code can be found in the subdirectory:
Line 63: Line 67:
To get started, you may want to first take a look at the built-in commands and built-in noun types, which are in the files:
To get started, you may want to first take a look at the built-in commands and built-in noun types, which are in the files:


   ubiquity/chrome/content/builtincmds.js
   ubiquity/chrome/content/builtincmds.js (TODO: no longer here. update this section)
   ubiquity/chrome/content/nlparser/en/nountypes.js
   ubiquity/chrome/content/nlparser/en/nountypes.js


94

edits