Skip to content
Closed
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
32 changes: 32 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,43 @@ concurrency:
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Compute Docker tag
id: docker
run: echo "tag=$(./scripts/docker_tag.sh)" >> $GITHUB_OUTPUT

- name: Build image (from cache)
uses: docker/bake-action@v5
env:
DOCKER_TAG: ${{ steps.docker.outputs.tag }}
with:
files: bake.hcl
targets: build
load: true
set: |
*.cache-from=type=gha,scope=build-6.2.30
*.cache-from=type=gha,scope=build-7.1.61

- name: Generate docs
run: ./build.sh --docs
env:
DOCKER_TAG: ${{ steps.docker.outputs.tag }}

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
39 changes: 39 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,48 @@ p {

/* Headers */

.header-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.header-icons {
display: flex;
gap: 1rem;
align-items: center;
}

.header-icons a {
display: flex;
align-items: center;
transition: opacity 0.2s;
}

.header-icons a:hover {
opacity: 0.7;
}

.icon {
width: 1.5rem;
height: 1.5rem;
fill: var(--color5);
}

.icon.fdb {
fill: none;
width: auto;
}

.icon.janderland {
fill: none;
}

h1 {
font-size: 2.5rem;
line-height: 1.25;
margin: 0;
}

h2 {
Expand Down
127 changes: 127 additions & 0 deletions docs/img/fdb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/img/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions docs/img/jander.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion docs/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@
<script src="js/python.js"></script>
</head>
<body>
<h1>$title$</h1>
<div class="header-container">
<h1>$title$</h1>
<div class="header-icons">
<a href="https://github.com/janderland/fql" target="_blank" title="View on GitHub">
<img class="icon" src="img/github.svg" alt="GitHub" />
</a>
<a href="https://www.foundationdb.org/" target="_blank" title="FoundationDB">
<img class="icon fdb" src="img/fdb.svg" alt="FoundationDB" />
</a>
<a href="https://jander.land/" target="_blank" title="jander.land">
<img class="icon janderland" src="img/jander.svg" alt="jander.land" />
</a>
</div>
</div>
$for(include-before)$
$include-before$
$endfor$
Expand Down