Add options documentation

This commit is contained in:
Glavin Wiechert 2016-09-14 22:52:10 -03:00 committed by GitHub
parent 0f82daa55c
commit 3b4538a90a
1 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,17 @@ Please contribute with a Pull Request and add your favourite languages and beaut
Source code documentation can be found at http://glavin001.github.io/atom-beautify/docs/code/ Source code documentation can be found at http://glavin001.github.io/atom-beautify/docs/code/
You can use [`codo`](https://github.com/coffeedoc/codo) to build your own documentation. Simply run `codo` in the project's directory and it will be generated into `docs/code/`. You can use [`codo`](https://github.com/coffeedoc/codo) to build your own documentation. Simply run `codo` in the project's directory and it will be generated into `docs/code/`.
## Options Documentation
After you make a change to language or beautifier `options` you will need to update the `options.json` file that is created on install.
```bash
# Update src/options.json file to have new/changed options
npm run postinstall
# Update documentation to include information about those options
npm run docs
```
## How to add a Language: ## How to add a Language:
1. Create a new Language file in https://github.com/Glavin001/atom-beautify/tree/master/src/languages 1. Create a new Language file in https://github.com/Glavin001/atom-beautify/tree/master/src/languages