lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.95k stars 398 forks source link

Update Templates.md to fix incorrect path structure #1588

Open topherfangio opened 1 month ago

topherfangio commented 1 month ago

Description

Fix incorrect path structure in "Overriding Templates by Registering a Template Path" section.

Because of the YARD::Templates::Engine.register_template_path '/path/to/mytemplates' code above, we need a default subdirectory to contain the class/html/customsection.erb and class/setup.rb files.

The paragraph immediately after this even mentions the default/class structure, but I missed it since it wasn't in the tree structure.

Tested with yard 0.9.36 to verify.

Completed Tasks