Skip to content

Commit 4df1298

Browse files
committed
test community live deployment map
1 parent f13728b commit 4df1298

4 files changed

Lines changed: 103 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ git commit -m 'update page' content/page.md
5757
git push origin master
5858
```
5959

60+
### Updating live deployments
61+
62+
```bash
63+
python3 gen_live_deployments_geojson.py
64+
mv live-deployments.geojson docs/community
65+
git commit -m 'update live deployments GeoJSON' docs/community/live-deployments.geojson
66+
git push origin master
67+
```
68+
6069
## Publishing updates to the live site
6170

6271
Website updates are automatically published via GitHub Actions.

docs/community/index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ title: Community
44

55
# Community
66

7+
8+
<script src="https://embed.github.com/view/geojson/geopython/pygeoapi.io/gh-pages/community/live-deployments.geojson"> </script>
9+
10+
<div class="pygeoapi-powered">
11+
<a class="reference external image-reference" href="https://www.ga.gov.au"><img alt="Geoscience Australia" src="/img/org-logs/aus-ga.png"/></a>
12+
</div>
13+
14+
715
## Code of Conduct
816

917
In support of an inclusive and welcoming community, the pygeoapi code of conduct can always be found at [https://github.com/geopython/pygeoapi/blob/master/CODE_OF_CONDUCT.md](https://github.com/geopython/pygeoapi/blob/master/CODE_OF_CONDUCT.md).
@@ -86,3 +94,33 @@ Users, developers and others are more than welcome! There are plenty of ways to
8694
- Core development (bug fixing, feature implementation, etc.)
8795

8896
See [https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md](https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md) for more information on contributing.
97+
98+
99+
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
100+
<script type="text/javascript">
101+
function makeSimpleSlideshow(container) {
102+
container.addClass('slideshow').hide().slideDown('slow');
103+
$('a', container).each(function() {
104+
$(this).attr('title', $('img', this).attr('alt'));
105+
}).clone().appendTo(container);
106+
var links = $('a', container).wrapAll('<div class=items></div>');
107+
var items = $('div.items', container);
108+
var firstLink = $(links[0]);
109+
var lastLink = $(links[links.length / 2 - 1]);
110+
var pixels = lastLink.offset().left - firstLink.offset().left + lastLink.width();
111+
112+
function scroll() {
113+
items.animate({left: -pixels + 'px'}, pixels * 20, 'linear', function() {
114+
items.css('left', '0px');
115+
scroll();
116+
});
117+
}
118+
scroll();
119+
}
120+
121+
$(document).ready(function() {
122+
var powered = $('div.pygeoapi-powered');
123+
if (powered.length > 0)
124+
makeSimpleSlideshow(powered);
125+
});
126+
</script>

docs/css/default.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,59 @@ pre code span, .nb, .w {
7575
.headerlink {
7676
visibility: hidden;
7777
}
78+
79+
/* slideshows (from http://pocoo.org) */
80+
81+
div.pycsw-powered a {
82+
border: none;
83+
vertical-align: middle;
84+
}
85+
86+
div.pycsw-powered img {
87+
padding: 5px 10px;
88+
vertical-align: middle;
89+
}
90+
91+
div.pycsw-powered a:hover {
92+
background: white;
93+
}
94+
95+
div.slideshow {
96+
position: relative;
97+
overflow: hidden;
98+
height: 110px;
99+
width: 620px;
100+
margin: 10px -7px;
101+
}
102+
103+
div.slideshow div.items {
104+
position: absolute;
105+
width: 100000px;
106+
z-index: 500;
107+
clear: both;
108+
}
109+
110+
div.slideshow img {
111+
padding: 0 20px;
112+
margin: 0;
113+
}
114+
115+
div.slideshow:before,
116+
div.slideshow:after {
117+
position: absolute;
118+
display: block;
119+
width: 20px;
120+
height: 110px;
121+
content: " ";
122+
z-index: 1000;
123+
background: url(../img/slideshow-cutout.png) repeat-y;
124+
}
125+
126+
div.slideshow:before {
127+
left: 0;
128+
}
129+
130+
div.slideshow:after {
131+
right: 0;
132+
background-position: -20px 0;
133+
}

docs/img/org-logos/aus-ga.png

52.4 KB
Loading

0 commit comments

Comments
 (0)