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-indexpoetry 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
Release history Release notifications | RSS feed
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.0.tar.gz
(685.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
flask_wiki-1.0.0-py3-none-any.whl
(711.8 kB
view details)
File details
Details for the file flask_wiki-1.0.0.tar.gz.
File metadata
- Download URL: flask_wiki-1.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
410d79be07c282faba04202e8f5119a3cd19884c888e434f201f3e71dd96fa44
|
|
| MD5 |
060807deb2b20bd208040cb70adedeb4
|
|
| BLAKE2b-256 |
31b20d1746fbd11a410b10118d9878875f98f7f6a410f3192eb60cc6f359882b
|
File details
Details for the file flask_wiki-1.0.0-py3-none-any.whl.
File metadata
- Download URL: flask_wiki-1.0.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7985c81c4db4ed1204adf7188f491ea1ad64d4eed1c8ae492c4d101f3ec41c8
|
|
| MD5 |
3ab85ce8ba32d7f9091c0e80ace291a4
|
|
| BLAKE2b-256 |
83103d8b0e4d02b21fa0be1143e1fd1420d8daa7f4894a48e84c7e669046efd2
|