Giter Club home page Giter Club logo

static-wiki's Introduction

Demo Page

static-wiki

Static wiki is a client side wiki for pure markdown. All you need is a simple file server(Github Pages is enough) to serve files and a browser to actually view.

  1. Now you can write your documents in markdown and never have to worry about it anymore.
  2. If you use Github Pages, you can turn github into your own personal wiki with some simple configurations.

Installation

  1. copy index.html, css/, main.js into your wiki directory.
  2. Create file index.md if not exist. This will be your home page.
  3. Start a file server under your wiki directory.

How to start a file server? Take http-server as an example:

npm install -g http-server
cd your-wiki-directory
http-server

Configuration

Change Default Home Page:

  1. open main.js with your favorite editor.
  2. change index.md in var file_index = 'index.md'; to whatever you like.

Search

In order to provide search function, static-wiki will actually download every markdown file behind the scene. However, static-wiki have no idea what files are contained in your wiki, so you need to add file all.txt in your wiki with all the markdown file names(line by line) like:

index.md
README.md

Further Configuration

Well, it is written in HTML/CSS/Javascript, modify as you wish.

Use Github Pages for Hosting

Github Pages provide hosts of static file for project wikis. Which in our case is the perfect tool for serving files. I won't go into the details of using Github pages, please read the corresponding documents.

Here is my workflow.

  1. Publish my wiki(markdown files and static-wiki files) to branch gh-pages to enable Github pages. Now our wiki is up.
  2. Whenever I want to edit something, I directly edit it on Github, Done.

static-wiki's People

Contributors

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