memorack 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -54,18 +54,18 @@ OS X (Pow + powder)
54
54
  Template
55
55
 
56
56
  .
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)
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 -- Default theme
65
- ├── config.json -- Configuration
66
- └── index.md -- Description(Show by top page)
64
+ └── custom -- Default theme
65
+ ├── config.json -- Configuration
66
+ └── index.md -- Description(Show by top page)
67
67
 
68
- ## Customizing
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
1
+ 0.0.2
@@ -1,5 +1,6 @@
1
1
  def update_version(path)
2
2
  version = `git describe --tags --dirty`.chomp
3
+ version[0, 1] = '' if version =~ /^v[0-9]/
3
4
  version.gsub!(/-([a-z0-9]+(-dirty)?)$/) { |m| "(#{$1})" }
4
5
 
5
6
  begin
@@ -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
- .title {
15
- background: $color;
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
- .subtitle {
100
- color: black;
101
- font-family: garamond, times new roman, times, serif;
102
- font-style: italic;
103
- font-weight: normal;
104
- font-size: 28px;
105
- padding: 0;
106
- margin: 0 0 4px;
107
- text-align: left;
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
- background: $color;
112
- color: white;
113
- font-family: garamond, times new roman, times, serif;
114
- font-weight: normal;
115
- font-size: 84px;
116
- text-align: center;
117
- margin: 0 0 30px 0;
118
- line-height: 100%;
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
- margin: 12px;
122
+ .logo {
123
+ margin: 12px;
124
+ }
123
125
  }
124
126
 
125
127
  .content {
@@ -1,6 +1,6 @@
1
1
  module MemoRack
2
2
  LONG_VERSION = File.read(File.expand_path('../../../VERSION', __FILE__)).chomp
3
- VERSION = LONG_VERSION.gsub(/-.*$/, '')
3
+ VERSION = LONG_VERSION.gsub(/(-.*|\(.*)$/, '')
4
4
 
5
5
  HOMEPAGE = 'https://github.com/gnue/memorack'
6
6
  end
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.1
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-14 00:00:00.000000000 Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack