0.0
The project is in a healthy, maintained state
guard-boondoc watches the files boondoc reads, as set in .boondoc.yml and .yardopts, and regenerates your markdown documentation when one of them changes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 2.20
 Project Readme

guard-boondoc

A Guard plugin that regenerates your Boondoc docs when a file Boondoc reads changes.

Setup

# Gemfile
group :development do
  gem 'guard-boondoc'
end
bundle exec guard init boondoc   # adds `guard :boondoc` to your Guardfile
bundle exec guard

What it does

The docs are generated when Guard starts, and again whenever one of these changes, is added, or is removed:

  • the Ruby files in sources
  • the README and the files you stitch in
  • the files matching assets
  • .boondoc.yml and .yardopts

What to build comes from Boondoc's own configuration, not from Guardfile options. The plugin reads .boondoc.yml and .yardopts on every run, so editing them takes effect without restarting Guard, and changes inside the output directory never trigger a run.

If Boondoc fails, for example in strict mode with warnings, the error is shown and Guard marks the task as failed. The next change to a file Boondoc reads tries again.

Overriding what is watched

If you need to regenerate for files Boondoc doesn't read, or want full control, add your own watch lines:

guard :boondoc do
  watch(%r{^templates/})
  watch('.boondoc.yml')
end

Any watch turns off the detection described above, so your patterns alone decide when the docs are regenerated. Changes inside the output directory still never trigger a run, so a broad pattern such as /\.md$/ is safe.

Recording the outcome

To let another tool, such as a status line, see how the last run went, give the plugin a status_file:

guard :boondoc, status_file: 'tmp/docs_status.txt'

After each run the file holds ok, or error followed by Boondoc's message. Its directory is created if needed.

Development

bundle exec rake   # specs and RuboCop

License

MIT, see LICENSE.txt.