Skip to content

Commit

Permalink
Updated plugins for new static root (/ not /_static/).
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Aug 23, 2009
1 parent ff6f3b9 commit db846da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/Dot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ transformBlock (CodeBlock (_, classes, namevals) contents) | "dot" `elem` classe
if ec == ExitSuccess
then writeFile (staticDir cfg </> "img" </> outfile) out
else error $ "dot returned an error status: " ++ err
return $ Para [Image name ("/_static/img" </> outfile, "")]
return $ Para [Image name ("/img" </> outfile, "")]
transformBlock x = return x

-- | Generate a unique filename given the file's contents.
Expand Down
2 changes: 1 addition & 1 deletion plugins/ImgTex.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ transformBlock (CodeBlock (id, classes, namevals) contents)
setCurrentDirectory curr
system $ "dvipng -T tight -bd 1000 -freetype0 -Q 5 --gamma 1.3 " ++
(tmpdir </> outfile <.> "dvi") ++ " -o " ++ (staticDir cfg </> "img" </> outfile)
return $ Para [Image name ("/_static/img" </> outfile, "")]
return $ Para [Image name ("/img" </> outfile, "")]
transformBlock x = return x

uniqueName :: String -> String
Expand Down

0 comments on commit db846da

Please sign in to comment.