From c15c91e243abdaca98019a3fa9b005d9d4b7b933 Mon Sep 17 00:00:00 2001 From: Danny Ben Shitrit Date: Sun, 24 May 2026 09:21:07 +0300 Subject: [PATCH] - Add github_markdown library to libraries index --- examples/render-mandoc/docs/download.1 | 2 +- examples/render-mandoc/docs/download.md | 2 +- lib/bashly/libraries/libraries.yml | 15 +++++++++++++++ spec/approvals/cli/add/list | 4 ++++ spec/bashly/library_source_spec.rb | 2 +- 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/examples/render-mandoc/docs/download.1 b/examples/render-mandoc/docs/download.1 index 2e24bee9..a17f28f0 100644 --- a/examples/render-mandoc/docs/download.1 +++ b/examples/render-mandoc/docs/download.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 3.9 .\" -.TH "download" "1" "March 2026" "Version 0.1.0" "Sample application" +.TH "download" "1" "May 2026" "Version 0.1.0" "Sample application" .SH NAME \f[B]download\f[R] \- Sample application .SH SYNOPSIS diff --git a/examples/render-mandoc/docs/download.md b/examples/render-mandoc/docs/download.md index 0a7df8d4..c2cc68e5 100644 --- a/examples/render-mandoc/docs/download.md +++ b/examples/render-mandoc/docs/download.md @@ -1,6 +1,6 @@ % download(1) Version 0.1.0 | Sample application % Lana Lang -% March 2026 +% May 2026 NAME ================================================== diff --git a/lib/bashly/libraries/libraries.yml b/lib/bashly/libraries/libraries.yml index c6afabf1..662a3028 100644 --- a/lib/bashly/libraries/libraries.yml +++ b/lib/bashly/libraries/libraries.yml @@ -79,6 +79,21 @@ render_markdown: m`$ bashly render templates/markdown docs` +render_markdown_github: + help: Copy the github markdown templates to your project, allowing you to customize the markdown documentation output. + skip_src_check: true + files: + - source: "render/markdown_github/README.md" + target: "templates/markdown_github/README.md" + - source: "render/markdown_github/markdown.gtx" + target: "templates/markdown_github/markdown.gtx" + - source: "render/markdown_github/render.rb" + target: "templates/markdown_github/render.rb" + post_install_message: | + Generate your markdown documentation by running: + + m`$ bashly render templates/markdown_github docs` + render_mandoc: help: Copy the mandoc templates to your project, allowing you to customize the man documentation output. skip_src_check: true diff --git a/spec/approvals/cli/add/list b/spec/approvals/cli/add/list index ccde5e5c..68c0368c 100644 --- a/spec/approvals/cli/add/list +++ b/spec/approvals/cli/add/list @@ -34,6 +34,10 @@ render_markdown Copy the markdown templates to your project, allowing you to customize the markdown documentation output. +render_markdown_github + Copy the github markdown templates to your project, allowing you to customize + the markdown documentation output. + render_mandoc Copy the mandoc templates to your project, allowing you to customize the man documentation output. diff --git a/spec/bashly/library_source_spec.rb b/spec/bashly/library_source_spec.rb index 6da20e5e..ffdc3a03 100644 --- a/spec/bashly/library_source_spec.rb +++ b/spec/bashly/library_source_spec.rb @@ -102,7 +102,7 @@ expect(subject.libraries.keys).to match_array %i[ colors completions completions_script completions_yaml config help hooks ini lib settings stacktrace strings validations yaml - render_markdown render_mandoc + render_markdown render_markdown_github render_mandoc ] end