From ae1d26e7c11d8ce6fa3e9ed6523bdda0da8abcda Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Thu, 3 Nov 2022 11:35:49 -0400 Subject: [PATCH 1/2] Link to NPM section under Usage section in README.md. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1d099ff..6b7bf93 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,11 @@ For more information on farmOS, visit [farmOS.org](https://farmOS.org). ## Usage +For NPM/Webpack usage, see +[Working with farmOS-map in an NPM/Webpack Project](#working-with-farmos-map-in-an-npmwebpack-project). + +For generic HTML/JavaScript usage: + 1. Host the `.js` and `.css` files from the `dist/` directory of this package somehow. 2. Include `farmOS-map.js` and `farmOS-map.css` in the page. e.g.: ```html From 9eba4ce004f9c718ad740620e1981ca7b130e975 Mon Sep 17 00:00:00 2001 From: Jamie Gaehring Date: Thu, 3 Nov 2022 14:07:45 -0400 Subject: [PATCH 2/2] Separate installation info from README.md#usage. --- README.md | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6b7bf93..fab93df 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,9 @@ farmOS Map is an [OpenLayers](https://openlayers.org/) map for farmOS. For more information on farmOS, visit [farmOS.org](https://farmOS.org). -## Usage - -For NPM/Webpack usage, see -[Working with farmOS-map in an NPM/Webpack Project](#working-with-farmos-map-in-an-npmwebpack-project). +## Installation -For generic HTML/JavaScript usage: +### Via HTML `