Browse Source

Documentation: Rename tutorial

master
parent
commit
f8002ff58e
  1. 2
      README.md
  2. 0
      doc/Tutorial.md
  3. 2
      src/customCategory.js

2
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

0
doc/CategoryAsYAML.md → doc/Tutorial.md

2
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('[', '<a target="_blank" href="https://github.com/plepe/OpenStreetBrowser/blob/master/doc/CategoryAsYAML.md">')
text = text.replace('[', '<a target="_blank" href="https://github.com/plepe/OpenStreetBrowser/blob/master/doc/Tutorial.md">')
text = text.replace(']', '</a>')
tutorial.innerHTML = text
controls.appendChild(tutorial)

Loading…
Cancel
Save