diff --git a/Docs/Making_Your_Own_Theme.md b/Docs/Making_Your_Own_Theme.md index bb5c8a8..148b17e 100644 --- a/Docs/Making_Your_Own_Theme.md +++ b/Docs/Making_Your_Own_Theme.md @@ -51,9 +51,10 @@ The preferred way to add your theme is via a Pull Request. A Pull Request is les 2) Go to `assets/themes` and create a new directory `yourtheme` 3) Create a new file `yourtheme.json`, paste the theme configuration in there. You can find your theme configuration in the customThemeBuilder (the tab with the *Floppy disk* icon) 4) Copy all the images into this new directory. **No external sources are allowed!** External image sources leak privacy or can break. - - Make sure the license is suitable, preferable a Creative Commons license. Attribution can be added at the bottom of this document - - If an SVG version is available, use the SVG version - - Make sure all the links in `yourtheme.json` are updated. You can use `./assets/themes/yourtheme/yourimage.svg` instead of the HTML link + - Make sure the license is suitable, preferable a Creative Commons license or CC0-license. + - If an SVG version is available, use the SVG version + - Make sure all the links in `yourtheme.json` are updated. You can use `./assets/themes/yourtheme/yourimage.svg` instead of the HTML link + - Create a file `license_info.json` in the theme directory, which contains metadata on every artwork source 5) Add your theme to the code base: - Open [AllKnownLayouts.ts](https://github.com/pietervdvn/MapComplete/blob/master/Customizations/AllKnownLayouts.ts) - Add an import statement, e.g. `import * as yourtheme from "../assets/themes/yourtheme/yourthemes.json";` diff --git a/assets/themes/charging_stations/bicycle.svg.license_info.json b/assets/themes/charging_stations/bicycle.svg.license_info.json index bd9bd25..3b43ae7 100644 --- a/assets/themes/charging_stations/bicycle.svg.license_info.json +++ b/assets/themes/charging_stations/bicycle.svg.license_info.json @@ -3,9 +3,9 @@ "Stijn Wens" ], "path": "bicycle.svg", - "license": "?", + "license": "CC0", "sources": [ "https://wens.be/free-antwerpenize-bicycle-font", " https://antwerpenize.be/post/634396003556081664/antwerpenize-lettertype" ] -} \ No newline at end of file +} diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..6a204a0 --- /dev/null +++ b/tslint.json @@ -0,0 +1,10 @@ +{ + "defaultSeverity": "error", + "extends": [ + "tslint:recommended", + "tslint-no-circular-imports" + ], + "jsRules": {}, + "rules": {}, + "rulesDirectory": [] +} \ No newline at end of file