arthurh/web-md-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arthurh/web-md-generator

Composer 安装命令:

composer require arthurh/web-md-generator

包简介

Create a static website from markdown files easily

README 文档

README

Create a static website from markdown files easily.

What is it?

It is a static website generator. It will takes all your markdown files from a folder and make a real website (Thanks to jr). It will also make a simple menu directly with your markdown files

Usage

The best way is to get the phar archive from here web-md-generator.phar.

Put this archive inside your future website with all your markdown files inside (Markdown files should have .md extension). Finally run:

php web-md-generator.phar

After you can simply add other markdown files and regenerate to add in your menu. And you can also simply modified .html generated, it's still markdown inside so it will be easy to modify. Change your option.yml

When you will generate your website you will have a new options.yml created. By default you will have that:

styles:
  - "default"
  - "//fonts.googleapis.com/css?family=Average"
  - "//fonts.googleapis.com/css?family=Roboto:400,700"
charset: "UTF-8"
title: "My Website"
menuPosition: "top"
index: index
scripts:
  - "js/showdown.js"

styles: you can change default by bootstrap to get the bootstrap by twitter style. and add all css you want.

title: Change title by your website name.

menuPosition: change by top or sideto have your menu on the side or on the top (only work for default style).

index: set your markdown file which will use as your index.html (don't put md extension).

scripts: add all javascript files you want (jquery is load by default).

And finally regenerate your website by running again php web-md-generator.phar.

Get a logo and favicon

For favicon: Simply add a favicon.(png|ico|jpg|gif) at your root website folder and regenerate your website.

For logo: Simply add a logo.(png|ico|jpg|gif) at your root website folder and regenerate your website.

Custom your menu

When you generate you will have a menu.yml, you can modify it to set link and/or menu name.

menu:
    - { index: 'read me' } #on the left file without .html extension and on the right your menu name
    - { 'who am i': 'who am i' }

Example and demos

For the example go to: https://github.com/ArthurHlt/web-md-generator-example

Demo with default style with menu on top: http://web-md-generator.arthurh.fr/default-top/

Demo with default style with menu on side: http://web-md-generator.arthurh.fr/default-side/

Demo with bootstrap style: http://web-md-generator.arthurh.fr/bootstrap/

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固