Skip to content

Commit 44a5ad4

Browse files
committed
Reborn
0 parents  commit 44a5ad4

File tree

411 files changed

+36500
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

411 files changed

+36500
-0
lines changed
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
#runs-on: macos-latest
10+
#runs-on: windows-latest
11+
runs-on: ubuntu-20.04
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
persist-credentials: false
19+
- name: Install Julia
20+
uses: julia-actions/setup-julia@v1
21+
with:
22+
version: '1.8'
23+
24+
- name: Install ghostscript
25+
run: sudo apt-get install ghostscript
26+
27+
# GMT + ghostscript deps
28+
#- run: brew install ghostscript
29+
#- run: echo $(gmt --version)
30+
31+
#- name: Install Ghostscript (Windows)
32+
#run: >
33+
#choco install ghostscript wget rsync
34+
#- run: wget http://fct-gmt.ualg.pt/gmt/data/wininstallers/gmt-win64.exe
35+
#- run: cmd /k gmt-win64.exe /S
36+
37+
- run: julia -e '
38+
using Pkg;
39+
Pkg.activate(".");
40+
Pkg.instantiate();
41+
Pkg.add(PackageSpec(name="GMT", rev="master"));
42+
using NodeJS;
43+
run(`$(npm_cmd()) install highlight.js`);
44+
run(`$(npm_cmd()) install cheerio`);
45+
run(`$(npm_cmd()) install lunr`);
46+
using Franklin;
47+
serve(single=true, cleanup=false);
48+
lunr();
49+
optimize(minify=false, prerender=false);'
50+
- name: Build and Deploy
51+
uses: JamesIves/github-pages-deploy-action@releases/v4
52+
with:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
BRANCH: gh-pages
55+
FOLDER: __site

.github/workflows/deploy - Copy.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
#runs-on: macos-latest
10+
runs-on: windows-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
persist-credentials: false
18+
- name: Install Julia
19+
uses: julia-actions/setup-julia@v1
20+
with:
21+
version: '1.7'
22+
23+
# GMT + ghostscript deps
24+
#- run: brew install ghostscript gmt
25+
#- run: echo $(gmt --version)
26+
27+
- name: Install Ghostscript (Windows)
28+
run: >
29+
choco install ghostscript wget
30+
- run: wget http://fct-gmt.ualg.pt/gmt/data/wininstallers/gmt-win64.exe
31+
- run: cmd /k gmt-win64.exe /S
32+
33+
- run: julia -e '
34+
using Pkg;
35+
Pkg.activate(".");
36+
Pkg.instantiate();
37+
Pkg.add(PackageSpec(name="GMT", rev="master"));
38+
using NodeJS;
39+
run(`$(npm_cmd()) install highlight.js`);
40+
run(`$(npm_cmd()) install cheerio`);
41+
run(`$(npm_cmd()) install lunr`);
42+
using Franklin;
43+
serve(single=true, cleanup=false);
44+
lunr();
45+
optimize(minify=false, prerender=false);'
46+
- name: Build and Deploy
47+
uses: JamesIves/github-pages-deploy-action@releases/v3
48+
with:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
BRANCH: gh-pages
51+
FOLDER: __site

