Skip to main content

Simple file-based wiki for Flask

Project description

Flask-Wiki

About

Simple file based wiki for Flask.

Getting started

Requirements

  • Python >=3.8.0,<4.0.0
  • Poetry

Install dev environment

  • Clone the git repository
  • run poetry install
  • cd examples,
  • poetry run flask flask_wiki init-index
  • poetry run flask flask_wiki index
  • then poetry run flask run --debug
  • go to http://localhost:5000/help

Configuration

Templates

  • WIKI_BASE_TEMPLATE = 'wiki/base.html'
  • WIKI_SEARCH_TEMPLATE = 'wiki/search.html'
  • WIKI_NOT_FOUND_TEMPLATE = 'wiki/404.html'
  • WIKI_FORBIDDEN_TEMPLATE = 'wiki/403.html'
  • WIKI_EDITOR_TEMPLATE = 'wiki/editor.html'
  • WIKI_FILES_TEMPLATE = 'wiki/files.html'
  • WIKI_PAGE_TEMPLATE = 'wiki/page.html'

Miscs

  • WIKI_HOME = 'home'
  • WIKI_CURRENT_LANGUAGE = lambda: 'en'
  • WIKI_LANGUAGES = {'en': 'English', 'fr': 'French', 'de': 'German', 'it': 'Italian'}
  • WIKI_URL_PREFIX = '/help'
  • WIKI_CONTENT_DIR = './data'
  • WIKI_INDEX_DIR = './index'
  • WIKI_UPLOAD_FOLDER = os.path.join(WIKI_CONTENT_DIR, 'files')
  • WIKI_ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'svg'}
  • WIKI_MARKDOWN_EXTENSIONS = set(('codehilite', 'fenced_code'))

Permissions

  • WIKI_EDIT_VIEW_PERMISSION = lambda: True
  • WIKI_READ_VIEW_PERMISSION = lambda: True
  • WIKI_EDIT_UI_PERMISSION = WIKI_EDIT_VIEW_PERMISSION
  • WIKI_READ_UI_PERMISSION = WIKI_READ_VIEW_PERMISSION

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_wiki-1.0.1.tar.gz (685.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_wiki-1.0.1-py3-none-any.whl (711.8 kB view details)

Uploaded Python 3

File details

Details for the file flask_wiki-1.0.1.tar.gz.

File metadata

  • Download URL: flask_wiki-1.0.1.tar.gz
  • Upload date:
  • Size: 685.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1014-azure

File hashes

Hashes for flask_wiki-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7698f8fe99c2cbd739c908f64a0cd7dc98546687a3fcfff4d5ffb72dacad40df
MD5 f84366dc2be7997fb0af8395ec6bb132
BLAKE2b-256 f578074b42e201587f22a39f64e0971a95fd0b5c2208ca3ccf517a2248517a07

See more details on using hashes here.

File details

Details for the file flask_wiki-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: flask_wiki-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 711.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1014-azure

File hashes

Hashes for flask_wiki-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9032018f452b7e8fda4d9c41f759508c8dadd4fa1883f1e2efcaf4e5ea8df533
MD5 f024ff85cf59e01c16611317a9253215
BLAKE2b-256 86cdbcaad6daa8773d3000e9b4b541b93045e3257f82b44bddc77e61d76e5532

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page