added campersites theme

* campersite theme
* minor corrections to documentation
Note: I did not manage to test (no npm etc on this pc)
This commit is contained in:
Joost 2021-03-04 21:58:00 +01:00
parent f0742ab812
commit 2ce4a42413
6 changed files with 740 additions and 2 deletions

View file

@ -56,8 +56,8 @@ The preferred way to add your theme is via a Pull Request. A Pull Request is les
- Make sure all the links in `yourtheme.json` are updated. You can use `./assets/themes/yourtheme/yourimage.svg` instead of the HTML link
5) Add your theme to the code base:
- Open [AllKnownLayouts.ts](https://github.com/pietervdvn/MapComplete/blob/master/Customizations/AllKnownLayouts.ts)
- Add an import statatement, e.g. `import * as yourtheme from "../assets/themes/yourtheme/yourthemes.json";`
- Add your theme to the `LayoutList`, by adding a line `FromJSON.LayoutFromJSON(yourtheme)`
- Add an import statement, e.g. `import * as yourtheme from "../assets/themes/yourtheme/yourthemes.json";`
- Add your theme to the `LayoutsList`, by adding a line `new LayoutConfig(yourtheme)`
6) Test your theme: run the project as described [above](../README.md#Dev)
7) Happy with your theme? Time to open a Pull Request!
8) Thanks a lot for improving MapComplete!