From 545a8a0c5e6118c26a1ccc4533c204548ea2e8b9 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 22 May 2014 23:46:07 -0700 Subject: [PATCH] Add YARD plugin A simple file that registers the parser and handlers with YARD. --- lib/puppetx/yardoc/yard/plugin.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/puppetx/yardoc/yard/plugin.rb diff --git a/lib/puppetx/yardoc/yard/plugin.rb b/lib/puppetx/yardoc/yard/plugin.rb new file mode 100644 index 0000000..adcde12 --- /dev/null +++ b/lib/puppetx/yardoc/yard/plugin.rb @@ -0,0 +1,8 @@ +require_relative 'parser' +require_relative 'handlers' + +YARD::Parser::SourceParser.register_parser_type(:puppet, + Puppetx::Yardoc::YARD::PuppetParser, + ['pp']) +YARD::Handlers::Processor.register_handler_namespace(:puppet, + Puppetx::Yardoc::YARD::Handlers)