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.9.2,<3.13
  • uv

Install dev environment

  • Clone the git repository
  • run uv sync --frozen
  • cd examples
  • uv run flask flask_wiki init-index
  • uv run flask flask_wiki index
  • then uv 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.3.tar.gz (691.1 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.3-py3-none-any.whl (718.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flask_wiki-1.0.3.tar.gz
  • Upload date:
  • Size: 691.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.4

File hashes

Hashes for flask_wiki-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c253d82529e009c03dc1aeeb64b99036725ba1011f7efeb54afbaa607100dada
MD5 e7ac29f4854740d943571c7a0c9286ad
BLAKE2b-256 a029abbd5806eaa3d923ec922ef62180f9cbdfe9cd3d729880483dd7f9a8296a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flask_wiki-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 718.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.4

File hashes

Hashes for flask_wiki-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e48a210201f584f805abda483d9b9cef2e32b9fd4f6a5c20498fba04d0bdbb32
MD5 2018693067a0d8825c15cf054f4519af
BLAKE2b-256 bbb3374978ce75dd3b154f959341d99cdb02b7c51b3e2694f414c26b09a713d3

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