module SketchUpYARD

Constants

VERSION

Public Class Methods

init() click to toggle source
# File lib/yard-sketchup.rb, line 12
def self.init
  # https://github.com/burtlo/yard-cucumber/blob/master/lib/yard-cucumber.rb
  # This registered template works for yardoc
  # YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/templates'
  # The following static paths and templates are for yard server
  # YARD::Server.register_static_path File.dirname(__FILE__) + "/templates/default/fulldoc/html"

  YARD::Templates::Engine.register_template_path self.templates_path

  # https://www.rubydoc.info/gems/yard/file/docs/TagsArch.md#Adding_Custom_Tags
  # https://github.com/lsegal/yard/issues/1227
  # Custom visible tags:
  tags = [
    YARD::Tags::Library.define_tag('Known Bugs', :bug),
  ]
  YARD::Tags::Library.visible_tags |= tags
end
templates_path() click to toggle source
# File lib/yard-sketchup.rb, line 30
def self.templates_path
  File.join(__dir__, 'yard-sketchup', 'templates')
end