Skip to content

Commit d0fada7

Browse files
committed
- Add bashly add render_markdown library
1 parent 9aa8a78 commit d0fada7

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

lib/bashly/commands/render.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def source_path
7777

7878
if result.start_with? ':'
7979
id = result[1..]
80-
result = asset "views-alt/#{id}"
80+
result = asset "libraries/render/#{id}"
8181
end
8282

8383
return result if Dir.exist? result

lib/bashly/libraries/libraries.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ lib:
5656
- source: "lib/sample_function.sh"
5757
target: "%{user_lib_dir}/sample_function.%{user_ext}"
5858

59+
render_markdown:
60+
help: Copy the markdown templates to your project, allowing you to customize the markdown documentation output.
61+
skip_src_check: true
62+
files:
63+
- source: "render/markdown/markdown.gtx"
64+
target: "templates/markdown/markdown.gtx"
65+
- source: "render/markdown/render.rb"
66+
target: "templates/markdown/render.rb"
67+
post_install_message: |
68+
Generate your markdown documentation by running:
69+
70+
m`$ bashly render templates/markdown docs`
71+
5972
settings:
6073
help: Copy a sample settings.yml file to your project, allowing you to customize some bashly options.
6174
skip_src_check: true
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)