.github/workflows/deploy.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
#runs-on: ubuntu-20.04
11+
#runs-on: windows-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
persist-credentials: false
19+
- name: Install Julia
20+
uses: julia-actions/setup-julia@v1
21+
with:
22+
version: '~1.9.0-0'
23+
#version: 'nightly'
24+
25+
## GMT + ghostscript deps
26+
#- run: brew install ghostscript gmt
27+
#- run: echo $(gmt --version)
28+
- run: sudo apt-get install ghostscript
29+
30+
#- name: Install Ghostscript (Windows)
31+
#run: >
32+
#choco install ghostscript wget
33+
#- run: wget http://fct-gmt.ualg.pt/gmt/data/wininstallers/gmt-win64.exe
34+
#- run: cmd /k gmt-win64.exe /S
35+
36+
- run: julia -e '
37+
using Pkg;
38+
Pkg.activate(".");
39+
Pkg.instantiate();
40+
Pkg.add(PackageSpec(name="GMT", rev="GMT_jll"));
41+
using NodeJS;
42+
run(`$(npm_cmd()) install highlight.js`);
43+
run(`$(npm_cmd()) install cheerio`);
44+
run(`$(npm_cmd()) install lunr`);
45+
using Franklin;
46+
serve(single=true, cleanup=false);
47+
lunr();
48+
optimize(minify=false, prerender=false);'
49+
- name: Build and Deploy
50+
uses: JamesIves/github-pages-deploy-action@releases/v4
51+
with:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
BRANCH: gh-pages
54+
FOLDER: __site

