Skip to content

Commit ceb45e5

Browse files
committed
add first apps
0 parents  commit ceb45e5

File tree

14 files changed

+138
-0
lines changed

14 files changed

+138
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build demo website
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v3
14+
- uses: actions/setup-go@v4
15+
with:
16+
go-version: '1.21.0'
17+
- name: Setup Hugo
18+
uses: peaceiris/actions-hugo@v2
19+
with:
20+
hugo-version: '0.120.0'
21+
extended: true
22+
- name: Build demo website
23+
run: hugo --minify

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and deploy demo website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v3
14+
- uses: actions/setup-go@v4
15+
with:
16+
go-version: '1.21.0'
17+
- name: Setup Hugo
18+
uses: peaceiris/actions-hugo@v2
19+
with:
20+
hugo-version: '0.120.0'
21+
extended: true
22+
- name: Build demo website
23+
run: hugo --minify
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_branch: gh-pages
29+
publish_dir: public

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public/
2+
.hugo_build.lock
3+
.vscode/

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
apps.insileco.io

assets/css/main.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*
2+
{
3+
margin: 0px;
4+
padding: 0px;
5+
}
6+
7+
iframe {
8+
position: fixed;
9+
background: #000;
10+
border: none;
11+
top: 0;
12+
right: 0;
13+
bottom: 0;
14+
left: 0;
15+
width: 100%;
16+
height: 100%;
17+
}

content/metanetwork.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "metanetwork"
3+
link: "https://019539bb-7ba6-361d-122f-fde3a9051ef1.share.connect.posit.cloud"
4+
# category: "Shiny App"
5+
# tags: ["Vizualization", "Network"]
6+
---

content/watershedprioritization.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: "Watershed prioritization in Canada"
3+
link: "https://insilecobot-watershed-prioritization.share.connect.posit.cloud/"
4+
---

hugo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
baseURL = 'https://apps.insileco.io'
2+
languageCode = 'en-us'
3+
title = 'inSileco Apps'

layouts/_default/baseof.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
{{ partial "head.html" . }}
4+
5+
<body>
6+
{{ partial "header.html" . }}
7+
8+
<div class="page">
9+
10+
{{ block "main" . }}
11+
{{ .Content }}
12+
{{ end }}
13+
14+
{{ partial "footer.html" . }}
15+
16+
</div>
17+
18+
</body>
19+
20+
</html>

layouts/_default/single.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{ define "main" }}
2+
3+
{{ with .Params.link }}
4+
<iframe src="{{ . }}" frameborder="0" ></iframe>
5+
{{ end }}
6+
7+
{{ end }}

0 commit comments

Comments
 (0)