summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/templates.rb
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-24 18:25:12 -0300
committerSeba Gamboa <[email protected]>2015-09-24 18:25:12 -0300
commitc1f2404de71e9a8f73271b05f59a225728212069 (patch)
treeb4f3842661dd6edd38c594579335e1ae5ea61f33 /lib/yard/mruby/templates.rb
parentcc49ade5e7029e4d8d8d62b7c09590042b43d65d (diff)
downloadyard-mruby-c1f2404de71e9a8f73271b05f59a225728212069.tar.gz
yard-mruby-c1f2404de71e9a8f73271b05f59a225728212069.zip
Generating C API HTML Layout
Diffstat (limited to 'lib/yard/mruby/templates.rb')
-rw-r--r--lib/yard/mruby/templates.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/yard/mruby/templates.rb b/lib/yard/mruby/templates.rb
new file mode 100644
index 0000000..43ffd99
--- /dev/null
+++ b/lib/yard/mruby/templates.rb
@@ -0,0 +1,7 @@
+YARD::MRuby::TEMPLATES_PATH = File.expand_path('../../../../templates', __FILE__)
+
+# This registered template works for yardoc
+YARD::Templates::Engine.register_template_path YARD::MRuby::TEMPLATES_PATH
+
+# The following static paths and templates are for yard server
+# YARD::Server.register_static_path File.join(YARD::MRuby::TEMPLATES_PATH,'default/fulldoc/html')