-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Generating Brackets API Docs
This set of commands creates the Brackets API Docs to be published at http://brackets.io/docs/current.
Note: There is a known bug that the incorrect folder structure and links are generated on Windows, so use Mac to generate documents until that bug is fixed.
This command installs the node apify package globally so you can run it from any folder. Note that apify is still being developed, so it's a good idea to re-run this command each time to get the latest package.
cd ~
sudo npm install -g apify
Brackets API documents are posted to the https://github.com/adobe/brackets.io repo, so clone that repo and create a new branch.
git clone https://github.com/adobe/brackets.io.git
cd brackets.io
git checkout -b yourname/new-branch-name
Checkout the Brackets branch that you want to generate API Docs for. Currently, we only generate docs for the current master, but once we reach version 1.0, we'll want to generate docs for each major and minor release.
git checkout master
git pull
git status
The source folder for API Docs is the brackets/src
folder. The following command assumes that you are in the root of the brackets repo.
The output folder is brackets.io/docs/current
. The following command assumes that the brackets and brackets.io root folders are side-by-side.
apify -s src/ -o ../brackets.io/docs/current
The API Docs should now be in the brackets.io repo in your new branch, so you'll need to submit a pull request and then merge files.