This is the official documentation for Emojicode.
Cd into the src directory and run npm install.
To compile the documentation you then just have to run npm start which will compile the documentation into the docs directory.
The source for the documentation lives in the src directory.
-
lib,package.jsonandnode_modulesare needed by the compiler. -
templatescontains the templates for the documentation. -
staticcontains static resources like SASS (also compiled by the compiler) and fonts for the documentation. -
pagescontains HTML pages that are directly put into the main template and then copied over. These pages are listed inpages.json. -
referencesandguidescontains markdown documents that are compiled to a book.Each file represents one chapter and each book has a
chapters.jsonlisting these chapters. -
packagescontains resource to compile the package pages and APIs.Each package has its own directory containing a
meta.jsonand apackage.jsonfile.The
package.jsonfile represents the package API can be generated by the Emojicode Compiler using the-ror-R packageNameoption.To generate the
package.jsonfor the s package you would run this command:emojicodec -R s anyFile.emojic > package.jsonPackages can also have a
README.mdfile that will be display on the packages main page.All packages that shall be included in the documentation are listed in
packages/packages.json.
The Emojicode Documentation supports additional Markdown commands for adding callouts.
To create a Hint you start a line with >!H and to create a Caution notice you start the line with >!N.
Example:
>!H This chapter only introduces the three most important classes although there are many more.
>!H
>!H You can browse the whole API of the s package here.