GithubHelp home page GithubHelp logo

magic-coder / mirror-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loeify/mirror

0.0 3.0 0.0 507 KB

A blog tool powered by GitHub issues

Home Page: http://mirror.am0200.com/

License: MIT License

JavaScript 61.03% HTML 10.05% CSS 28.92%

mirror-1's Introduction

Mirror

中文说明

A blog tool powered by GitHub, write your blog on GitHub issue

http://mirror.am0200.com/

How to use

install

$ sudo npm install Mirror -g

create

$ cd newblog
$ mirror init 

or

$ mirror init newblog

configure

modify config.yml

# site title
title: Mirror

# github user: your github username
user: LoeiFy

# issue repo: your issues repo, all blog content from here 
repo: Recordum

# multi-authors, `user` is included by default
# example: author0,author1
authors:

# per page
per_page: 10

# sandbox
# quick preview other blog
sandbox: false

Add your access token in token.txt, this token is read-only

https://github.com/settings/tokens

DO NOT check any permissions

grants read-only access to public information (includes public user profile info, public repository info, and gists)

build

$ mirror build

pulish your blog

you can add domain in CNAME

push all files to a repo gh-pages branch

example

https://github.com/LoeiFy/Mirror/tree/gh-pages

finally

everything done, now you can write your blog on GitHub issue :)

example

write the blog on this issues

https://github.com/LoeiFy/Recordum/issues

and the blog will update automatically

http://mirror.am0200.com/

upgrade

upgrade mirror

$ sudo npm install Mirror -g

remove your config file

$ cd yourblog
$ rm config.yml

reinitialize blog

$ mirror init

configure config.yml

rebuild

$ mirror build

Not installed Node.js ?

ok, you can download the latest release and configure quickly

https://github.com/LoeiFy/Mirror/raw/master/mirror.zip

<!-- index.html -->

<script>

// blog config here
// token should be separated by '#'. example: 5#c31bffc137f44faf7efc4a84da827g7ca2cfeaa
// example:
// window.config = {"title":"rorriM","user":"acyortjs","repo":"acyortjs.github.io","token":"5#c31bffc137f44faf7efc4a84da827g7ca2cfeaa","authors":"LoeiFy,User0","per_page":1,"sandbox":false}
window.config = {"title":"","user":"","repo":"","token":"","authors":"","per_page":"", "sandbox":false}

</script>

Development

fork and install modules

$ npm install

local test

$ npm run dev

build

$ npm run build

License

MIT

Related

mirror

Mirror by DJ Okawari

mirror-1's People

Contributors

loeify avatar mii9000 avatar genkio avatar yipf42 avatar

Watchers

James Cloos avatar  avatar  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.