Skip to content

Commit 27ecc80

Browse files
authored
switch to github pages (#38)
1 parent b550690 commit 27ecc80

14 files changed

Lines changed: 14567 additions & 5692 deletions

File tree

.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 28 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 61 deletions
This file was deleted.

_config.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,8 @@ title: OpenIndexMaps
1717
# email: your-email@domain.com
1818
description: > # this means to ignore newlines until "baseurl:"
1919
baseurl: "" # the subpath of your site, e.g. /blog
20-
url: "https://openindexmaps.com" # the base hostname & protocol for your site, e.g. http://example.com
20+
url: "https://openindexmaps.org"
2121

2222
# Build settings
2323
markdown: kramdown
24-
gems:
25-
- jekyll-feed
26-
exclude:
27-
- Gemfile
28-
- Gemfile.lock
29-
sass:
30-
load_paths:
31-
- _sass
32-
- node_modules
33-
keep_files:
34-
- assets/javascripts/bundle.js
24+
theme: minima

_layouts/default.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
</div>
1111
</main>
1212
</div>
13-
<script type="text/javascript" src="{{ '/assets/javascripts/bundle.js' | relative_url }}" charset="utf-8"></script>
13+
<script type="text/javascript" src="assets/javascripts/shp.js" charset="utf-8"></script>
14+
<script type="text/javascript" src="assets/javascripts/index.js" charset="utf-8"></script>
15+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
1416
</body>
1517

1618
</html>

_sass/_variables.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# Needed for Jekyll
33
---
44

5-
@import 'variables';
6-
@import '../node_modules/bootstrap/scss/bootstrap.scss';
5+
@import "{{ site.theme }}";
76

87
h2, h3 {
98
margin-top: 1em;

assets/javascripts/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import shp from 'shpjs';
2-
import prettyJSONStringify from 'pretty-json-stringify';
3-
41
const fileInput = document.getElementById('shapefile-file');
52

63
fileInput.addEventListener('change', (e) => {
74
const reader = new FileReader();
85
reader.onload = (event) => {
96
shp(event.target.result).then((data) => {
7+
console.log(data)
108
const convertedData = JSON.parse(JSON.stringify(data));
119
convertedData.features = convertedData.features.map((f, i) => {
1210
// Caution: not a deep copy
@@ -21,7 +19,7 @@ fileInput.addEventListener('change', (e) => {
2119
});
2220

2321
const output = document.getElementById('converted');
24-
const formatted = `<pre><code>${prettyJSONStringify(convertedData)}</code></pre>`;
22+
const formatted = `<pre><code>${JSON.stringify(convertedData, null, 2)}</code></pre>`;
2523
output.innerHTML = formatted;
2624
});
2725
};

0 commit comments

Comments
 (0)