GithubHelp home page GithubHelp logo

simpler-paper's Introduction

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.

Getting Started

  1. Install: npm i -g simpler-paper
  2. Init: paper init . To create the document folder or generate the config file in existing folder.
  3. Add markdown files in document folder.
    • Create a folder named "assets" to store the images if needed.πŸ€”πŸ€”
    • Add a munber prefix connected by '_' to sort the document or folder. (e.g. 1_firstDoc.md)
    • Hierarchical directory generated by the documents folder.
  4. Build: paper build . If you want to preview, run paper server .
  5. Deploy: paper deploy . Deploy a Git repository to GitHub. Remember to set to GitHub pages.

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

simpler-paper's People

Contributors

berubou avatar wittbulter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.