Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review README #55

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/)