From 287c0cec6596d293ab4a30a1fb0c88ad78b0dcc1 Mon Sep 17 00:00:00 2001 From: Marc Tobias Date: Sun, 7 Aug 2022 18:35:56 -0700 Subject: [PATCH] new dist/theme/config.theme.js.example file, hopefully easier --- README.md | 8 +------- dist/config.defaults.js | 3 ++- dist/theme/config.theme.js.example | 5 +++++ 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 dist/theme/config.theme.js.example diff --git a/README.md b/README.md index 687b879..fa4f021 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,7 @@ You can either ## Configuration -You can customize your installation by creating and editing `dist/theme/config.theme.js` which allows you to override the default values provided by `dist/config.default.js`. - -The following `config.theme.js` example file changes the location of the API endpoint: - -```javascript - Nominatim_Config.Nominatim_API_Endpoint = 'http://my-server:1234/'; -``` +You can customize your installation by creating and editing `dist/theme/config.theme.js` which allows you to override the default values provided by `dist/config.default.js`. See the `config.theme.js.example` in the same directory for examples. The `dist/theme/` directory also contains files make it easy to set a different logo image, colors, welcome and help text. diff --git a/dist/config.defaults.js b/dist/config.defaults.js index 5846e92..abda5ae 100644 --- a/dist/config.defaults.js +++ b/dist/config.defaults.js @@ -1,4 +1,5 @@ -// You can overwrite any defaults in dist/theme/config.theme.js +// You can overwrite any defaults in dist/theme/config.theme.js (see +// *.js.example file in that directory) let Nominatim_Config = { Page_Title: 'Nominatim Demo', diff --git a/dist/theme/config.theme.js.example b/dist/theme/config.theme.js.example new file mode 100644 index 0000000..4c14a90 --- /dev/null +++ b/dist/theme/config.theme.js.example @@ -0,0 +1,5 @@ +// Example file how to overwrite defaults from config.default.js +// The file should be named 'config.theme.js' + +Nominatim_Config.Nominatim_API_Endpoint = 'http://myserver.example.com:1234/nominatim/'; +Nominatim_Config.Page_Title = 'My Server demo; -- 2.45.1