From 559712f72879de1a88cdd4305a43f58628b14bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sun, 21 Aug 2022 01:10:52 +0200 Subject: [PATCH 1/9] Fix some invalid html markup and some inconsistencies --- config/jsdoc/api/template/tmpl/layout.tmpl | 2 +- examples/geolocation-orientation.html | 16 ++++++++-------- examples/hit-tolerance.html | 2 +- examples/index.html | 5 ++--- examples/mobile-full-screen.html | 8 ++++---- examples/resources/external-map-map.html | 5 +++-- examples/templates/example.html | 4 ++-- site/layouts/default.hbs | 14 +++++++------- site/src/doc/quickstart.md | 1 + site/src/index.hbs | 2 +- .../cases/linestring-style-css-filter/index.html | 7 ++++--- test/rendering/cases/map-text-align/index.html | 5 +++-- test/rendering/cases/render-context/index.html | 5 +++-- test/rendering/default/index.html | 7 ++++--- 14 files changed, 44 insertions(+), 39 deletions(-) diff --git a/config/jsdoc/api/template/tmpl/layout.tmpl b/config/jsdoc/api/template/tmpl/layout.tmpl index 85c0f42249..b7899ebe2c 100644 --- a/config/jsdoc/api/template/tmpl/layout.tmpl +++ b/config/jsdoc/api/template/tmpl/layout.tmpl @@ -4,7 +4,7 @@ var version = obj.packageInfo.version; - + OpenLayers v<?js= version ?> API - <?js= title ?> diff --git a/examples/geolocation-orientation.html b/examples/geolocation-orientation.html index d2285ea893..5c16753d67 100644 --- a/examples/geolocation-orientation.html +++ b/examples/geolocation-orientation.html @@ -4,16 +4,16 @@ title: Geolocation Tracking with Orientation shortdesc: Example of a geolocated and oriented map. tags: "fullscreen, geolocation, orientation, mobile" --- - + - + - - - Mobile Geolocation Tracking with Orientation - -
@@ -44,7 +43,8 @@ tags: "fullscreen, geolocation, orientation, mobile" - + + diff --git a/examples/hit-tolerance.html b/examples/hit-tolerance.html index 9b7d8c78b5..36a3ebaa3e 100644 --- a/examples/hit-tolerance.html +++ b/examples/hit-tolerance.html @@ -20,5 +20,5 @@ tags: "hitTolerance"   Area:   - + diff --git a/examples/index.html b/examples/index.html index 42d5041bac..fc58e16c06 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,8 +1,9 @@ - + + OpenLayers Examples @@ -39,8 +40,6 @@ background-color: #f8f9fa !important; } - - OpenLayers Examples diff --git a/examples/mobile-full-screen.html b/examples/mobile-full-screen.html index 1f8b288159..de46b6d381 100644 --- a/examples/mobile-full-screen.html +++ b/examples/mobile-full-screen.html @@ -7,14 +7,14 @@ cloak: - key: AlEoTLTlzFB6Uf4Sy-ugXcRO21skQO7K8eObA5_L-8d20rjqZJLs2nkO1RMjGSPN value: Your Bing Maps Key from https://www.bingmapsportal.com/ here --- - + - + Mobile full screen example - - - - @@ -102,7 +98,7 @@ - + diff --git a/examples/index.js b/examples/index.js index 20d8f3b72c..5feee2bbbd 100644 --- a/examples/index.js +++ b/examples/index.js @@ -12,7 +12,7 @@ clone: true, parent: target, }); - document.getElementById('count').innerHTML = ' ' + examples.length + ' '; + document.getElementById('count').innerHTML = String(examples.length); } let timerId; diff --git a/examples/kml-earthquakes.html b/examples/kml-earthquakes.html index 4b8a63b205..56f59077ae 100644 --- a/examples/kml-earthquakes.html +++ b/examples/kml-earthquakes.html @@ -7,7 +7,7 @@ docs: > tags: "KML, vector, style, tooltip" resources: - https://code.jquery.com/jquery-3.5.1.min.js - - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css - - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js ---
diff --git a/examples/kml-timezones.html b/examples/kml-timezones.html index c9a076fa2c..b2da0940c2 100644 --- a/examples/kml-timezones.html +++ b/examples/kml-timezones.html @@ -8,7 +8,7 @@ docs: > tags: "KML, vector, style" resources: - https://code.jquery.com/jquery-3.5.1.min.js - - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css - - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js ---
diff --git a/examples/overlay.html b/examples/overlay.html index 15ad8a43e5..43ec49bcbc 100644 --- a/examples/overlay.html +++ b/examples/overlay.html @@ -3,12 +3,12 @@ layout: example.html title: Overlay shortdesc: Demonstrates overlays. docs: > -

The popups are created using Popovers from Bootstrap.

+

The popups are created using Popovers from Bootstrap.

tags: "overlay, popup, bootstrap, popover" resources: - https://code.jquery.com/jquery-3.5.1.min.js - - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css - - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js ---
diff --git a/examples/templates/example.html b/examples/templates/example.html index 7df72ae50e..06816c25d3 100644 --- a/examples/templates/example.html +++ b/examples/templates/example.html @@ -4,7 +4,7 @@ {{ title }} - + @@ -17,86 +17,87 @@ -
- - {{#if ./experimental}} +{{#if ./experimental}} - {{/if}} +{{/if}}
- + Edit

{{ title }}

- {{#each tags}} +{{#each tags}} {{ ./tag }}{{ ./examples.length }} - {{/each}} +{{/each}}