-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsettings.py
More file actions
executable file
路36 lines (28 loc) 路 1.79 KB
/
Copy pathsettings.py
File metadata and controls
executable file
路36 lines (28 loc) 路 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This is the root path of where the Retipedia files are contained in the .nomadnetwork storage/pages folder.
# In this example config, if your Retipedia folder is under .nomadnetwork/storage/pages/Retipedia, then the root folder would be "Retipedia"
# You can adjust this if you want it to point at somewhere else outside of the parent folder
# Set this to None (or "") if the Retipedia files live directly in storage/pages with no subfolder
root_folder = "Retipedia"
# Directory containing one or more .zim archives to host. When set, Retipedia lists
# every .zim in this folder on the index page. Run generate_meta.py once after adding
# archives to create the per-archive metadata sidecars in the zims/ subfolder.
# It must be an absolute path, like ~/myzims or /home/myuser/myzims
zims_dir = ""
# Optional single-archive fallback used when zims_dir is empty or unset.
archive_path = ""
# What type of .zim archive the single-archive fallback is - currently supported: wikipedia, generic
archive_type = "wikipedia"
# Target size in bytes for each part when a reader chooses "Read in parts" on a large
# entry. Smaller values transfer faster per request but make more parts; lower this
# (e.g. 2048) for very slow HF links, raise it for faster connections.
chunk_size = 4096
# Accent color for the interface (ascii header, links, navigation, citations)
# Options: "default" (blue), "red", "orange", "green"
accent_color = "default"
# Node settings
ascii_art_enabled = True # Do you want to print an ASCII splash at the top? (Can save a small amount of time on page load if set to "False")
node_title = "馃 The NomadNet Encyclopedia"
# The LXMF address of the Node operator - this is an optional field that can be toggled on / off to display on the about page
lxmf_address = False
# or:
# lxmf_address = "your LXMF hash here"