Giter Club home page Giter Club logo

flathub's Introduction

文档生成网站的简单代码实例,预览。将众多Markdown文件快速地生成结构化的网站,并部署至GitHub

目录

安装软件

npm i -g simpler-paper

创建项目配置文件

  • 自动生成配置文件:paper.config.json
  • 运行下面命令项目配置文件,在命令执行过程中,需要输入<项目目录>,如本实例目录iotoi_dev。
  • 下面命令执行是项目根目录,而不是进入<项目目录>,再执行命令,所有Simpler Paper命令都是这样的。
paper init
  • 其结果是:
-------------   项目根目录
|--- iotoi_dev
|    |--- paper.config.json

生成网站实例

  • 自动生成网站实例,其目录为:docs
  • 运行下面构建命令:
paper build

其结果是:

-------------   项目根目录
|--- docs
|--- iotoi_dev
|    |--- paper.config.json

开发项目代码

  • 使用网站Simpler Paper下的实例代码,或者自己代码
  • 使用上面构建命令:
paper build

创建网站GitHub代码库

  • 创建<GitHub网站目录>,如iotoi
  • 使用下面复制命令:
cp -rf docs/. iotoi/.

或者

paper build && rm ./docs/static/readme.html && cp -rf docs/. iotoi/.
-------------   项目根目录
|--- docs
|--- iotoi
|--- iotoi_dev
|    |--- paper.config.json

部署GitHub

  • 将<<项目目录>>和<GitHub网站目录>部署到GitHub上
  • 在<GitHub网站目录>代码库上,进入GitHub,登录帐号,菜单Settings,使用GitHub Page。

flathub's People

Contributors

alexlarsson avatar asciiwolf avatar barthalion avatar bilelmoussaoui avatar eszlari avatar jobleonard avatar jurf avatar matthiasclasen avatar nedrichards avatar rexcze avatar tingping 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.