Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
decker
decker
Commits
d831097c
Commit
d831097c
authored
Sep 24, 2019
by
Armin Bernstetter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test and added warning
parent
ac9bf448
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
readme.md
readme.md
+1
-1
src/Text/Decker/Internal/Meta.hs
src/Text/Decker/Internal/Meta.hs
+3
-1
test/Spec.hs
test/Spec.hs
+1
-1
No files found.
readme.md
View file @
d831097c
...
...
@@ -119,7 +119,7 @@ choice. Beware that file updates are not propagated into the container so
Prints information about the current project's directories, the targets
(files which will be generated) and the meta data options which are found in
top level `decker.yaml` file
s
.
top level `decker.yaml` file.
-
`decker html`
...
...
src/Text/Decker/Internal/Meta.hs
View file @
d831097c
...
...
@@ -119,7 +119,9 @@ readMetaData dir = do
meta
<-
if
exists
then
decodeYaml
file
else
return
(
Y
.
object
[]
)
else
do
putStrLn
"WARNING: There is no top level 'decker.yaml' file!"
return
(
Y
.
object
[]
)
return
$
toPandocMeta
meta
getMetaInt
::
String
->
Meta
->
Maybe
Int
...
...
test/Spec.hs
View file @
d831097c
...
...
@@ -27,7 +27,7 @@ main = do
deckTemplate
<-
B
.
readFile
(
dirs
^.
project
</>
"resource/template/deck.html"
)
--
-- metaFiles <- globDir1 (compile "**/*-meta.yaml") (dirs ^. project)
metaFile
<-
dirs
^.
project
</>
"decker.yaml"
let
metaFile
=
dirs
^.
project
</>
"decker.yaml"
--
hspec
$
--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment