From f8002ff58ecb9f41375f874be4f6c662e2385ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 22 Aug 2022 08:41:08 +0100 Subject: [PATCH] Documentation: Rename tutorial --- README.md | 2 ++ doc/{CategoryAsYAML.md => Tutorial.md} | 0 src/customCategory.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) rename doc/{CategoryAsYAML.md => Tutorial.md} (100%) diff --git a/README.md b/README.md index 67fe8be8..0c71ef87 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,8 @@ You are welcome to send pull requests via Github! ### Category definition There are currently two types of categories: `index` (for sub categories) and `overpass` (for OpenStreetMap data, loaded via an Overpass API request). Each of them is defined via a JSON structure. They can be combined into a single file. +Check out the [tutorial](./doc/Tutorial.md)! + #### Category 'index' File: dir.json ```json diff --git a/doc/CategoryAsYAML.md b/doc/Tutorial.md similarity index 100% rename from doc/CategoryAsYAML.md rename to doc/Tutorial.md diff --git a/src/customCategory.js b/src/customCategory.js index 238ca65d..5cd30543 100644 --- a/src/customCategory.js +++ b/src/customCategory.js @@ -148,7 +148,7 @@ class CustomCategoryEditor { const tutorial = document.createElement('span') tutorial.className = 'tip-tutorial' let text = lang('tip-tutorial') - text = text.replace('[', '') + text = text.replace('[', '') text = text.replace(']', '') tutorial.innerHTML = text controls.appendChild(tutorial)