nsume 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: deaf7eca9bc73283bfa66156ee47f9efe4def330
4
+ data.tar.gz: 3995d3e6be5f0c02679baf379f8bcd9600847518
5
+ SHA512:
6
+ metadata.gz: 935e26b72881c452ee0f4752096f68a90f62d5ddd0fcbcc9538821a11050f77e3ceec10241d730162291349b3e85bd409e90245a399bd0622b9084e1264c2be2
7
+ data.tar.gz: 6f6d6db838783d0d137902353f248ea4feee35fa801f42b9a84d530ce4c856805fe3c791a6b2fa511a22851c96f21bc02aba991571b0b57807384b632a18828a
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :test do
6
+ gem 'rspec'
7
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 ogom
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ nSume
2
+ =====
3
+
4
+ nSume is Bootswatch Theme for Jekyll.
5
+
6
+ Convert static site from markdown. naturally consume Blog and API documents.
7
+
8
+ ![octonsume](https://raw.github.com/ogom/nsume/master/lib/generators/assets/img/octonsume.png)
9
+
10
+ ## Installation
11
+
12
+ ```
13
+ gem install nsume
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ### Initializes and Startup
19
+
20
+ ```bash
21
+ nsume init
22
+ nsume up
23
+ ```
24
+
25
+ ### Creates content
26
+
27
+ ```bash
28
+ nsume post foo bar
29
+ ```
30
+
31
+ ### View browser
32
+
33
+ ```bash
34
+ open http://0.0.0.0:4000
35
+ ```
36
+
37
+ ## Examples
38
+
39
+ [GitHub Pages](http://ogom.github.io/natsume-rails-example/)
40
+
41
+ ## Uses
42
+
43
+ * [Jekyll](http://jekyllrb.com/)
44
+ * [Bootstrap](http://getbootstrap.com/)
45
+ * [Bootswatch](http://bootswatch.com/)
46
+ * [Liquid](http://liquidmarkup.org/)
47
+ * [Autodoc](https://github.com/r7kamura/autodoc)
48
+
49
+ ## License
50
+
51
+ * MIT
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :test => :spec
7
+ task :default => :spec
data/bin/nsume ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
4
+ require 'nsume'
5
+
6
+ Nsume::Cli.start
@@ -0,0 +1,12 @@
1
+ - lavel: API
2
+ path: /docs/api/v1
3
+ dropdown: true
4
+
5
+ - lavel: Changelog
6
+ path: /changelog
7
+
8
+ - lavel: Blog
9
+ path: /blog
10
+
11
+ - lavel: Documentation
12
+ path: /docs
@@ -0,0 +1,31 @@
1
+ <div class="navbar navbar-default navbar-fixed-top">
2
+ <div class="container">
3
+ <div class="navbar-header">
4
+ <a href="{{ site.baseurl }}/" class="navbar-brand">{{ site.name }}</a>
5
+ <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
6
+ <span class="icon-bar"></span>
7
+ <span class="icon-bar"></span>
8
+ <span class="icon-bar"></span>
9
+ </button>
10
+ </div>
11
+ <div class="navbar-collapse collapse" id="navbar-main">
12
+ <ul class="nav navbar-nav">
13
+ {% for nav in site.data.navbar %}
14
+ {% if nav.dropdown %}<li class="dropdown">
15
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ nav.lavel }}
16
+ <span class="caret"></span></a>
17
+ <ul class="dropdown-menu">
18
+ {% for page in site.pages %}<li>
19
+ {% if page.url contains nav.path %}
20
+ <a tabindex="-1" href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
21
+ {% endif %}
22
+ {% endfor %}</li>
23
+ </ul>
24
+ {% else %}<li>
25
+ <a href="{{ site.baseurl }}{{ nav.path }}">{{ nav.lavel }}</a>
26
+ {% endif %}
27
+ {% endfor %}</li>
28
+ </ul>
29
+ </div>
30
+ </div>
31
+ </div>
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>{{ page.title }}</title>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta charset="utf-8">
7
+ <link rel="shortcut icon" href="{{ site.baseurl }}/assets/ico/favicon.ico">
8
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/themes/github/github.css">
9
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/themes/{{ site.theme }}/bootstrap.min.css" media="screen">
10
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/bootswatch/css/bootswatch.min.css">
11
+ </head>
12
+ <body>
13
+
14
+ {% include navbar.liquid %}
15
+
16
+ <div class="container">
17
+
18
+ <div class="page-header" id="banner">
19
+ <h2>{{ page.title }}</h2>
20
+ </div>
21
+
22
+ {{ content }}
23
+
24
+ <footer>
25
+ <div class="row">
26
+ <div class="col-lg-12">
27
+ <hr>
28
+ <ul class="list-unstyled">
29
+ <li class="pull-right"><a href="#top">Back to top</a></li>
30
+ </ul>
31
+ <p class="text-muted">© Copyright {{ site.copyright }}.</p>
32
+ <p class="text-muted">Created using <a href="https://github.com/ogom/nsume" rel="nofollow">nSume</a>.</p>
33
+ </div>
34
+ </div>
35
+ </footer>
36
+
37
+ </div>
38
+
39
+ <script src="{{ site.baseurl }}/assets/jquery/jquery-1.10.2.min.js"></script>
40
+ <script src="{{ site.baseurl }}/assets/bootstrap/dist/js/bootstrap.min.js"></script>
41
+ <script src="{{ site.baseurl }}/assets/bootswatch/js/bootswatch.js"></script>
42
+ </body>
43
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
6
+ <p class="text-muted">{{ page.date | date: "%B %-d, %Y" }}</p>
7
+ {{ content }}