The JavaScript API documentation for Apache Cordova.
The documentation is available at docs.cordova.io.
All of the Apache Cordova documentation is written with markdown, a lightweight markup language that can be typeset to HTML. Markdown provides a simple and flexible way to document Cordova's core API and platform-specific APIs.
docs/
docs/LANGUAGE
docs/LANGUAGE/VERSION
docs/LANGUAGE/VERSION/cordova/
docs/LANGUAGE/VERSION/guide/platforms/PLATFORMNAME/
We use Apache JIRA. By the way, you rock! Thanks for helping us improve the documentation!
Are you new to Git or contributing on GitHub? We have written a few Git tutorials to help you get started with contributing to the documentation.
Pull requests are welcome! We appreciate the use of topic branches.
git checkout -b issue_23
# do some coding ...
git commit -m "Issue 23: Fix a bad bug."
git push origin issue_23
# send pull request from branch issue_23 to cordova:master
Please see the STYLEGUIDE.md
file for guidelines on language and usage.
Right now documentation could be run using Node.js either on Windows, or on Linux box.
$ rm -r tmp public # Clear out old docs
$ ./bin/genjs # compile all docs
$ ./bin/genjs en dev # compile English dev docs
$ ./bin/genjs ru dev # compile Russian dev docs
$ ./bin/genjs es 3.5.0 # compile Spanish 3.5.0 docs
-
Go to Node.JS downloads page
-
Download and install package for your operation system.
-
Checkout this repository using Git
git clone https://github.com/apache/cordova-docs
-
Install dependencies. In the root of the cloned cordova-docs folder run
npm install
-
Now you able to build documentation locally.
When making minor edits, it is usually safe to simply render the edited from Markdown to HTML. Many code editors have plugins to render Markdown to HTML and there are a handful of good online editors.
Currently, a Node.JS script and joDoc-js are used to generate the HTML documentation.
To increment the documentation version (e.g. X.X.X
, either use the gulp task:
gulp newversion --version X.X.X
or manually run the incrementversion.js
script:
node ./tools/bin/incrementversion.js www/docs X.X.X
To only run for a specific language (this should only happen when translation is intentionally left out for a given version), specify the language to the Gulp task as follows:
gulp newversion --version X.X.X --language YY
or manually, to the script, as follows:
node ./tools/bin/incrementversion.js www/docs X.X.X YY
In order to maintain quality of documentation and translation, following tools could be used.
validatejsdoc
tool.
The tool validatejsdoc
allow verification of the current implementation of JSDoc with reference implementation. It was used during porting JSDoc to the Node version of JSDoc, and now currently not used in the workflow.