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.

68 lines
2.3 KiB

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. - [ ] Plain text support for blog entries
  8. - [ ] Markdown Files (.md)
  9. - [ ] Entry page
  10. - [ ] Navigation
  11. - [ ] Header
  12. - [ ] Footer
  13. - [ ] Switchable CSS
  14. - [ ] CSS dark-theme
  15. - [ ] CSS light-theme
  16. - [ ] Config file
  17. - [ ] Docker installation
  18. - [ ] Enable variables/environment variables
  19. - [ ] Logo
  20. ## Usage
  21. ### Create entries
  22. Wiki entries are managed by plain markdown files in the `templates/entry/` directory.
  23. The first line of each document is reserved as the title of the document.
  24. ## Deployment
  25. ### PIP/Python
  26. - `git clone https://github.com/tiyn/tiyny-blog`
  27. - `cd flaskblog/src`
  28. - edit the `config.py` file according to your needs
  29. - `pip3install -r requirements.txt` - install depenencies
  30. - run `python app.py`
  31. - blog is available on port 5000
  32. ### Docker
  33. Make sure you copy an example `config.py` and edit it before running the container.
  34. The `config.py` can be found in the `src` folder.
  35. #### Volumes
  36. Set the following volumes with the -v tag.
  37. | Volume-Name | Container mount | Description |
  38. |-------------|---------------------------|--------------------------------------------------------------|
  39. | config-file | /blog/src/config.py | Config file |
  40. | entries | /blog/src/templates/entry | Directory for blog entries |
  41. | css | /blog/src/static/css | (optional) Directory for css files |
  42. | html | /blog/src/templates | (optional) Directory for templates (entry-volume not needed) |
  43. #### Ports
  44. Set the following ports with the -p tag.
  45. | Container-Port | Recommended outside port | Protocol | Description |
  46. |----------------|--------------------------|----------|-------------|
  47. | 5000 | 80 | TCP | HTTP port |
  48. #### Example run-command
  49. `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`