Giter Site home page Giter Site logo

gollum-wiki-template's Introduction

gollum-wiki-template

This is a lightweight gollum wiki template based on the origin-template. This wiki will be hosted automatically in your local machine when you start the ubuntu after the installation. You can edit the content in markdown and preview the page from the browser directly whenever you want.

You can build your own wiki from now on.

build your own wiki repo

Just fork this repo to your account and clone it to your computer.

git clone [email protected]:Magic-wei/gollum-wiki-template.git && cd gollum-wiki-template

Install

If it is your first time to install dependencies, please run commands below.

bash install.bash  # install dependencies
bash setup.bash    # set up the autostart service

If you have already installed the dependencies and just want to switch between different computers, just run the command below to set up the service:

bash setup.bash

Then you can get your localhost IP from the feedback:

Created service.bash file
Created the wiki.conf file.
Prepare auto start service for the wiki.
Init folder is already there!
Start the service!
Already have the autostart folder.
wiki start/running, process 5801
localhost:8888 # here is your localhost IP 8888.

Usage

Open your browser and check the wiki out by localhost:8888.

Start and Stop wiki

This wiki will be hosted automatically when you start the ubuntu. You don't need to run commands below.

start wiki  # start to host the wiki, the "wiki" is defined by the COMMAND variable.
stop wiki   # stop to host the wiki,  the "wiki" is defined by the COMMAND variable.

Adjustable Parameters

You can modify the port number of your wiki in script file setup.bash,

PORT=4567    # hosting port

Then run the command:

bash setup.bash

Below is your service name of your wiki.

COMMAND=wiki   # default value is wiki

The Gollum Configuration used by this repo:

Gollum::Page.send :remove_const, :FORMAT_NAMES if defined? Gollum::Page::FORMAT_NAMES
wiki_options = {
  :live_preview => true,
  :allow_uploads => true,
  :per_page_uploads => true,
  :allow_editing => true,
  :css => true,
  :js => true,
  :mathjax => true,
  :h1_title => true,
  :emoji => true
}
Precious::App.set(:wiki_options, wiki_options)

gollum-wiki-template's People

Contributors

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