Giter VIP home page Giter VIP logo

smarty-press's Introduction

简体中文| English

Smart-Press

  • 快速高效的 Markdown 网站制作工具
  • 基于 Vue3.0 SSR 技术

钉钉交流群

起步

Manually

# install 
npm install smarty-press -g

# start to writing 
spress start

# build to html
spress build

使用

# 在项目文件夹中新建主页文件README.md,其它的md文件会当作它的次级目录,内容的编译使用markdown语法,并且是实时的

# 生成网页的目录数量与md文件的数量相对应,有几个目录就有几个md文件

# 目录的名称是对应文件的一级标题

开发

# clone first
npm link
cd demo
spress start

插件开发

参阅插件开发文档。

开发功能列表

开发完成

  • 展示DEMO

待开发

  • 菜单自由配置功能

主题库

MarkDown

http://zhongce.sina.com.cn/article/view/18867

菜单模板

  • 默认:采用 AdminLTE
  • 开发中:
    • 菜单自由配置功能

文档

使用

  • Step. 1 新建并进入文件夹
mkdir hello-smarty-press && cd hello-smarty-press
  • Step. 2 使用你喜欢的包管理器进行初始化
yarn init
  • Step. 3 本地安装smarty-press (如果已经全局安装过了,可以跳过这一步)
yarn add --dev smarty-press
  • Step. 4 创建README.md文件
touch README.md
  • Step. 5 写入文档内容
# SmartyPress 入门
## 安装

## 使用
  • Step. 6 在package.json中添加脚本 (如果是全局安装,可以跳过这一步)
{
  "scripts": {
    "start": "spress start",
    "build": "spress build"
  }
}
  • Step. 7 启动本地开发服务
yarn start

如果是全局安装,则使用以下命令

spress start
  • Step. 8 构建文档
yarn build

如果是全局安装,则使用以下命令

spress build

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.