This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Custom reST_ directive for passing a block through a shell command | |
| """ | |
| from subprocess import PIPE, Popen | |
| from docutils import statemachine | |
| from docutils.nodes import literal_block, raw | |
| from docutils.parsers.rst import Directive, directives | |
| from nikola.plugin_categories import RestExtension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright © 2021 Luke Plant | |
| # Permission is hereby granted, free of charge, to any | |
| # person obtaining a copy of this software and associated | |
| # documentation files (the "Software"), to deal in the | |
| # Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, | |
| # distribute, sublicense, and/or sell copies of the | |
| # Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; My Emacs blogging setup: | |
| ;; | |
| ;; - nikola - https://getnikola.com/ | |
| ;; with some extensions: | |
| ;; - orgmode - https://plugins.getnikola.com/v8/orgmode/ | |
| ;; - sass - https://plugins.getnikola.com/v7/sass/ | |
| ;; - ditaa - custom - https://gist.github.com/spookylukey/e25c1d9d99acacd776029c01a50337c6 | |
| ;; - shell - custom - https://gist.github.com/spookylukey/c175709610d5466f1bba49f356f505a1 | |
| ;; | |
| ;; - Mostly reStructuredText for markup. It's powerful, and has good support for syntax extensions |
OlderNewer