Coder Social home page Coder Social logo

fliki's Introduction

fliki

Flask-based, filesystem-backed miniature read-only Wiki rendering engine using reSturcturedText markup

Any modifications are done on filesystem, there is no editing capability (and none planned). However system should pick up changes on filesystem immediately.

Requirements

  • flask
    • Jinja2
  • docutils
  • whoosh

Usage

create folder stucture:

my_wiki/
  content/
  compiled/

and execute wiki.py from within my_wiki folder:

$ cd my_wiki
$ python /path/to/wiki.py

point your browser to "localhost:8000" and explore your Wiki

Special URLs

  • /search - invokes site-wide search (using index)
  • /any/path/search - search only under "/any/path" (using index)
  • /reindex - force reindex of the search DB
  • /some/path/file[.ext] - if file with this extension doesn't exist, extension will be dropped and other extensions with the same filename tried.

Customization

Currently if you add folder "templates":

my_wiki/
  content/
  compiled/
  templates/

under which you can create "dirlist.html" to override default template. More templating is planned in the future.

Scaling

As per Flask documentation one needs to employ Standalone WSGI Containers to scale Flask applications to something that can handle real-world loads.

Freezer

Freezer is a "compiler" for the content - converting whatever can be converted to static HTML. Freezer script is built using Frozen Flask so follow it's documentation for usage and tuning.

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.