Module: SketchUpYARD

Defined in:
lib/yard-sketchup.rb,
lib/yard-sketchup/version.rb,
lib/yard-sketchup/stubs/autoload.rb,
lib/yard-sketchup/yard/handlers/class_constants.rb,
lib/yard-sketchup/yard/handlers/global_constants.rb,
lib/yard-sketchup/yard/handlers/class_enum_constants.rb

Defined Under Namespace

Modules: HTMLHelper, Stubs Classes: ClassConstantHandler, ClassEnumConstantHandler, GlobalConstantHandler

Constant Summary collapse

VERSION =
'1.6.0'.freeze

Class Method Summary collapse

Class Method Details

.initObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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_pathObject



30
31
32
# File 'lib/yard-sketchup.rb', line 30

def self.templates_path
  File.join(__dir__, 'yard-sketchup', 'templates')
end