├── .ert-runner ├── .gitignore ├── testing-blog ├── Gemfile ├── org │ ├── img │ │ └── plot-sin.png │ ├── about-me.org │ ├── contact.org │ ├── interesting-post.org │ ├── about.org │ └── blogging-with-org2jekyll.org ├── .gitignore ├── assets │ └── img │ │ └── plot-sin.png ├── index.markdown ├── about-me.html ├── contact.html ├── 404.html ├── about.html ├── _posts │ ├── 2020-05-27-interesting-post.html │ ├── 2020-05-09-welcome-to-jekyll.markdown │ └── 2020-05-09-blogging-with-org2jekyll.html ├── _config.yml ├── testing-blog-config.el ├── Gemfile.lock └── gemset.nix ├── .github ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md ├── Cask ├── release.sh ├── README-dev.org ├── shell.nix ├── .travis.yml ├── Makefile ├── test ├── test-helper.el ├── org2jekyll-utilities-test.el └── org2jekyll-test.el ├── org2jekyll-utilities.el ├── flake.nix ├── flake.lock ├── todo.org ├── README.org ├── LICENSE └── org2jekyll.el /.ert-runner: -------------------------------------------------------------------------------- 1 | -L . 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.cask/ 2 | /dist/ 3 | /gems/ 4 | /result 5 | -------------------------------------------------------------------------------- /testing-blog/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | gem 'github-pages', group: :jekyll_plugins 3 | -------------------------------------------------------------------------------- /testing-blog/org/img/plot-sin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ardumont/org2jekyll/HEAD/testing-blog/org/img/plot-sin.png -------------------------------------------------------------------------------- /testing-blog/.gitignore: -------------------------------------------------------------------------------- 1 | gems/ 2 | _site 3 | .sass-cache 4 | .jekyll-cache 5 | .jekyll-metadata 6 | vendor 7 | *~ 8 | *.*~ 9 | -------------------------------------------------------------------------------- /testing-blog/assets/img/plot-sin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ardumont/org2jekyll/HEAD/testing-blog/assets/img/plot-sin.png -------------------------------------------------------------------------------- /testing-blog/index.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | # Feel free to add content and custom Front Matter to this file. 3 | # To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults 4 | 5 | layout: home 6 | --- 7 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Hello, 2 | 3 | Can you please provide the following information? 4 | Thanks in advance 5 | 6 | ### Rapid summary 7 | 8 | ### What issue does this fix or improve? 9 | 10 | ### Have you checked and/or added tests? 11 | 12 | Cheers, 13 | -------------------------------------------------------------------------------- /testing-blog/about-me.html: -------------------------------------------------------------------------------- 1 | --- 2 | date: 2020-05-09 13:43:00 3 | tags: 4 | - about 5 | - me 6 | author: drjekyll&mrtony 7 | layout: page 8 | title: About me 9 | excerpt: About me page 10 | categories: 11 | - about 12 | - me 13 | permalink: /about-me/ 14 | --- 15 |
16 | About me stuff… 17 |
18 | -------------------------------------------------------------------------------- /Cask: -------------------------------------------------------------------------------- 1 | (source gnu) 2 | (source melpa) 3 | 4 | (package-file "org2jekyll.el") 5 | 6 | (files "org2jekyll.el" 7 | "README.org") 8 | 9 | (development 10 | (depends-on "undercover") 11 | (depends-on "ert-runner") 12 | (depends-on "ert") 13 | (depends-on "ert-expectations") 14 | (depends-on "el-mock")) 15 | -------------------------------------------------------------------------------- /testing-blog/contact.html: -------------------------------------------------------------------------------- 1 | --- 2 | date: 2020-05-09 17:59:00 3 | tags: 4 | - contact 5 | author: drjekyll&mrtony 6 | layout: page 7 | title: Contact us 8 | excerpt: A page to describe how to get in touch 9 | categories: 10 | - contact 11 | permalink: /about/ 12 | --- 13 |14 | Here is how to get in touch, open issues or PRs. 15 | Collaboration is the key! 16 |
17 | -------------------------------------------------------------------------------- /testing-blog/org/about-me.org: -------------------------------------------------------------------------------- 1 | #+STARTUP: showall 2 | #+STARTUP: hidestars 3 | #+OPTIONS: H:2 num:nil tags:nil toc:nil timestamps:t 4 | #+LAYOUT: page 5 | #+AUTHOR: drjekyll&mrtony 6 | #+DATE: 2020-05-09 Sat 13:43 7 | #+TITLE: About me 8 | #+DESCRIPTION: About me page 9 | #+TAGS: about, me 10 | #+CATEGORIES: about, me 11 | #+PERMALINK: /about-me/ 12 | 13 | About me stuff... 14 | -------------------------------------------------------------------------------- /testing-blog/org/contact.org: -------------------------------------------------------------------------------- 1 | #+STARTUP: showall 2 | #+STARTUP: hidestars 3 | #+OPTIONS: H:2 num:nil tags:nil toc:nil timestamps:t 4 | #+LAYOUT: page 5 | #+AUTHOR: drjekyll&mrtony 6 | #+DATE: 2020-05-09 Sat 17:59 7 | #+TITLE: Contact us 8 | #+DESCRIPTION: A page to describe how to get in touch 9 | #+TAGS: contact 10 | #+CATEGORIES: contact 11 | 12 | Here is how to get in touch, open issues or PRs. 13 | Collaboration is the key! 14 | -------------------------------------------------------------------------------- /testing-blog/404.html: -------------------------------------------------------------------------------- 1 | --- 2 | permalink: /404.html 3 | layout: default 4 | --- 5 | 6 | 19 | 20 |Page not found :(
24 |The requested page could not be found.
25 |14 | Not original at all, we just plainly rewrote the default templated "about" page 15 | (from the jekyll new testing-blog stanza that initializes jekyll blog site). 16 |
17 | 18 |22 | This is the base Jekyll theme. You can find out more info about customizing 23 | your Jekyll theme, as well as basic Jekyll usage documentation at jekyllrb.com. 24 |
25 | 26 |27 | You can find the source code for Minima at GitHub: jekyll / minima 28 |
29 | 30 |31 | You can find the source code for Jekyll at GitHub: jekyll / jekyll 32 |
33 |27 | In this post, we saw that interesting property. Now, here goes another part 28 | which is even more so. 29 |
30 | 31 |echo this is now
45 |
46 | 38 | In this post, we will show how to setup org2jekyll and play with a local jekyll 39 | instance. 40 |
41 | 42 |43 | For this, we will be using a mix of nix tools (e.g. nix-shell) and standard 44 | Makefile. The end-goal being reproducibility. 45 |
46 | 47 |48 | Do not only trust what you read, try and reproduce it yourself following this. 49 |
50 | 51 |55 | To make your environment with jekyll aware system: 56 |
57 |$ nix-shell 59 |60 |
63 | This will install the necessary tools for a jekyll to run locally. You need nix 64 | to be installed though ¯\(ツ)_/¯. The dependency cycle must start somewhere 65 | heh. 66 |
67 | 68 |69 | Then, to run the instance: 70 |
71 | 72 |$ make update run-dev 74 |75 |
78 | Note: `update` is needed the first time around to install the necessary 79 | dependencies. 80 |
81 | 82 |83 | Open your browser and head over your running instance. 84 |
85 | 86 |87 | Everything should be fine and you should see a basic jekyll instance running 88 |
89 |100 | If you do not have installed org2jekyll yet, it's fine, you can always 101 | temporarily activate it through emacs' buffer loading mechanism. 102 |
103 | 104 |105 | Open org2jekyll.el with emacs, load it (M-x eval-buffer). 106 |
107 |114 | Open testing-blog-config.el with emacs, load it (M-x eval-buffer). 115 |
116 | 117 |118 | Note that this file should really be somewhere in your personal emacs 119 | configuration stanza. It's declared here so it's publicly available ;) 120 |
121 | 122 |123 | You should now be able to play with org2jekyll. And then check the result in 124 | the jekyll instance. 125 |
126 |134 | M-x org2jekyll-create-draft and follow the minibuffer questions. Choose the 135 | layout "post" (in the current configuration). 136 |
137 | 138 |139 | Write some awesome stuff as you see fit, the org way. 140 |
141 | 142 |143 | When done, publish: M-x org2jekyll-publish. 144 |
145 | 146 |147 | From your browser, refresh your your running instance. 148 | You should now see your blog post published there. 149 |
150 | 151 |152 | You can loop over edition in org and publish until you are satisfied. 153 |
154 |161 | You can also edit static pages. 162 |
163 | 164 |165 | For example a page about you, call it about-me.org 166 |
167 | 168 |169 | M-x org2jekyll-create-draft, follow the minibuffer questions. Choose the 170 | layout "default" (in the current configuration). 171 |
172 | 173 |174 | The write some things about yourself the org way. 175 |
176 | 177 |178 | Optionally, you can add #+PERMALINK: <whatever-you-want> header. 179 |
180 | 181 |182 | When done, M-x org2jekyll-publish. 183 |
184 | 185 |186 | From your browser, refresh your your running instance. 187 |
188 | 189 |190 | You should now see your about-me page there, not alongside the listed blog 191 | posts though. In the title menu bar. 192 |
193 | 194 |195 | If you don't find, depending on some jekyll configuration, you can always head 196 | over the about-me page (if you used the extra permalink mentioned). 197 |
198 |205 | Make your emacs able to deal with python and matplotlib for the following. 206 |
207 | 208 |209 | Evaluate the block (C-c C-c) to have the results below. 210 |
211 | 212 |import os 214 | import matplotlib 215 | import matplotlib.pyplot as plt 216 | import numpy as np 217 | 218 | t = np.arange(0.0, 2.0, 0.01) 219 | s = 1 + np.sin(2 * np.pi * t) 220 | 221 | fig, ax = plt.subplots() 222 | ax.plot(t, s) 223 | 224 | ax.set(xlabel='time (s)', ylabel='voltage (mV)', title='Voltage over time') 225 | ax.grid() 226 | 227 | os.makedirs("./img", exist_ok=True) 228 | fig.savefig("./img/plot-sin.png") 229 |230 |
| Text | 251 |(33.722222222222214 0.5 voltage (mV)) | 252 |Text | 253 |(0.5 23.52222222222222 time (s)) | 254 |Text | 255 |(0.5 1 Voltage over time) | 256 |
266 | Check your _config.yml to determine where to store images. 267 |
268 | 269 | 270 |
272 |
276 | source: https://matplotlib.org/gallery/lines_bars_and_markers/simple_plot.html 277 |
278 |