Sha256: 1c755d89849e71afa4050c5118b03b1bea3bef572c6cb9cd30b4df3909676822
Contents?: true
Size: 1.9 KB
Versions: 3
Compression:
Stored size: 1.9 KB
Contents
# Guard::Yard Guard::Yard allows you to automatically run and update your local YARD Documentation Server. It aims to centralize your file monitoring to guard instead of using the `yard server --reload` command which can be unreliable and provides little control over the generated documentation. Guard::Yard monitors files and updates only the documentation than changes, as opposed to generating the entire documentation suite. That means that changes to your documentation are available sooner! ## Install Ensure you have [Guard](https://github.com/guard/guard) installed before you continue. Add guard-yard to your Gemfile (inside development group): gem 'guard-yard' Install or update your bundle: bundle install Add the default guard-yard definition to your Guardfile: guard init yard ## Guardfile Please read the [Guardfile DSL documentation](https://github.com/guard/guard#readme) for additional information. Guard::Yard automatically detects changes in your app, lib and ext directories, but you can have it monitor additional files using the Guardfile DSL. Guard::Yard also provides some basic options for doc generation and running the YARD server. guard 'yard', :port => '8808' do ... end Available options: :port => '8808' # Port on which the server shoud run. ## Clean-Slate Documentation To generate or re-create documentation from a clean-slate, run the following command: rm -rf .yardoc && yard doc When booting guard, Guard::Yard will do this for you automatically if no .yardoc directory is present. Once guard is running you can execute this command by using the `Ctrl-\` key combination as well. ## Troubleshooting If you are running into issues, try re-creating your documentation using `rm -rf .yardoc && yard doc`. Once this operation is complete, restart guard. If you are still having problems, open a new issue in the GitHub issue tracker for this project.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
guard-yard-1.0.2 | README.markdown |
guard-yard-1.0.1 | README.markdown |
guard-yard-1.0.0 | README.markdown |