quivjek 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -21
- data/lib/quivjek/version.rb +1 -1
- data/quivjek.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89f2083f8fa0d38194df93c7d644cfedbe29cb6e
|
4
|
+
data.tar.gz: 3d986b97b490e32f475c79843ca871b065b202be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ee61b8194aa8f511eed12d8df343287efa1cd9f93ba67838923c4e55b3c1ce227b7d16b9206d3e909687ed9208371e6c859b0bee49bf091f3e74c9c8388351
|
7
|
+
data.tar.gz: 596e4f64b2b3ef9a121732fa76af0b68e183ddaeae1993ea24d4a47d985228c5bc6509ad9770dd92857e9d8c060b6d723ffc71f44aec34f4c6c21188ccdd1929
|
data/README.md
CHANGED
@@ -1,52 +1,47 @@
|
|
1
|
-
#Quivjek: A Jekyll plugin for seamless publication of Quiver notebooks
|
1
|
+
# Quivjek: A Jekyll plugin for seamless publication of Quiver notebooks
|
2
2
|
[![Build Status](https://travis-ci.org/benbjurstrom/quivjek.svg?branch=master)](https://travis-ci.org/benbjurstrom/quivjek)
|
3
3
|
|
4
|
-
Quivjek is a Jekyll plugin that automatically
|
4
|
+
Quivjek is a Jekyll plugin that automatically exports all notes from a specified Quiver notebook to your _posts folder when the jekyll build command is run. Quivjek also copies and properly links any images contained in a Quiver note to your Jekyll images folder.
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
1. Install the quivjek gem
|
8
8
|
```
|
9
9
|
gem install quivjek
|
10
10
|
```
|
11
|
-
2.
|
11
|
+
2. Add quivjek to the gems array found in the _config.yml file.
|
12
12
|
```
|
13
|
+
#jekyll_dir/_config.yml
|
13
14
|
gems: [quivjek]
|
14
15
|
```
|
15
|
-
3. Point quivjek to the Quiver notebook of choice by adding the `notebook_dir:` key
|
16
|
+
3. Point quivjek to the Quiver notebook of choice by adding the `notebook_dir:` key to the \_config.yml file with a value equal to your notebooks file path. For example:
|
16
17
|
```
|
17
|
-
#
|
18
|
+
#jekyll_dir/_config.yml
|
18
19
|
notebook_dir:~/Dropbox/Quiver/Quiver.qvlibrary/14F2BCE0-1B08-4ED6-993A-17C8AB0316E2.qvnotebook
|
19
20
|
```
|
20
21
|
|
21
|
-
|
22
|
-
Simply run ```jekyll build``` and quivjek will automatically add your Quiver notes to your jekyll site.
|
23
|
-
|
24
|
-
## How to I find my quiver notebook?
|
25
|
-
Your Quiver notebook is contained within your Quiver library. Your Quiver library is a folder that ends with the extension .qvlibrary. You can find the location of your Quiver library in Quiver's menu by going under Quiver -> Preferences -> Sync and checking the Library Location. If using the command line you can cd into it like normal. If using finder, right click on the .qvlibrary and click show package contents.
|
22
|
+
To determine a notebook's filepath right click on the note in the Quiver sidebar and choose open in finder. Be aware that Quiver notebooks are folders ending in the .qvnotebook extension and named with a random UUID as in the example above.
|
26
23
|
|
27
|
-
|
24
|
+
## Usage
|
25
|
+
Simply run `jekyll build` and quivjek will automatically add your Quiver notes to your jekyll site
|
28
26
|
|
29
|
-
##
|
27
|
+
## Things you should know
|
30
28
|
All quiver notes must be entirely composed of markdown or code cells.
|
31
29
|
|
32
30
|
Quivjek will ignore any posts tagged as `draft`
|
33
31
|
|
34
|
-
Quivjek sets the post created date based on the
|
32
|
+
Quivjek sets the post created date based on the note's created date. Currently there's no easy way to modify the note's create date in Quiver short of modifying the timestamp in the note's meta.json file. Eventually I'd like to allow overriding this value through custom frontmatter.
|
35
33
|
|
36
|
-
Quivjek currently copies all notes and images to the subfolders `/_posts/quiver` and `/images/q` respectivly. On build quivjek deletes all files from these subfolders and re-copies the notes and images from the Quiver notebook. This is done to clean up any deleted or renamed items. Eventually I'd like to save a manafest and only update the notes and images that have
|
34
|
+
Quivjek currently copies all notes and images to the jekyll directory within the subfolders `/_posts/quiver` and `/images/q` respectivly. On build quivjek deletes all files from these subfolders and re-copies the notes and images from the Quiver notebook. This is done to clean up any deleted or renamed items. Eventually I'd like to save a manafest and only update the notes and images that have been modified or deleted since the last build.
|
37
35
|
|
38
|
-
|
36
|
+
When an image is added to a markdown cell, Quiver renames the file and sets the original file name as the image tag's alt attribute. For example the image `big-claw-puppy-on-wood-floor.jpg` becomes `![big-claw-puppy-on-wood-floor.jpg](quiver-image-url/642370E09A291BC1601CFD68B44A5C16.jpg)`. For SEO purposes quivjek reverses this process by renaming the image to whatever is found in your alt tag. Therefore it is recormended your alt tags are lowercase, slug-ified, unique, and end in the image file extension.
|
39
37
|
|
38
|
+
## Development
|
40
39
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
41
40
|
|
42
41
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
43
42
|
|
44
43
|
## Contributing
|
45
|
-
|
46
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/benbjurstrom/quivjek. This is my first time using ruby so pull requests to improve code style are welcome. Thanks to Bradley Curran's [quiver2jekyll](https://github.com/bradley-curran/quiver2jekyll/) package for pointing me in the right direction.
|
47
|
-
|
48
|
-
|
44
|
+
This is my first time using Ruby so bug reports and pull requests are very welcome on GitHub at https://github.com/benbjurstrom/quivjek. Thanks to Bradley Curran's [quiver2jekyll](https://github.com/bradley-curran/quiver2jekyll/) for providing some of the code needed to get started.
|
49
45
|
|
50
46
|
## License
|
51
|
-
|
52
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
47
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/quivjek/version.rb
CHANGED
data/quivjek.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = "A Jekyll plugin for seamless publication of Quiver notebooks"
|
13
13
|
spec.description = "A Jekyll plugin that automatically copies a Quiver notebook to your Jekyll _posts folder whenever the jekyll build command runs. Quivjek also copies and properly links any images contained in a Quiver note to your Jekyll images folder."
|
14
|
-
spec.homepage = "https://github.com/benbjurstrom/
|
14
|
+
spec.homepage = "https://github.com/benbjurstrom/quivjek"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quivjek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Bjurstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,7 +86,7 @@ files:
|
|
86
86
|
- lib/quivjek.rb
|
87
87
|
- lib/quivjek/version.rb
|
88
88
|
- quivjek.gemspec
|
89
|
-
homepage: https://github.com/benbjurstrom/
|
89
|
+
homepage: https://github.com/benbjurstrom/quivjek
|
90
90
|
licenses:
|
91
91
|
- MIT
|
92
92
|
metadata: {}
|