这是indexloc提供的服务,不要输入任何密码
Skip to content

dusunboy/simpler-paper

 
 

Repository files navigation

A very simple document generator. preview.
Quickly build and deploy markdown files with a few commands.

Guide

Feature

  • Agility. just one script(only ~3kb gzipped), no framework.

  • Easy. just one command.

  • Lazy load.

  • Auto compatible mobile phone.

  • More themes. simpler-paper-themes

Getting Started

  1. install: npm i -g simpler-paper

  2. init: paper init . to create the doc folder or generate the config file in existing folder.

  3. add markdown files in document folder. 🤔🤔

  4. build: paper build . if you want preview: paper server .

  5. deploy: paper deploy . make sure the current directory of operations is a Git repository. Set to GitHub pages on GitHub after deployment.

Configuration Details

You can create a paper.config.json file in the document directory.

Run paper init can quickly create paper.config.json

// paper.config.json
{
  // document the alias, the value will be displayed after compilation, default: null
  "alias": {
    "quickstart": "Getting Started",
    ...
  },

  // document title, default: "simpler paper"
  "title": "",

  // back to top button, default: true
  "backToTop": true,

  // document page path, default: "/"
  "docPath": "/",

  // loading indicator, default: true
  "indicator": true
}

LICENSE

MIT

About

A very simple document generator

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.6%
  • JavaScript 6.2%
  • Shell 2.5%
  • HTML 1.7%