Skip to content

Commit

Permalink
Merge pull request #55 from GeotrekCE/review-readme
Browse files Browse the repository at this point in the history
Review README
  • Loading branch information
bastyen authored Oct 11, 2023
2 parents 7e1107a + b6de096 commit 7035086
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions readme.md
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/)

0 comments on commit 7035086

Please sign in to comment.