jasy.script.api package¶
Submodules¶
jasy.script.api.Comment module¶
-
class
jasy.script.api.Comment.Comment(text, context=None, lineNo=0, indent='', fileId=None)[source]¶ Bases:
objectComment class is attached to parsed nodes and used to store all comment related information.
The class supports a new Markdown and TomDoc inspired dialect to make developers life easier and work less repeative.
-
context= None¶
-
getHtml(highlight=True)[source]¶ Returns the comment text converted to HTML.
Parameters: highlight (bool) – Whether to highlight the code
-
params= None¶
-
returns= None¶
-
text= None¶
-
type= None¶
-
jasy.script.api.Data module¶
-
class
jasy.script.api.Data.ApiData(id, highlight=True)[source]¶ Bases:
objectContainer for all relevant API data.
Automatically generated, filled and cached by jasy.item.Script.getApiDocs().
-
assets¶
-
basename¶
-
construct¶
-
content¶
-
errors¶
-
events¶
-
highlight¶
-
id¶
-
implementedBy¶
-
implements¶
-
includedBy¶
-
includes¶
-
isEmpty¶
-
main¶
-
members¶
-
package¶
-
permutations¶
-
properties¶
-
size¶
-
statics¶
-
usedBy¶
-
uses¶
-
jasy.script.api.Writer module¶
-
class
jasy.script.api.Writer.ApiWriter(profile)[source]¶ Bases:
objectProcesses JavaScript classes into data for API documentation.
Exports plain data which can be used by a wide varity of tools for further processing or for displaying documentation. A good example of how to use the data generated by write is the ApiBrowser: https://github.com/zynga/apibrowser
-
write(distFolder, classFilter=None, callback='apiload', showInternals=False, showPrivates=False, printErrors=True, highlightCode=True)[source]¶ Writes API data generated from JavaScript into distFolder.
Parameters: - distFolder (str) – Where to store the API data
- classFilter (tuple or function) – Tuple of classes or method to use for filtering
- callback (function) – Name of callback to use for loading or None if pure JSON should be used
- showInternals (bool) – Include internal methods inside API data
- showPrivates (bool) – Include private methods inside API data
- printErrors (bool) – Whether errors should be printed to the console
- highlightCode (bool) – Whether to enable code highlighting using Pygments
-