memorack 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +45 -10
- data/VERSION +1 -1
- data/etc/tools/update_version.rb +1 -0
- data/lib/memorack/themes/oreilly/oreilly/styles.scss +27 -25
- data/lib/memorack/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -54,18 +54,18 @@ OS X (Pow + powder)
|
|
|
54
54
|
Template
|
|
55
55
|
|
|
56
56
|
.
|
|
57
|
-
├── .gitignore
|
|
58
|
-
├── .powenv
|
|
59
|
-
├── Gemfile
|
|
60
|
-
├── config.ru
|
|
61
|
-
├── content
|
|
62
|
-
│ └── README.md
|
|
57
|
+
├── .gitignore -- for git
|
|
58
|
+
├── .powenv -- for pow + rbenv
|
|
59
|
+
├── Gemfile -- `bundle install`
|
|
60
|
+
├── config.ru -- for rack application
|
|
61
|
+
├── content -- Content directory for memo
|
|
62
|
+
│ └── README.md -- Sample file(remove it)
|
|
63
63
|
└── themes
|
|
64
|
-
└── custom
|
|
65
|
-
├── config.json
|
|
66
|
-
└── index.md
|
|
64
|
+
└── custom -- Default theme
|
|
65
|
+
├── config.json -- Configuration
|
|
66
|
+
└── index.md -- Description(Show by top page)
|
|
67
67
|
|
|
68
|
-
##
|
|
68
|
+
## Customization
|
|
69
69
|
|
|
70
70
|
### Layout
|
|
71
71
|
|
|
@@ -76,6 +76,41 @@ Template
|
|
|
76
76
|
Created 'index.html'
|
|
77
77
|
(Edit 'index.html'...)
|
|
78
78
|
|
|
79
|
+
Directory
|
|
80
|
+
|
|
81
|
+
└── themes
|
|
82
|
+
└── custom
|
|
83
|
+
├── config.json
|
|
84
|
+
├── index.html <-- Edit layout
|
|
85
|
+
└── index.md
|
|
86
|
+
|
|
87
|
+
### Logo
|
|
88
|
+
|
|
89
|
+
└── themes
|
|
90
|
+
└── custom
|
|
91
|
+
├── config.json <-- Add "logo": "/img/logo.png"
|
|
92
|
+
├── img
|
|
93
|
+
│ └── logo.png <-- Add image file
|
|
94
|
+
├── index.html <-- Add <img id="logo" src="{{logo}}" />
|
|
95
|
+
└── index.md
|
|
96
|
+
|
|
97
|
+
### Syntax highlighting
|
|
98
|
+
|
|
99
|
+
Download [highlight.js](http://softwaremaniacs.org/soft/highlight/en/)
|
|
100
|
+
|
|
101
|
+
└── themes
|
|
102
|
+
└── custom
|
|
103
|
+
├── config.json
|
|
104
|
+
├── highlight.js <-- `unzip highlight.zip`
|
|
105
|
+
├── index.html <-- Add code
|
|
106
|
+
└── index.md
|
|
107
|
+
|
|
108
|
+
Add code to `index.html`
|
|
109
|
+
|
|
110
|
+
<link rel="stylesheet" href="/highlight.js/styles/default.css">
|
|
111
|
+
<script src="/highlight.js/highlight.pack.js"></script>
|
|
112
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
|
113
|
+
|
|
79
114
|
#### mustache variables
|
|
80
115
|
|
|
81
116
|
Basic variables -- `{{VAR}}`
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
data/etc/tools/update_version.rb
CHANGED
|
@@ -9,10 +9,10 @@ $color: #00cc99;
|
|
|
9
9
|
@mixin theme-color($color) {
|
|
10
10
|
header {
|
|
11
11
|
border-top: 12px solid $color;
|
|
12
|
-
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
.title {
|
|
14
|
+
background: $color;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -96,30 +96,32 @@ footer {
|
|
|
96
96
|
text-align: center;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
99
|
+
header {
|
|
100
|
+
.subtitle {
|
|
101
|
+
color: black;
|
|
102
|
+
font-family: garamond, times new roman, times, serif;
|
|
103
|
+
font-style: italic;
|
|
104
|
+
font-weight: normal;
|
|
105
|
+
font-size: 28px;
|
|
106
|
+
padding: 0;
|
|
107
|
+
margin: 0 0 4px;
|
|
108
|
+
text-align: left;
|
|
109
|
+
}
|
|
109
110
|
|
|
110
|
-
.title {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
111
|
+
.title {
|
|
112
|
+
background: $color;
|
|
113
|
+
color: white;
|
|
114
|
+
font-family: garamond, times new roman, times, serif;
|
|
115
|
+
font-weight: normal;
|
|
116
|
+
font-size: 84px;
|
|
117
|
+
text-align: center;
|
|
118
|
+
margin: 0 0 30px 0;
|
|
119
|
+
line-height: 100%;
|
|
120
|
+
}
|
|
120
121
|
|
|
121
|
-
.logo {
|
|
122
|
-
|
|
122
|
+
.logo {
|
|
123
|
+
margin: 12px;
|
|
124
|
+
}
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
.content {
|
data/lib/memorack/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: memorack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rack
|