Skip to content

Commit

Permalink
[#425] Add svgeez github wiki addon if .github directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mosharaf13 committed Jul 18, 2023
1 parent 924d21b commit be61bd2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .template/addons/svgeez/.github/wiki/template.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@

# frozen_string_literal: true

use_source_path __dir__
if Dir.exist?('.github/wiki')
# Your existing code here
use_source_path __dir__

copy_file 'Add-new-svg-icon.md', '.github/wiki/Add-new-svg-icon.md'
copy_file 'Add-new-svg-icon.md', '.github/wiki/Add-new-svg-icon.md'

# SVG Sprite
insert_into_file '.github/wiki/_Sidebar.md', after: /## Operations.*\n/ do
<<~RUBY
# SVG Sprite
insert_into_file '.github/wiki/_Sidebar.md', after: /## Operations.*\n/ do
<<~RUBY
- [[Add new svg icon]]
RUBY
- [[Add new svg icon]]
RUBY
end
end

0 comments on commit be61bd2

Please sign in to comment.