Skip to content
Open
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
24 changes: 19 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
source_ref:
description: "Branch or tag to deploy from (default: current ref / master)"
required: false
default: ""

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
Expand All @@ -29,15 +32,26 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Determine ref to checkout
id: ref
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ -n "${{ github.event.inputs.source_ref }}" ]; then
echo "ref=${{ github.event.inputs.source_ref }}" >> "$GITHUB_OUTPUT"
else
# default: use the ref that triggered the workflow (master on push)
echo "ref=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.ref.outputs.ref }}
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
Binary file added dist/draft/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,019 changes: 1,019 additions & 0 deletions dist/draft/index.html

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions dist/draft/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions dist/draft/slevomat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions docs/index-dev-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>API Reference | Termino.eu Hotel API</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,500,600,700&amp;subset=latin-ext&amp;display=swap" rel="stylesheet">

<!--
ReDoc uses font options from the parent element
So override default browser styles
-->
<style>
body {
margin: 0;
padding: 0;
}
.dev-banner {
background: #ffe8e8;
padding: 10px;
border-left: 4px solid #ff0000;
font-family: 'IBM Plex Sans', sans-serif;
position: sticky;
top: 0;
z-index: 9999;
}
</style>
{{{redocHead}}}
</head>
<body>

<div class="dev-banner">
<b>&#x26A0;&#xFE0F; DEVELOPMENT DRAFT</b><br/>
This version of the documentation is draft of upcoming API changes. It is provided for review and feedback purposes only and should not be used for current integrations. <br><br> The stable version of the API documentation is available <a href="https://api.termino.eu">here</a>.
</div>
{{{redocHTML}}}
</body>
</html>
Loading