convert css to scss
authorIan Kelling <ian@iankelling.org>
Mon, 3 Oct 2016 19:51:53 +0000 (12:51 -0700)
committerIan Kelling <ian@iankelling.org>
Mon, 3 Oct 2016 20:01:36 +0000 (13:01 -0700)
.gitignore
_site/disabled.css [deleted file]
b.rb
build.rb
css/common.scss [moved from _site/common.css with 100% similarity]
css/gitweb-site.scss [moved from _site/gitweb-site.css with 100% similarity]
css/main.scss [moved from _site/main.css with 100% similarity]
setup.sh

index e29feb8..8fee304 100644 (file)
@@ -1,3 +1,5 @@
+/.sass-cache
+/_site/css
 /_site/blog
 /_site/blog.html
 /_site/feed.xml
diff --git a/_site/disabled.css b/_site/disabled.css
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/b.rb b/b.rb
index b5e2aa9..6cc14ec 100644 (file)
--- a/b.rb
+++ b/b.rb
@@ -75,8 +75,8 @@ EOF
   <head>
     <meta charset="utf-8">
     <title>#{title}</title>
-    <link rel="stylesheet" href="/main.css">
-    <link rel="stylesheet" href="/common.css">
+    <link rel="stylesheet" href="/css/main.css">
+    <link rel="stylesheet" href="/css/common.css">
     <link rel="shortcut icon" href="/assets/favicon.png" />
     <meta name="description" content="#{o[:description] || DESCRIPTION}">
 #{o[:head]}
index 507bd4e..f724fe9 100755 (executable)
--- a/build.rb
+++ b/build.rb
@@ -89,3 +89,7 @@ if File.exists? ('../resume.md')
 end
 
 stdpage('favorite-things', File.read('../favorite-things.html'))
+
+# we could use ruby native stuff here, but this was
+# better documented so meh.
+system("scss --cache-location ../.sass-cache --update ../css:css")
similarity index 100%
rename from _site/common.css
rename to css/common.scss
similarity index 100%
rename from _site/gitweb-site.css
rename to css/gitweb-site.scss
similarity index 100%
rename from _site/main.css
rename to css/main.scss
index 8eb53b4..ee2d487 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -72,8 +72,8 @@ our @extra_breadcrumbs = (
 );
 our \$home_link_str = 'git';
 our \$site_footer = '$PWD/_site/gitweb-footer.html';
-push @stylesheets, "/gitweb-site.css";
-push @stylesheets, "/common.css";
+push @stylesheets, "/css/gitweb-site.css";
+push @stylesheets, "/css/common.css";
 our \$favicon = '/assets/favicon.png';
 # default is 25, cuts off descriptions.
 our \$projects_list_description_width = 40;