1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-17 12:01:02 +02:00

Updated Configuration (markdown)

Nick Sweeting
2024-02-18 05:52:20 -08:00
parent c495898948
commit 22603809f8

@@ -150,16 +150,18 @@ Path to a directory containing custom html/css/images for overriding the default
If you've used `django` before, this works exactly the same way that `django` template overrides work (because it uses `django` under the hood). If you've used `django` before, this works exactly the same way that `django` template overrides work (because it uses `django` under the hood).
```bash ```bash
$ pip show -f archivebox | grep Location: | awk '{print $2}' pip show -f archivebox | grep Location: | awk '{print $2}'
/opt/homebrew/lib/python3.11/site-packages # /opt/homebrew/lib/python3.11/site-packages
$ pip show -f archivebox | grep archivebox/templates
archivebox/templates/admin/app_index.html pip show -f archivebox | grep archivebox/templates
archivebox/templates/admin/base.html # archivebox/templates/admin/app_index.html
archivebox/templates/admin/login.html # archivebox/templates/admin/base.html
... # archivebox/templates/admin/login.html
# ...
# copy default templates into a directory somewhere, edit as needed, then point archivebox to it # copy default templates into a directory somewhere, edit as needed, then point archivebox to it
$ cp -r /opt/homebrew/lib/python3.11/site-packages/archivebox/templates ~/archivebox/custom_templates cp -r /opt/homebrew/lib/python3.11/site-packages/archivebox/templates ~/archivebox/custom_templates
$ archivebox config --set CUSTOM_TEMPLATES_DIR=~/archivebox/custom_templates archivebox config --set CUSTOM_TEMPLATES_DIR=~/archivebox/custom_templates
``` ```
*Related options:* *Related options:*