Remove Ruby sass dependency from 'postman.css'

This commit is contained in:
0x1eef 2024-07-22 23:50:29 -03:00
parent f83f83a08c
commit 64763ade01
3 changed files with 2 additions and 4 deletions

4
Rules
View file

@ -35,9 +35,7 @@ Nanoc::Tidy
##
# See packages/typescript/postman
compile "/css/vendor/postman.scss" do
filter :sass, syntax: :scss, style: :compact
filter :rainpress
compile "/css/vendor/postman.css" do
write("/css/vendor/postman.css")
end

View file

@ -4,7 +4,7 @@ module Utils::Inline
def inline_css(path)
class_name = File.basename(path, File.extname(path))
%|<style class="css #{class_name}">| \
"#{items[path.sub(".css", ".scss")].compiled_content}" \
"#{items[path].compiled_content}" \
"</style>"
end
end