-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[app] | ||
# Network address for the server to listen on. | ||
address = ":8080" | ||
|
||
# The website URL to be used on the frontend pages. | ||
# Example: yourdictionary.site.com | ||
root_url = "http://localhost:9000" | ||
|
||
# Enable rendering arbitrary pages from (site_dir/pages/*.html). | ||
# For instance, "about" for site_dir/pages/about.html will be | ||
# rendered on site.com/pages/about where the template is defined | ||
# with the name {{ define "page-about" }}. All template name definitions | ||
# should be "page-*". | ||
# | ||
# This is relevant when starting dictmaker with a site theme (--site param). | ||
enable_pages = false | ||
|
||
|
||
[results] | ||
# Default number of entries to return per page when paginated. | ||
default_per_page = 10 | ||
|
||
# The absolute maximum number of results to return per query in case the | ||
# per_page value above if overwritten from the frontend. | ||
max_per_page = 20 | ||
|
||
# num_page_nums is the of number of page numbers to generate when | ||
# generating page numbers to be printed (eg: 1, 2 ... 10 ..). | ||
# Only relevant for HTML sites loaded with --site. | ||
num_page_nums = 10 | ||
|
||
|
||
[glossary] | ||
default_per_page = 100 | ||
max_per_page = 100 | ||
num_page_nums = 10 | ||
|
||
|
||
[db] | ||
host = "localhost" | ||
port = 5432 | ||
db = "mydict" | ||
user = "" | ||
password = "" | ||
|
||
|
||
[lang.english] | ||
name = "English" | ||
|
||
# The name of the tokenizer used to tokenize search queries. | ||
# This can be either a Postgres supported tsvector regconfig (eg: english|german|finnish etc.) | ||
# or a built-in tokenizer (eg: indicphone) | ||
# tokenizer_type = postgres | custom | ||
tokenizer = "english" | ||
tokenizer_type = "postgres" | ||
|
||
[lang.english.types] | ||
noun = "Noun" | ||
adj = "Adjective" | ||
verb = "Verb" | ||
adv = "Adverb" | ||
conj = "Conjugation" | ||
|
||
[lang.italian] | ||
tokenzier = "italian" | ||
tokenizer_type = "postgres" | ||
|
||
[lang.italian.types] | ||
sost = "Sostantivo" # Noun | ||
verb = "Verbo" # Verb |