Skip to content

Commit

Permalink
build new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gebuz committed Dec 1, 2023
1 parent e3b720d commit cf51f5c
Show file tree
Hide file tree
Showing 26 changed files with 79 additions and 46 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Brug OKAPI CSS og JS direkte fra CDN:
```html
<head>
...
<link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">
...
</head>
<body>
Expand All @@ -98,7 +98,7 @@ Brug OKAPI CSS og JS direkte fra CDN:

### CSS

Vores standard styling kan findes her: https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css
Vores standard styling kan findes her: https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css

## Anvendelse

Expand Down
2 changes: 2 additions & 0 deletions bin/build-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ try {
temp = temp.replaceAll('InsertYourPasswordHere', password)

const code_css_str = `https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@${pkg.version}/dist/okapi.min.css`
const code_js_str = `https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@${pkg.version}`

let code = template_code_html.replace('InsertContentHere', markup).replaceAll('<', '&lt;')
code = code.replace('InsertCodeCSSHere', code_css_str)
code = code.replace('./okapi.min.js', code_js_str)
temp = temp.replace('InsertCodeExampleHere', code)

await writeHTML(`docs/${ file }`, temp)
Expand Down
16 changes: 8 additions & 8 deletions dist/okapi.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/okapi.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/okapi.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/okapi.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/okapi.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -101,7 +101,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
new Initialize({})
&lt;/script>
&lt;/main>
Expand Down
4 changes: 2 additions & 2 deletions docs/clusters.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -173,7 +173,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
new Initialize({})
&lt;/script>
&lt;/main>
Expand Down
4 changes: 2 additions & 2 deletions docs/custom-click.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -101,7 +101,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
const maps = new Initialize({})

maps.maps[0].addOnFeatureClickFunction((feature) => {
Expand Down
4 changes: 2 additions & 2 deletions docs/datafordeler.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -85,7 +85,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
new Initialize({})
&lt;/script>
&lt;/main>
Expand Down
4 changes: 2 additions & 2 deletions docs/double.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -189,7 +189,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
new Initialize({})
&lt;/script>
&lt;/main>
Expand Down
4 changes: 2 additions & 2 deletions docs/markers-advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -186,7 +186,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
const maps = new Initialize({
icons: {
'museum': 'custom.png'
Expand Down
4 changes: 2 additions & 2 deletions docs/markers-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
&lt;meta name="viewport" content="width=device-width,initial-scale=1.0">
&lt;title>Eksempel&lt;/title>

&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.0.0/dist/okapi.min.css" rel="stylesheet">
&lt;link href="https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0/dist/okapi.min.css" rel="stylesheet">

&lt;/head>
&lt;body>
Expand Down Expand Up @@ -97,7 +97,7 @@
-->

&lt;script type="module">
import { Initialize } from './okapi.min.js'
import { Initialize } from 'https://cdn.jsdelivr.net/npm/@dataforsyningen/okapi@2.1.0'
new Initialize({})
&lt;/script>
&lt;/main>
Expand Down
16 changes: 8 additions & 8 deletions docs/okapi.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cf51f5c

Please sign in to comment.