-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#425] Add svgeez github wiki addon if .github directory exists
- Loading branch information
1 parent
924d21b
commit be61bd2
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|