-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from GeotrekCE/review-readme
Review README
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
# Geotrek rando widget | ||
# Geotrek-rando widget | ||
|
||
Web components of [Geotrek](https://geotrek.fr/).\ | ||
You can use a complete app or each component independantly. | ||
|
||
- To test and configure the widget: https://geotrekce.github.io/Geotrek-rando-widget/ | ||
- Examples: | ||
- https://www.jurabsolu.fr/decouvrez-territoire-jura/randonnees-forets-vignes-jura/ | ||
- https://www.coeurdujura-tourisme.com/activites-nature-jura-outdoor-loisirs/activites-pleine-nature/ | ||
- https://geotrek.ecrins-parcnational.fr/ressources/technique/2022-test-widget.html | ||
|
||
## Usage | ||
|
||
**The api you want to use had to authorize your domain.** | ||
**The Geotrek-admin API you want to use has to authorize the URL of the website where you want to include the widget.** | ||
|
||
Copy-paste this inside `<head></head>` | ||
Copy-paste this inside `<head></head>` to load static widget files: | ||
|
||
```html | ||
<link rel="stylesheet" href="https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.css" /> | ||
<script type="module" src="https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js"></script> | ||
<script nomodule src="https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.js"></script> | ||
``` | ||
|
||
## Explore | ||
Then you have to configure the widget to generate the widget code to include in your website. | ||
|
||
## Configure | ||
|
||
**The api you want to use had to authorize geotrekce.github.io.** | ||
**The API you want to use has to authorize geotrekce.github.io.** | ||
|
||
You can explore Geotrek rando widget and create your own component [here](https://geotrekce.github.io/Geotrek-rando-widget/).\ | ||
You can explore Geotrek-rando widget and create your own component [here](https://geotrekce.github.io/Geotrek-rando-widget/).\ | ||
Once you made your component, you can get the code to copy-paste by clicking on _Docs_ then _Show code_. | ||
|
||
[![](https://geotrek.fr/assets/img/logo_autonomens-h120m.png)](https://datatheca.com/) |