Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting implement website #1

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This is a basic workflow to help you get started with Actions

name: Build minimal website

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Ramo dell'aria
uses: matteopic/[email protected]
with:
thconfig: 'GrottaDelFiume.thconfig'

- name: Ramo dell'aria
uses: matteopic/[email protected]
with:
thconfig: 'RamoDellAria.thconfig'

- name: Retrieve CaveView.js
uses: robinraju/[email protected]
with:
repository: "aardgoose/CaveView.js"
latest: true
fileName: "CaveView.zip"
extract: true
out-file-path: 'out'

- name: Cleanup
run: |
rm CaveView.zip .gitkeep

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload 'out' directory
path: 'out'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
59 changes: 59 additions & 0 deletions out/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr">
<head>
<title>Grotta del Fiume</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" href="CaveView/css/caveview.css" rel="stylesheet"/>
<meta name="Description" content="Grotta del Fiume survey data">
</head>
<body onload="onload();" >
<script type="text/javascript" src="CaveView/js/CaveView2.js" ></script>

<script type="text/javascript" >

function onload () {

const viewer = new CV2.CaveViewer( "scene", {
terrainDirectory: "",
surveyDirectory: "",
home: "/CaveView/",
} );

const ui = new CV2.CaveViewUI( viewer );

ui.loadCave( 'Grotta%20del%20Fiume.lox' );

}

</script>
<div style="padding: 20px">
<div id="scene"></div>
</div>

<h3>Globale</h3>
<p>
<a href="./Grotta del Fiume - pianta.pdf">Pianta</a><br/>
<a href="./Grotta del Fiume - pianta 1_500.pdf">Pianta 1:500</a><br/>
<a href="./Grotta del Fiume - pianta 1_10000.pdf">Pianta 1:10000</a><br/>
<a href="./Grotta del Fiume - atlante - pianta.pdf">Pianta - Atlante</a><br/>
<a href="./Grotta del Fiume - sezione.pdf">Sezione</a><br/>
</p>

<h3>Ramo dell'aria</h3>
<p>
<a href="./Grotta del Fiume - Ramo dell'Aria - pianta.pdf">Ramo dell'Aria - pianta</a><br/>
<a href="./Grotta del Fiume - Ramo dell'Aria - sezione.pdf">Ramo dell'Aria - sezione</a><br/>
</p>

<h3>3D</h3>
<p>
<a href="./Grotta del Fiume.lox">Therion LOX file</a><br/>
<a href="./Grotta del Fiume.3d">Aven Survex 3D file</a>
</p>

<div style="clear: both" id="scratch">.</div>
</body>
</html>


Loading