Skip to content

Commit 41e20d8

Browse files
committed
add makefile, ignore less in jekyll, use compiled css in docs
1 parent ac8fa5f commit 41e20d8

File tree

4 files changed

+1241
-11
lines changed

4 files changed

+1241
-11
lines changed

Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
DOCS = ./less/docs.less
2+
DOCS_COMPILED = ./css/docs-compiled.css
3+
DATE=$(shell date +%I:%M%p)
4+
CHECK=\033[32m✔ Done\033[39m
5+
HR=\033[37m--------------------------------------------------\033[39m
6+
PATH := ./node_modules/.bin:$(PATH)
7+
8+
#
9+
# COMPILE CSS
10+
#
11+
12+
build:
13+
@echo "\n"
14+
@printf "${DATE} · \033[35mCompiling Preboot...\033[39m"
15+
@recess --compile ${DOCS} > ${DOCS_COMPILED}
16+
@echo "\033[32m Success!\033[39m"
17+
18+
#
19+
# WATCH LESS FILES
20+
#
21+
22+
watch:
23+
echo "Watching less files..."; \
24+
watchr -e "watch('less/.*\.less') { system 'make' }"

_config.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
markdown: rdiscount
2-
permalink: pretty
31
pygments: true
4-
paginate: 5
2+
ignore: [/less]

_layouts/default.html

+3-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
<link href="/public/favicon.ico" rel="shortcut icon" type="image/x-icon">
77
<link href="http://gmpg.org/xfn/11" rel="profile">
88

9-
<!-- // Less.js at the ready! -->
10-
<link href='http://fonts.googleapis.com/css?family=Maven+Pro' rel='stylesheet' type='text/css'>
11-
<link rel="stylesheet/less" type="text/css" media="all" href="less/docs.less">
12-
<script type="text/javascript" src="js/less-1.3.3.min.js"></script>
13-
<script type="text/javascript" charset="utf-8">
14-
less.env = "development";
15-
less.watch();
16-
</script>
9+
<!-- CSS -->
10+
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Maven+Pro">
11+
<link rel="stylesheet" href="/css/docs-compiled.css">
1712

1813
<title>Preboot</title>
1914

0 commit comments

Comments
 (0)