Merge branch 'master' of https://gitea.squi.fr/Python/squi_notes
This commit is contained in:
commit
6f6275cc59
18
README.md
18
README.md
@ -7,7 +7,7 @@ It uses the [dracula](https://github.com/dracula/dracula-theme) colors.
|
|||||||

|

|
||||||
|
|
||||||
## Changing the code syntax highlight theme
|
## Changing the code syntax highlight theme
|
||||||
* Install pygmentyze (must be in your path):
|
* Install pygmentyze (it then must be in your path; pip generally installs things in ~/.local/bin when using a Linux OS):
|
||||||
```
|
```
|
||||||
python3 pip install pygmentize
|
python3 pip install pygmentize
|
||||||
```
|
```
|
||||||
@ -23,5 +23,21 @@ pygmentize -S dracula -f html -a .codehilite > styles.css
|
|||||||
```
|
```
|
||||||
* Replace all css for .codehilite in src/static/main.css with what's in styles.css
|
* Replace all css for .codehilite in src/static/main.css with what's in styles.css
|
||||||
|
|
||||||
|
## Run with Docker
|
||||||
|
### Using traefik
|
||||||
|
If you use traefik, you only have to change the url in the label "traefik.http.routers.sqnotes.rule". You can also modify the labels to rename the service from "sqnotes" to anything else.
|
||||||
|
|
||||||
|
Then start the service. It will create the image and start it for you:
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
### Without using traefik
|
||||||
|
Simply uncomment lines 13 and 14 to expose port 8080. You can leave the rest.
|
||||||
|
Then start the container:
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
## Future features, todo
|
## Future features, todo
|
||||||
* Replace pickle with sqlite or smth
|
* Replace pickle with sqlite or smth
|
||||||
|
BIN
squipnotes.png
BIN
squipnotes.png
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 26 KiB |
Loading…
x
Reference in New Issue
Block a user