Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Merge pull request #12 from s0urce-c0de/main
Browse files Browse the repository at this point in the history
Fix a few things and shut up VSCode about ugly af 4 space formatting. and 2 space formatting is better.
  • Loading branch information
vcc3v authored Dec 12, 2024
2 parents 6cdd8c5 + 88dfb22 commit 905142e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.insertSpaces": true,
"editor.tabSize": 2
}
6 changes: 3 additions & 3 deletions _plugins/admonitions.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

ADMONITION = /(> \[\!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\] *((?:\n> .*)+))/

TEMPLATE = '''<div class="admonition" style="border-color: #%06x;" markdown="1">
ADMONITION_TEMPLATE = '''<div class="admonition" style="border-color: #%06x;" markdown="1">
<p class="admonition-type" style="fill: #%06x;" markdown="1">%s %s</p>
<p class="admonition-message" markdown="1">%s</p>
</div>'''
Expand All @@ -40,7 +40,7 @@
for full, admonition, admonition_content in matches do
admonition_content.sub! '> ', ''
admonition_content.gsub! '\n> ', '\n'
content.sub! full, TEMPLATE % [
content.sub! full, ADMONITION_TEMPLATE % [
ADMONITION_TO_DATA[admonition.downcase.to_sym][:color],
ADMONITION_TO_DATA[admonition.downcase.to_sym][:color],
Octicons::Octicon.new(ADMONITION_TO_DATA[admonition.downcase.to_sym][:icon]).to_svg,
Expand All @@ -50,8 +50,8 @@
end
else
Jekyll.logger.debug "No admonitions found."
page.content = content
end
page.content = content
else
Jekyll.logger.debug "Not processing #{page.name}"
end
Expand Down
Empty file modified assets/favicon/convert.sh
100755 → 100644
Empty file.

0 comments on commit 905142e

Please sign in to comment.