1.0.7 • Published 4 months ago

markdown-static v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

markdown-static

DEMO

Node.js

Install

npm install markdown-static

Ready

  • mkdir assets,markdown
/data
|-- assets
|   |-- 1.png
|-- markdown
    |-- test.md
  • test.md content
# test

## htllo

* 123

![img](/assets/1.png)

API

const markdownStatic = require("markdown-static");
markdownStatic({
  rootDir: "/data", // must
  delayMS: 5 * 1000, // default 5s
  appServerPort: 3000, // appServerPort, default 3000
  staticServerPort: 3001, // staticServerPort, default 3001
  markdownServerPort: 3002, // markdownServerPort, default 3002
});
  • visit img img

Docker

  • docker-compose.yml
version: '3'
services:
  markdown-static:
    restart: always
    image: dockerjoeyy/markdown-static:latest
    container_name: markdown-static
    ports:
      - "3000:3000"
    environment:
      - LANG="en_US.UTF-8"
    volumes:
      - /data:/data
  • run
docker-compose up -d

Donate

  • buy me a coffee. img
1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago