all repos — hastyscribe @ f8f3423c4ad12963897c3261aa331093b9fd8200

A professional markdown compiler.

Moved extra files to lib directory.
* Closes #53.
h3rald h3rald@h3rald.com
Sun, 29 Oct 2017 18:41:02 +0100
commit

f8f3423c4ad12963897c3261aa331093b9fd8200

parent

69fbe6c61f9ac8ad7073c9be54a0ddae2c0928bb

6 files changed, 42 insertions(+), 34 deletions(-)

jump to
M config.nimlib/config.nim

@@ -4,7 +4,7 @@ streams,

strutils const - cfgfile = "hastyscribe.nimble".slurp + cfgfile = "../hastyscribe.nimble".slurp var version*: string
D consts.nim

@@ -1,30 +0,0 @@

- -const - stylesheet* = "packages/hastystyles/styles/hastyscribe.css".slurp - hastyscribe_font* = "packages/hastystyles/fonts/hastyscribe.woff".slurp - fontawesome_font* = "packages/hastystyles/fonts/fontawesome-webfont.woff".slurp - sourcecodepro_font* = "packages/hastystyles/fonts/SourceCodePro-Regular.ttf.woff".slurp - sourcesanspro_font* = "packages/hastystyles/fonts/SourceSansPro-Regular.ttf.woff".slurp - sourcesanspro_bold_font* = "packages/hastystyles/fonts/SourceSansPro-Bold.ttf.woff".slurp - sourcesanspro_it_font* = "packages/hastystyles/fonts/SourceSansPro-It.ttf.woff".slurp - sourcesanspro_boldit_font* = "packages/hastystyles/fonts/SourceSansPro-BoldIt.ttf.woff".slurp - watermark_style* = """ -#container { - position: relative; - z-index: 0; -} -#container:after { - content: ""; - opacity: 0.1; - z-index: -1; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - background-image: url($1); - background-repeat: no-repeat; - background-position: center 70px; - background-attachment: fixed; -} -"""
M hastyscribe.nimhastyscribe.nim

@@ -11,9 +11,9 @@ tables,

httpclient import - config, - consts, - utils + lib/config, + lib/consts, + lib/utils type

@@ -277,6 +277,8 @@ result = hs.parse_transclusions(document, dir, offset)

result = hs.parse_fields(result) result = hs.parse_snippets(result) result = hs.parse_macros(result) + +# Public API proc dump*(hs: var HastyScribe, item="all", dest=".") = if item == "all" or item == "styles":
A lib/consts.nim

@@ -0,0 +1,30 @@

+ +const + stylesheet* = "../packages/hastystyles/styles/hastyscribe.css".slurp + hastyscribe_font* = "../packages/hastystyles/fonts/hastyscribe.woff".slurp + fontawesome_font* = "../packages/hastystyles/fonts/fontawesome-webfont.woff".slurp + sourcecodepro_font* = "../packages/hastystyles/fonts/SourceCodePro-Regular.ttf.woff".slurp + sourcesanspro_font* = "../packages/hastystyles/fonts/SourceSansPro-Regular.ttf.woff".slurp + sourcesanspro_bold_font* = "../packages/hastystyles/fonts/SourceSansPro-Bold.ttf.woff".slurp + sourcesanspro_it_font* = "../packages/hastystyles/fonts/SourceSansPro-It.ttf.woff".slurp + sourcesanspro_boldit_font* = "../packages/hastystyles/fonts/SourceSansPro-BoldIt.ttf.woff".slurp + watermark_style* = """ +#container { + position: relative; + z-index: 0; +} +#container:after { + content: ""; + opacity: 0.1; + z-index: -1; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + background-image: url($1); + background-repeat: no-repeat; + background-position: center 70px; + background-attachment: fixed; +} +"""
M nifty.jsonnifty.json

@@ -51,6 +51,12 @@ "name": "discount",

"src": "https://github.com/Orc/discount.git", "tag": "v2.2.2", "git": true + }, + "niftylogger.nim": + { + "name": "niftylogger.nim", + "src": "https://raw.githubusercontent.com/h3rald/nifty/master/lib/niftylogger.nim", + "curl": true } } }