jekyll-lab-notebook 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c7c38de7c5a4529b3a0305747a1f57f409eaab2
4
- data.tar.gz: c36d23ebd814bd411f65cb38c1712cc466abea91
3
+ metadata.gz: 2ea9aece042cf6986ba0adf3967d14d1b9a50578
4
+ data.tar.gz: 0f1a18ae83887cf682386b18213009283cdeaa20
5
5
  SHA512:
6
- metadata.gz: 3de6b6b588c45d77315d45897dbbbd53206ea8b3dfb0efe569f5027e58b06ab781f49b05f9abf76976e98ed6178d6f123b0e9839b83796decada72df08d8dcd3
7
- data.tar.gz: 3b379724337b51a1ec263cbc5eb6f62badfdd03730f211fd68f8b15ac4d32f11c2823e16fdc2bb4094c5074cd573ee0c28f28b16100459fc40f1cc4507ad86c8
6
+ metadata.gz: f754ab130d3d72b56ea51bd5fbef3042e9f92ea70dfc131df1232d32997f9f161a3e6a62fc7ac3b4f4159d60d724876e337964d7f58ed3ee5131db2331bad5e0
7
+ data.tar.gz: 8f546e1dfc9e5649bd06cdd04ee9d6e5671ebb618a0aea64e483ec0066571f1f6f4e2fdb2bdf8a27a7717b75c15518c3f846c3739ef17da8eb484b1ddf940aa5
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # jekyll-lab-notebook
1
+ # 📓 jekyll-lab-notebook
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/jekyll-lab-notebook.svg)](https://badge.fury.io/rb/jekyll-lab-notebook)
4
4
 
@@ -12,13 +12,28 @@ whatever; think of this as your springboard.
12
12
 
13
13
  ![](screenshot.png)
14
14
 
15
+ ![](screenshot2.png)
16
+
17
+ ## Features
18
+
19
+ - Take simple markdown notes in your favorite text editor (I recommend [Atom](https://atom.io/))
20
+ - Easily embed images, CSVs, or PDFs in your protocols/logs/wherever
21
+ - Interactive calendar to show you when you had log entries
22
+ - Enter your log entries chronologically, but then tag them so they show up with other entries on the same project (Multi-project tags supported too!)
23
+ - Add highlighted sections (note or thought bubbles) to draw attention to important things
24
+
15
25
  ## Installation and Usage
16
26
 
17
- TODO
27
+ See the [eln-example](https://github.com/tlnagy/eln-example) repo.
18
28
 
19
29
  ## Contributing
20
30
 
21
- Bug reports and pull requests are welcome on GitHub at https://github.com/tlnagy/jekyll-lab-notebook. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
31
+ This project is split into two main reports
32
+
33
+ - The one you're on, which is where all the layout and design stuff happens
34
+ - The [plugins](https://github.com/tlnagy/jekyll-lab-notebook-plugins) repo, this where the heavy lifting happens.
35
+
36
+ Bug reports and pull requests are welcome on GitHub at <https://github.com/tlnagy/jekyll-lab-notebook> and at <https://github.com/tlnagy/jekyll-lab-notebook-plugins>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
22
37
 
23
38
  ## Development
24
39
 
data/_layouts/home.html CHANGED
@@ -3,6 +3,8 @@ layout: default
3
3
  ---
4
4
  <head>
5
5
  {% include calheader.html %}
6
+ {% assign home-items = site.jekyll-lab-notebook.home-page %}
7
+
6
8
  <script type="text/javascript">
7
9
 
8
10
  // stolen from here: https://stackoverflow.com/questions/688196/how-to-use-a-link-to-call-javascript
@@ -19,8 +21,19 @@ layout: default
19
21
  return false;
20
22
  }
21
23
 
22
- document.getElementById("protocol-link").onclick = f;
23
- document.getElementById("misc-link").onclick = f;
24
+ {% if home-items %}
25
+ {% for item in home-items %}
26
+ {% assign button_id = item.name | slugify | append: '-link' %}
27
+ button = document.getElementById("{{ button_id }}")
28
+ button.onclick = f;
29
+ target = document.getElementById(button.dataset.target)
30
+ {% if item.hidden %}
31
+ target.style.display = 'none'
32
+ {% else %}
33
+ target.style.display = 'block'
34
+ {% endif %}
35
+ {% endfor %}
36
+ {% endif %}
24
37
  }
25
38
  </script>
26
39
  </head>
@@ -33,33 +46,26 @@ layout: default
33
46
  </div>
34
47
  </div>
35
48
  <div id="home">
36
- <h1>Daily log</h1>
37
- <ul class="posts">
38
- {% for post in site.posts %}
39
- <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%B %Y" }}</a></li>
40
- {% endfor %}
41
- </ul>
42
-
43
- <h1><a id="protocol-link" data-target="protocol-list" href="#">Protocols</a></h1>
44
- <div id="protocol-list">
45
- <ul class="posts">
46
- {% for page in site.pages %}
47
- {% if page.url contains 'protocols/' %}
48
- <li><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | escape }}</a></li>
49
+ {% if home-items %}
50
+ {% for item in home-items %}
51
+ <h1><a href="#" id="{{ item.name | slugify | append: '-link'}}"
52
+ data-target="{{ item.name | slugify | append: '-list'}}">{{ item.name }}</h1>
53
+ <div id="{{ item.name | slugify | append: '-list' }}">
54
+ <ul class="posts">
55
+ {% if item.is_posts %}
56
+ {% for post in site.posts %}
57
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%B %Y" }}</a></li>
58
+ {% endfor %}
59
+ {% elsif item.dir %}
60
+ {% for page in site.pages %}
61
+ {% if page.url contains item.dir %}
62
+ <li><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | escape }}</a></li>
63
+ {% endif %}
64
+ {% endfor %}
49
65
  {% endif %}
50
- {% endfor %}
51
- </ul>
52
- </div>
53
-
54
- <h1><a id="misc-link" href="#" data-target="misc-list">Miscellaneous</a></h1>
55
- <div id="misc-list">
56
- <ul class="posts">
57
- {% for page in site.pages %}
58
- {% if page.url contains 'random/' %}
59
- <li><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | escape }}</a></li>
60
- {% endif %}
61
- {% endfor %}
62
- </ul>
63
- </div>
66
+ </ul>
67
+ </div>
68
+ {% endfor %}
69
+ {% endif %}
64
70
  </div>
65
71
  {% include calfooter.html %}
@@ -1,11 +1,3 @@
1
- #protocol-list {
2
- display: none;
3
- }
4
-
5
- #misc-list {
6
- display: none;
7
- }
8
-
9
1
  .postNav {
10
2
  padding: 1em 0 1em 0;
11
3
  margin: 1em 0 2em 0;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-lab-notebook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tamas Nagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-20 00:00:00.000000000 Z
11
+ date: 2017-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll