A very-very-very simple frontend to serve Notion export as a standalone website.
-
Build docker image:
docker build -t notion-front .
-
Export Notion content with the following settings:
- Export format: HTML
- Include content: Everything
- Include subpages: Yes
- Create folders for subpages: Yes
-
Run docker image:
- mount extracted Notion export archive as
/content
volume (this volume path can be overriden usingSOURCE_DIR
variable) - mount a cache directory as
/cache
volume (this volume path can be overriden usingCACHE_DIR
variable) - bind port
80
(this port path can be overriden usingLISTEN_ADDR
variable)
Example:
docker run -d -v $(pwd):/content -p 8000:80 notion-front:latest
- mount extracted Notion export archive as
Env variable | Default value | Description |
---|---|---|
SOURCE_DIR |
/content |
Path to content directory |
CACHE_DIR |
/cache |
Path to cache directory |
LISTEN_ADDR |
0.0.0.0:80 |
HTTP endpoint to listen |