Simple file-based wiki with fulltext-search.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.6 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Python Flask Wiki
  2. This is a simple wiki based on Pythons Flask framework.
  3. There is much great wiki software.
  4. Most of them are using some kind of database.
  5. I however just want to put my markdown files in a directory and get a working wiki.
  6. ## Features/To-Dos
  7. - [x] Plain text support for wiki entries
  8. - [x] Markdown Files (.md)
  9. - [x] Entry page
  10. - [ ] Option to get plain text file
  11. - [ ] Optimize CSS for code
  12. - [x] Start page
  13. - [ ] Overview of pages and namespaces
  14. - [x] Search page
  15. - [x] Full-text search
  16. - [x] Show first few lines of each match (preview)
  17. - [ ] Better CSS
  18. - [x] Navigation
  19. - [x] More advanced namespaces
  20. - [x] Header
  21. - [ ] Random article
  22. - [ ] Search bar in header
  23. - [x] Footer
  24. - [x] Switchable CSS
  25. - [x] CSS dark-theme
  26. - [x] CSS light-theme
  27. - [x] Config file
  28. - [x] Docker installation
  29. - [ ] Enable variables/environment variables
  30. - [ ] Logo
  31. ## Usage
  32. ### Create entries
  33. Wiki entries are managed by plain markdown files in the `templates/entry/` directory.
  34. The first line of each document is reserved as the title of the document.
  35. ## Deployment
  36. ### PIP/Python
  37. - `git clone https://github.com/tiyn/tiyny-wiki`
  38. - `cd tiyny-wiki/src`
  39. - edit the `config.py` file according to your needs
  40. - `pip3install -r requirements.txt` - install depenencies
  41. - run `python app.py`
  42. - wiki is available on port 5000
  43. ### Docker
  44. Make sure you copy an example `config.py` and edit it before running the container.
  45. The `config.py` can be found in the `src` folder.
  46. #### Volumes
  47. Set the following volumes with the -v tag.
  48. | Volume-Name | Container mount | Description |
  49. |-------------|---------------------------|--------------------------------------------------------------|
  50. | config-file | /wiki/src/config.py | Config file |
  51. | entries | /wiki/src/templates/entry | Directory for wiki entries |
  52. | css | /wiki/src/static/css | (optional) Directory for css files |
  53. | html | /wiki/src/templates | (optional) Directory for templates (entry-volume not needed) |
  54. #### Ports
  55. Set the following ports with the -p tag.
  56. | Container-Port | Recommended outside port | Protocol | Description |
  57. |----------------|--------------------------|----------|-------------|
  58. | 5000 | 80 | TCP | HTTP port |
  59. #### Example run-command
  60. `docker run --name wiki --restart unless-stopped -v ./config.py:/wiki/src/config.py -v entries:/wiki/src/templates/entry -p 80:5000 -d tiynger/tiyny-wiki`