almanac 0.9.1 → 0.9.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 +14 -2
- data/app/assets/javascripts/almanac/application.js +1 -1
- data/app/assets/stylesheets/almanac/3-main.css.scss +1 -1
- data/app/assets/stylesheets/almanac/application.css +1 -2
- data/app/assets/stylesheets/almanac/bootstrap_and_overrides.css.less +36 -0
- data/lib/almanac.rb +0 -1
- data/lib/almanac/version.rb +1 -1
- metadata +20 -3
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Almanac is the most elegant mountable blog engine that can be easily hooked up i
|
|
3
3
|
|
4
4
|
## Main Features
|
5
5
|
- Slick default design that can be easily customized.
|
6
|
-
- Markdown for
|
6
|
+
- kramdown (better Markdown) for all input fields.
|
7
7
|
- Drafts that make sense.
|
8
8
|
- Easy Google Analytics support.
|
9
9
|
- Disqus support for comments.
|
@@ -71,6 +71,18 @@ Lastly, you'll have to specify the name of your user model. Create a `config/ini
|
|
71
71
|
Almanac.user_class = "User" # other possibilities: "Author", "Writer", etc.
|
72
72
|
```
|
73
73
|
|
74
|
+
## Kramdown
|
75
|
+
[Kramdown](http://kramdown.rubyforge.org/index.html) is the superset of Markdown. All input fields can use it. Check out all [syntax rules](http://kramdown.rubyforge.org/syntax.html) for kramdown. One of the best examples of kramdown usage is code highlighting that is part of Almanac. In your post you can simply write:
|
76
|
+
|
77
|
+
```
|
78
|
+
~~~ruby
|
79
|
+
def foo
|
80
|
+
puts "bar"
|
81
|
+
end
|
82
|
+
```
|
83
|
+
|
84
|
+
And it will generate a nice looking block of Ruby code once your post is published.
|
85
|
+
|
74
86
|
## Post Comments
|
75
87
|
Almanac supports commenting via [Disqus](http://disqus.com/)—the best commenting solution on the web. If you want your blog to support commenting, register with Disqus, add a website and copy-paste "Site Shortname" to the appropriate field in Blog Settings.
|
76
88
|
|
@@ -95,4 +107,4 @@ Go back to the `almanac` directory and run `rspec spec`.
|
|
95
107
|
- Write code for a feature or bug fix.
|
96
108
|
- Add Rspec tests for it.
|
97
109
|
- Commit, do not make changes to rakefile or version.
|
98
|
-
- Submit a pull request.
|
110
|
+
- Submit a pull request.
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@import 'twitter/bootstrap/bootstrap';
|
2
|
+
@import 'twitter/bootstrap/variables.less';
|
3
|
+
@import 'twitter/bootstrap/mixins.less';
|
4
|
+
@import 'twitter/bootstrap/responsive-utilities.less';
|
5
|
+
@import 'twitter/bootstrap/responsive-768px-979px';
|
6
|
+
@import 'twitter/bootstrap/responsive-767px-max';
|
7
|
+
@import 'twitter/bootstrap/responsive-1200px-min.less';
|
8
|
+
@import 'twitter/bootstrap/responsive-navbar.less';
|
9
|
+
|
10
|
+
// Set the correct sprite paths
|
11
|
+
@iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings");
|
12
|
+
@iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white");
|
13
|
+
|
14
|
+
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
|
15
|
+
@fontAwesomeEotPath: asset-url("fontawesome-webfont.eot");
|
16
|
+
@fontAwesomeEotPath_iefix: asset-url("fontawesome-webfont.eot#iefix");
|
17
|
+
@fontAwesomeWoffPath: asset-url("fontawesome-webfont.woff");
|
18
|
+
@fontAwesomeTtfPath: asset-url("fontawesome-webfont.ttf");
|
19
|
+
@fontAwesomeSvgPath: asset-url("fontawesome-webfont.svg#fontawesomeregular");
|
20
|
+
|
21
|
+
// Font Awesome
|
22
|
+
@import "fontawesome/font-awesome";
|
23
|
+
|
24
|
+
// Glyphicons
|
25
|
+
//@import "twitter/bootstrap/sprites.less";
|
26
|
+
|
27
|
+
// Your custom LESS stylesheets goes here
|
28
|
+
//
|
29
|
+
// Since bootstrap was imported above you have access to its mixins which
|
30
|
+
// you may use and inherit here
|
31
|
+
//
|
32
|
+
// If you'd like to override bootstrap's own variables, you can do so here as well
|
33
|
+
// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
|
34
|
+
//
|
35
|
+
// Example:
|
36
|
+
// @linkColor: #ff0000;
|
data/lib/almanac.rb
CHANGED
data/lib/almanac/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: almanac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: therubyracer
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
14
30
|
- !ruby/object:Gem::Dependency
|
15
31
|
name: rails
|
16
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +108,7 @@ dependencies:
|
|
92
108
|
- !ruby/object:Gem::Version
|
93
109
|
version: '0'
|
94
110
|
- !ruby/object:Gem::Dependency
|
95
|
-
name: bootstrap-rails
|
111
|
+
name: twitter-bootstrap-rails
|
96
112
|
requirement: !ruby/object:Gem::Requirement
|
97
113
|
none: false
|
98
114
|
requirements:
|
@@ -389,6 +405,7 @@ files:
|
|
389
405
|
- app/assets/stylesheets/almanac/2-prettify.css
|
390
406
|
- app/assets/stylesheets/almanac/3-main.css.scss
|
391
407
|
- app/assets/stylesheets/almanac/application.css
|
408
|
+
- app/assets/stylesheets/almanac/bootstrap_and_overrides.css.less
|
392
409
|
- app/controllers/almanac/application_controller.rb
|
393
410
|
- app/controllers/almanac/blogs_controller.rb
|
394
411
|
- app/controllers/almanac/images_controller.rb
|