Giter Site home page Giter Site logo

wret's Introduction

This repo is forked from mume, adapted to bloging

  1. added index.ts, changed the main entry in package.json to it.
  2. added mume-blog.ts
  3. added blog-engine.ts, which is a modification copy of markdown-engine.ts
  4. added to changed: needToCopy/, bin/, package.json

Install

npm install -g git+https://github.com/keenguy/wret.git

How to use

  1. Prepare files
  • src/: md source directory
  • assets/: css files, images
  • CNAME
  • _config.yml
    • Use wret i to initialize _config.yml if needed
    • Three fields: title, copyFiles, deploy are needed. (May be empty)
    • srcDir, buildDir are defaulted to be 'src' and 'docs' respectively.
  1. Build the blog: wret b

  2. Push to github wret d

  3. Other commands:

  • wret help
  • wret copy Copy two things to buildDir: 1. built-in assets 2. files specified in the 'copyFiles' field of _config.yml
  • wrep less Compile less files in 'assets/css/'
  • wret note Generate htmls in buildDir using md files in srcDir

Dev log

2017-10-10 Changed module name mume-blog to wret, implemented _config.yml

2017-09-09 Integrated all notes-independent functions to mume-blog

2017-09-05 Integrated main code into @keenguy/mume-blog

2017-09-04 added pagenator; optimized index assembly, listing items in order; rewrite index.js and gulpfile.js;

2017-08-24 added font-awesome, ribbon, made some js opt, took some notes

2017-08-23

Added some icons (e.g. folder, tag). Implemented gulp automation. Solved puml doesn't exit problem. Added some metadata. Changed some css (e.g. toc).

2017-08-22

Added file-brower-like navigation. Auto generate index files for sub folders. Changed mume module:

  1. move toc-btn to top (change css)
  2. add callback to htmlExport function in markdown-engine.js.

2017-08-21

Implemented html exporting in batch using mume. Set up blog on github.

Some notes

  1. font-awesome icons doesn't work in vscode preview .

To-do

  • project layout
  • search functionality
  • comment module
  • footer with flexible templating
  • improve the layout of index page.
  • optimize for mobile
  • travis CI deployment
  • improve UI (e.g. index of sub folders).
  • generate subfolder index automatically
  • add header or back links on each page automatically.
  • metadata
  • implement auto flow using gulp
  • font-awesome icons (only for blog export)

wret's People

Contributors

shd101wyy 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.