squip_notes
This is a very basic notes-taking program. It uses python with flask and pickle, to give a really light and simple web interface for note taking.
It uses the dracula colors.
Changing the code syntax highlight theme
- 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
- List available themes in a python shell:
from pygments.styles import STYLE_MAP
print(STYLE_MAP.keys())
- Choose one, dracula for example
- Generate the CSS from your bash/zsh/cmd... shell in a styles.css file:
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
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:
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:
docker-compose up -d
Future features, todo
- Just display the title of the notes and have a reading page
- Editing and going back erases the note :(
- Replace pickle with sqlite or smth
Description
Languages
Python
99.3%
CSS
0.3%
JavaScript
0.1%
PowerShell
0.1%