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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d65ca409aa9ca6a4c89f989eec03ccd3e66a1e9c
4
- data.tar.gz: 469b356a3621fa41b28bd33cb7ed135288b12c0e
3
+ metadata.gz: 89f2083f8fa0d38194df93c7d644cfedbe29cb6e
4
+ data.tar.gz: 3d986b97b490e32f475c79843ca871b065b202be
5
5
  SHA512:
6
- metadata.gz: dc8ab9c141826190767d34878e239e91eb1d6fb66e3ac55f2ce85853918e100408c5096fc3939075e74794fb90c27963acc67dc0b4924f34a67c2c92fc9c03e9
7
- data.tar.gz: f386bf52dd19ef84284c5d6be28733757d48b0be4238413c34156e81a79e2833f6a21c480ac5131c8794862d0c3d69db58e3e3cc15a43798a80667afcadf24a8
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 copies a specified 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.
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. In jekyll's \_config.yml file add quivjek to the gems array
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 in jekyll's \_config.yml file and set the value equal to the path to your chosen Quiver notebook. For example:
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
- #jekyll _config.yml
18
+ #jekyll_dir/_config.yml
18
19
  notebook_dir:~/Dropbox/Quiver/Quiver.qvlibrary/14F2BCE0-1B08-4ED6-993A-17C8AB0316E2.qvnotebook
19
20
  ```
20
21
 
21
- ## Usage
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
- Now that you're inside your Quiver libary folder you should see all of that libary's notebooks. Quiver notebooks are folders that end with the .qvnotebook extension. They will be named with a UUID as indiacted above. To determine the Quiver notebook's name check the meta.json file contained within each .qvnotebook folder.
24
+ ## Usage
25
+ Simply run `jekyll build` and quivjek will automatically add your Quiver notes to your jekyll site
28
26
 
29
- ## Other info
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 Quiver created date. Currently there's no easy way to modify the Quiver create date short of modifying the timestamp in the note's meta.json file. Eventually I'd like to allow overriding this value through custom fronmatter.
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 changed or been removed since the last build.
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
- ## Development
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).
@@ -1,3 +1,3 @@
1
1
  class Quivjek
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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/keyburner"
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.1
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-14 00:00:00.000000000 Z
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/keyburner
89
+ homepage: https://github.com/benbjurstrom/quivjek
90
90
  licenses:
91
91
  - MIT
92
92
  metadata: {}