techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authortech kaczynski <tk@techkaczynski.dev>2026-09-24 21:50:26 +1000
committertech kaczynski <tk@techkaczynski.dev>2026-09-24 21:50:26 +1000
commite2914e36b269eb292ce56e2cf7baa71d11280acf (patch)
tree2d46c2c3dbf31372f6f1938929d2a7ca9eaf3033 /README.md
initial commit.main
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ffbabc8
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+# mdview - simple markdown viewer
+
+A simple markdown viewer with live update mode for editing. Written in posix
+shell and uses [cmark-gfm](https://github.com/github/cmark-gfm/) and
+[surf web browser](https://surf.suckless.org/). Includes install and uninstall
+scripts for convenience, made public in case someone finds it useful.
+
+## Usage
+```
+mdview [--light|--dark|--auto] [--live] <file.md>
+ --light Light theme
+ --dark Dark theme
+ --auto Follow system (default)
+ --live Watch file for changes
+```
+
+## Features
+* light and dark themes, tries to auto-detect preference by default.
+* live mode watches file and updates when saved.
+* install script so you can run it like a regular installed executable
+* cleans up after itself
+
+## dependencies
+* [cmark-gfm](https://github.com/github/cmark-gfm)
+* [surf web browser](https://surf.suckless.org)
+* inotify-tools (optional but needed for live mode)
+
+## Demo
+![Light Theme](light-demo.jpg) ![Dark Theme](dark-demo.jpg)
+