nsume 0.0.4
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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +51 -0
- data/Rakefile +7 -0
- data/bin/nsume +6 -0
- data/lib/generators/_data/navbar.yml +12 -0
- data/lib/generators/_includes/navbar.liquid +31 -0
- data/lib/generators/_layouts/default.html +43 -0
- data/lib/generators/_layouts/post.html +7 -0
- data/lib/generators/assets/ico/favicon.ico +0 -0
- data/lib/generators/assets/img/octonsume.png +0 -0
- data/lib/generators/assets/themes/github/github.css +714 -0
- data/lib/generators/blog/index.html +11 -0
- data/lib/generators/changelog/index.html +11 -0
- data/lib/generators/index.html +14 -0
- data/lib/generators/vendor/autodoc/document.md.erb +16 -0
- data/lib/generators/vendor/autodoc/footer.md.erb +11 -0
- data/lib/generators/vendor/autodoc/header.md.erb +11 -0
- data/lib/nsume/cli.rb +91 -0
- data/lib/nsume/dev_helper.rb +23 -0
- data/lib/nsume/prepare.rb +119 -0
- data/lib/nsume/version.rb +3 -0
- data/lib/nsume.rb +44 -0
- data/lib/templates/_config.yml.erb +14 -0
- data/lib/templates/post.md.erb +6 -0
- data/nsume.gemspec +26 -0
- data/spec/nsume/version_spec.rb +7 -0
- metadata +130 -0
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
data/Gemfile
ADDED
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
|
+

|
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
data/bin/nsume
ADDED
@@ -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>
|
Binary file
|
Binary file
|