minor style changes, added graphics volume

master
tiyn 9 months ago
parent 0bc1a955a6
commit cdf6660cae

@ -10,6 +10,8 @@ RUN pip3 install -r requirements.txt
VOLUME /wiki/templates/entry
VOLUME /wiki/static/graphics
EXPOSE 5000
ENTRYPOINT [ "python3" ]

@ -60,12 +60,13 @@ The `config.py` can be found in the `src` folder.
Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description |
| ----------- | ------------------------- | ------------------------------------------------------------ |
| config-file | /wiki/config.py | Config file |
| entries | /wiki/templates/entry | Directory for wiki entries |
| css | /wiki/static/css | (optional) Directory for css files |
| html | /wiki/templates | (optional) Directory for templates (entry-volume not needed) |
| Volume-Name | Container mount | Description |
| ------------- | ----------------------- | ------------------------------------------------------------ |
| `config-file` | `/wiki/config.py` | Config file |
| `entries` | `/wiki/templates/entry` | Directory for wiki entries |
| `graphics` | `/wiki/static/graphics` | Directory for images needed for entries |
| `css` | `/wiki/static/css` | (optional) Directory for css files |
| `html` | `/wiki/templates` | (optional) Directory for templates (entry-volume not needed) |
#### Ports

@ -1,11 +1,9 @@
from flask_wtf import FlaskForm
from flask_wtf import CSRFProtect
from wtforms import TextField, SubmitField, ValidationError, validators
from flask_wtf import CSRFProtect, FlaskForm
from wtforms import StringField, SubmitField, ValidationError, validators
csrf = CSRFProtect()
class SearchForm(FlaskForm):
query_str = TextField(
"Query", [validators.Required("Please enter the search term")])
submit = SubmitField("Search")
query_str = StringField("Query", [validators.DataRequired("Please enter the search term")])
submit = SubmitField("Search")

@ -1,5 +1,5 @@
Markdown==3.1.1
WTForms==2.2.1
Flask==1.1.2
Flask_WTF==0.14.3
Whoosh==2.7.4
Markdown
WTForms
Flask
Flask_WTF
Whoosh

@ -165,3 +165,7 @@ ul {
right: 0;
}
}
figure {
padding:20px;
}

Loading…
Cancel
Save