mirror of
https://github.com/tiyn/amphora-wiki.git
synced 2025-04-19 15:27:46 +02:00
minor style changes, added graphics volume
This commit is contained in:
parent
0bc1a955a6
commit
cdf6660cae
@ -10,6 +10,8 @@ RUN pip3 install -r requirements.txt
|
|||||||
|
|
||||||
VOLUME /wiki/templates/entry
|
VOLUME /wiki/templates/entry
|
||||||
|
|
||||||
|
VOLUME /wiki/static/graphics
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
ENTRYPOINT [ "python3" ]
|
ENTRYPOINT [ "python3" ]
|
||||||
|
11
README.md
11
README.md
@ -61,11 +61,12 @@ The `config.py` can be found in the `src` folder.
|
|||||||
Set the following volumes with the -v tag.
|
Set the following volumes with the -v tag.
|
||||||
|
|
||||||
| Volume-Name | Container mount | Description |
|
| Volume-Name | Container mount | Description |
|
||||||
| ----------- | ------------------------- | ------------------------------------------------------------ |
|
| ------------- | ----------------------- | ------------------------------------------------------------ |
|
||||||
| config-file | /wiki/config.py | Config file |
|
| `config-file` | `/wiki/config.py` | Config file |
|
||||||
| entries | /wiki/templates/entry | Directory for wiki entries |
|
| `entries` | `/wiki/templates/entry` | Directory for wiki entries |
|
||||||
| css | /wiki/static/css | (optional) Directory for css files |
|
| `graphics` | `/wiki/static/graphics` | Directory for images needed for entries |
|
||||||
| html | /wiki/templates | (optional) Directory for templates (entry-volume not needed) |
|
| `css` | `/wiki/static/css` | (optional) Directory for css files |
|
||||||
|
| `html` | `/wiki/templates` | (optional) Directory for templates (entry-volume not needed) |
|
||||||
|
|
||||||
#### Ports
|
#### Ports
|
||||||
|
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
from flask_wtf import FlaskForm
|
from flask_wtf import CSRFProtect, FlaskForm
|
||||||
from flask_wtf import CSRFProtect
|
from wtforms import StringField, SubmitField, ValidationError, validators
|
||||||
from wtforms import TextField, SubmitField, ValidationError, validators
|
|
||||||
|
|
||||||
csrf = CSRFProtect()
|
csrf = CSRFProtect()
|
||||||
|
|
||||||
|
|
||||||
class SearchForm(FlaskForm):
|
class SearchForm(FlaskForm):
|
||||||
query_str = TextField(
|
query_str = StringField("Query", [validators.DataRequired("Please enter the search term")])
|
||||||
"Query", [validators.Required("Please enter the search term")])
|
|
||||||
submit = SubmitField("Search")
|
submit = SubmitField("Search")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Markdown==3.1.1
|
Markdown
|
||||||
WTForms==2.2.1
|
WTForms
|
||||||
Flask==1.1.2
|
Flask
|
||||||
Flask_WTF==0.14.3
|
Flask_WTF
|
||||||
Whoosh==2.7.4
|
Whoosh
|
||||||
|
@ -165,3 +165,7 @@ ul {
|
|||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
padding:20px;
|
||||||
|
}
|
||||||
|
0
src/static/graphics/.gitkeep
Normal file
0
src/static/graphics/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user