Skip to content

Commit

Permalink
wip: spin-based deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice committed Mar 5, 2024
1 parent 673cc27 commit 656db8e
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
resources/
node_modules/
package-lock.json
.hugo_build.lock
.hugo_build.lock
.spin/
2 changes: 1 addition & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SpinKube
---

{{< blocks/cover title="Welcome to SpinKube" image_anchor="top" height="full" >}}
<a class="btn btn-lg btn-primary me-3 mb-4" href="/docs/">
<a class="btn btn-lg btn-primary me-3 mb-4" href="/docs.html">
SpinKube Documentation <i class="fas fa-arrow-alt-circle-right ms-2"></i>
</a>
<p class="lead mt-5">A new open source project that streamlines the experience of developing, deploying, and operating Wasm workloads on Kubernetes.</p>
Expand Down
2 changes: 1 addition & 1 deletion content/en/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SpinKube
---

{{< blocks/cover title="Welcome to SpinKube" image_anchor="top" height="full" >}}
<a class="btn btn-lg btn-primary me-3 mb-4" href="/docs/">
<a class="btn btn-lg btn-primary me-3 mb-4" href="/docs.html">
SpinKube Documentation <i class="fas fa-arrow-alt-circle-right ms-2"></i>
</a>
<p class="lead mt-5">A new open source project that streamlines the experience of developing, deploying, and operating Wasm workloads on Kubernetes.</p>
Expand Down
5 changes: 5 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
baseURL = "/"
title = "SpinKube"

# Attach '.html' to links
# Currently we utilize fermyon/spin-fileserver to serve the content,
# which doesn't appear to support implicit index.html resolution
uglyURLs = true

# Language settings
contentDir = "content/en"
defaultContentLanguage = "en"
Expand Down
Binary file added modules/spin_static_fs.wasm
Binary file not shown.
22 changes: 22 additions & 0 deletions spin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
spin_manifest_version = 2

[application]
name = "spinkube-documentation"
version = "0.1.0"
description = "The SpinKube documentation website running on Spin."
authors = ["SpinKube Maintainers"]

[application.trigger.http]
base = "/"

[[trigger.http]]
id = "trigger-fileserver"
component = "fileserver"
route = "/..."

[component.fileserver]
source = "modules/spin_static_fs.wasm"
files = [{ source = "public/", destination = "/" }]

[component.fileserver.build]
command = "echo TODO"

0 comments on commit 656db8e

Please sign in to comment.