- Update docster.cabal to modern format with GHC 9.12.2 compatibility - Fix Mermaid code block detection using getDefaultExtensions - Switch from SVG to PNG output for PDF compatibility - Add CLAUDE.md with development instructions - Update tooling from mise to ghcup for Haskell management Known issues: - Generated diagram files are created in root directory instead of alongside source files - PDF generation fails with LaTeX errors for complex documents (missing \tightlist support) - HTML output lacks proper DOCTYPE (quirks mode) - Debug output still present in code 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
cabal-version: 3.0
|
|
name: docster
|
|
version: 0.1.0.0
|
|
synopsis: A self-contained CLI tool that converts Markdown with Mermaid diagrams to PDF/HTML
|
|
description: Docster converts Markdown documents containing Mermaid diagrams into PDF or HTML files
|
|
using Pandoc and Mermaid CLI. It automatically renders Mermaid code blocks to SVG
|
|
and embeds them in the output.
|
|
homepage: https://github.com/yourusername/docster
|
|
license: BSD-3-Clause
|
|
license-file: LICENSE
|
|
author: Your Name
|
|
maintainer: your.email@example.com
|
|
category: Text
|
|
build-type: Simple
|
|
extra-doc-files: README.md
|
|
|
|
common warnings
|
|
ghc-options: -Wall
|
|
-Wcompat
|
|
-Widentities
|
|
-Wincomplete-record-updates
|
|
-Wincomplete-uni-patterns
|
|
-Wmissing-export-lists
|
|
-Wmissing-home-modules
|
|
-Wpartial-fields
|
|
-Wredundant-constraints
|
|
|
|
executable docster
|
|
import: warnings
|
|
main-is: Main.hs
|
|
hs-source-dirs: app
|
|
build-depends:
|
|
base >=4.21 && <5,
|
|
text >=2.0 && <2.2,
|
|
filepath >=1.4 && <1.6,
|
|
directory >=1.3 && <1.4,
|
|
process >=1.6 && <1.7,
|
|
hashable >=1.4 && <1.6,
|
|
pandoc >=3.0 && <3.2,
|
|
pandoc-types >=1.23 && <1.25,
|
|
bytestring >=0.11 && <0.13
|
|
default-language: Haskell2010
|
|
ghc-options: -threaded
|
|
-rtsopts
|
|
-with-rtsopts=-N
|