.github/workflows/deploy__.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
jobs:
8+
build:
9+
#runs-on: ubuntu-latest # could be anything now
10+
runs-on: windows-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install Julia
17+
uses: julia-actions/setup-julia@v1
18+
with:
19+
version: '1' # Latest stable Julia release.
20+
21+
#- name: Install ghostscript
22+
#run: sudo apt-get install ghostscript
23+
24+
- name: Install Ghostscript (Windows)
25+
run: >
26+
choco install ghostscript wget
27+
#- run: wget http://fct-gmt.ualg.pt/gmt/data/wininstallers/gmt-win64.exe
28+
#- run: cmd /k gmt-win64.exe /S
29+
30+
- run: julia -e '
31+
using Pkg;
32+
Pkg.activate(\".\");
33+
Pkg.instantiate();
34+
Pkg.add(PackageSpec(name=\"GMT\", rev=\"master\"));
35+
using Franklin;
36+
include(\"makedocs.jl\")'
37+
#optimize(minify=false,prerender=false)'
38+
- name: Upload artifact
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: franklin-site
42+
path: __site
43+
44+
deploy:
45+
concurrency: ci-${{ github.ref }}
46+
needs: [build]
47+
runs-on: ubuntu-latest # or mac
48+
permissions:
49+
contents: write
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v3
53+
- name: Git setup
54+
run: |
55+
git config user.name "GABot"
56+
git config user.email "<>"
57+
- name: Checkout preview
58+
run: |
59+
git checkout -B gh-lixo
60+
- name: Download artifact
61+
uses: actions/download-artifact@v3
62+
with:
63+
name: franklin-site
64+
path: __tmp__site
65+
- name: Copy content
66+
run: |
67+
cp -a __tmp__site/. .
68+
- name: Remove tmp dir
69+
run: |
70+
rm -rf __tmp__site
71+
- name: Push
72+
run: |
73+
git add -A && git commit -am "update" && git push -u origin gh-lixo
+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name: Build and Deploy
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
10+
defaults:
11+
run:
12+
# default to use bash shell
13+
shell: bash
14+
15+
jobs:
16+
test:
17+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
18+
runs-on: ${{ matrix.os }}
19+
20+
env:
21+
COASTLINEDIR: ${{ github.workspace }}/coastline
22+
#JULIA_NUM_THREADS: 2
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
version:
28+
#- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
29+
- '1.7' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
30+
#- 'nightly'
31+
os:
32+
- ubuntu-latest
33+
#- ubuntu-18.04
34+
#- macos-latest
35+
arch:
36+
- x64
37+
include:
38+
# Linux
39+
- name: Linux - Compile only
40+
#os: ubuntu-18.04
41+
os: ubuntu-latest
42+
run_in_pr : true
43+
#- name: macOS
44+
#os: macos-latest
45+
#run_in_pr : true
46+
47+
steps:
48+
- name: Cancel Previous Runs
49+
uses: styfle/[email protected]
50+
with:
51+
access_token: ${{ github.token }}
52+
53+
- name: Checkout
54+
uses: actions/checkout@v2
55+
if: matrix.run_in_pr == true || github.event_name != 'pull_request'
56+
57+
- name: Install GMT dependencies
58+
run: |
59+
# $RUNNER_OS can be Linux, macOS or Windows
60+
# The following command converts $RUNNER_OS to lowercase
61+
os=$(echo "$RUNNER_OS" | tr '[:upper:]' '[:lower:]')
62+
bash ci/install-dependencies-${os}.sh
63+
if: matrix.run_in_pr == true || github.event_name != 'pull_request'
64+
65+
- name: Cache GSHHG and DCW data
66+
uses: actions/cache@v2
67+
id: cache-coastline
68+
with:
69+
path: ${{ env.COASTLINEDIR }}
70+
key: coastline-${{ hashFiles('ci/download-coastlines.sh') }}
71+
if: matrix.run_in_pr == true || github.event_name != 'pull_request'
72+
73+
- name: Install GMT
74+
run: |
75+
bash ci/build-gmt.sh
76+
# Add GMT PATH to bin
77+
GMT_INSTALL_DIR=${GMT_INSTALL_DIR:-${HOME}/gmt-install-dir}
78+
echo "${GMT_INSTALL_DIR}/bin" >> $GITHUB_PATH
79+
if: matrix.run_in_pr == true || github.event_name != 'pull_request'
80+
81+
- name: Check a few simple commands
82+
run: |
83+
set -x -e
84+
gmt --version
85+
gmt --help
86+
gmt begin testmap; gmt basemap -R0/9/0/5 -Jx1 -Bf1a2 -Bx+lDistance -By+l"No of samples" -BWeS; gmt end
87+
if: matrix.run_in_pr == true || github.event_name != 'pull_request'
88+
89+
- uses: actions/checkout@v2
90+
- uses: julia-actions/setup-julia@v1
91+
with:
92+
version: ${{ matrix.version }}
93+
arch: ${{ matrix.arch }}
94+
- uses: actions/cache@v1
95+
env:
96+
cache-name: cache-artifacts
97+
with:
98+
path: ~/.julia/artifacts
99+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
100+
restore-keys: |
101+
${{ runner.os }}-test-${{ env.cache-name }}-
102+
${{ runner.os }}-test-
103+
${{ runner.os }}-
104+
- uses: julia-actions/julia-buildpkg@v1
105+
106+
- run: julia -e '
107+
using Pkg;
108+
Pkg.activate(".");
109+
Pkg.instantiate();
110+
Pkg.add(PackageSpec(name="GMT", rev="master"));
111+
using NodeJS;
112+
run(`$(npm_cmd()) install highlight.js`);
113+
run(`$(npm_cmd()) install cheerio`);
114+
run(`$(npm_cmd()) install lunr`);
115+
using Franklin;
116+
serve(single=true, cleanup=false);
117+
lunr();
118+
optimize(minify=false, prerender=false);'
119+
- name: Build and Deploy
120+
uses: JamesIves/github-pages-deploy-action@releases/v3
121+
with:
122+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123+
BRANCH: gh-pages
124+
FOLDER: __site

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__site/
2+
docs/
3+
.DS_Store
4+
node_modules/
5+
package-lock.json
6+
Manifest.toml

404.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@def title = "404"
2+
@def hidden = true
3+
4+
~~~
5+
<div style="margin-top: 40px; font-size: 40px; text-align: center;">
6+
7+
<br>
8+
9+
<div style="font-weight: bold;">
10+
404
11+
</div>
12+
13+
<br>
14+
<br>
15+
16+
The requested page was not found
17+
18+
<br>
19+
<br>
20+
<br>
21+
<br>
22+
23+
<div style="margin-bottom: 300px; font-size: 24px">
24+
<a href="/">Click here</a> to go back to the homepage.
25+
</div>
26+
27+
</div>
28+
~~~

0 commit comments

Comments
 (0)