0.0.13 • Published 11 months ago
markdown-publish v0.0.13
Markdown Publish
Markdown Publish enables you to publish your local Markdown files as a website.
Publish your local files
1. Install
npm install markdown-publish
2. Rename files you want to publish
If you want to publish test.md
, rename it to test@.md
. Put "@" just before the extension.
3. Copy local files to your project
npm run mp-sync
4. Read files from your project
// Get all files as Post.
const posts = getPosts();
// Get a file as FullPost.
const post = getPost("postId");
License
MIT