Skip to content

Commit

Permalink
Merge pull request #1373 from VamshiReddy02/hub-api
Browse files Browse the repository at this point in the history
Updating the hub_api for hub CLI
  • Loading branch information
VamshiReddy02 authored Aug 30, 2024
2 parents 2b2ce33 + d3b7a51 commit ed8a8a0
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions content/api/hub/template_docusaurus.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2023-12-14T04:30:32.000Z"
spin_version = ">v1.3"
summary = "A template to use docusaurus with Spin"
url = "https://github.com/VamshiReddy02/spin-docusaurus"
template_id = "Docusaurus"
repo_url = "https://github.com/VamshiReddy02/spin-docusaurus"
keywords = "react, docusaurus, javascript, typescript"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_http_empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.7"
summary = "A template to create an HTTP application with no components"
url = "https://github.com/fermyon/spin/tree/main/templates/http-empty"
template_id = "http-empty"
repo_url = "https://github.com/fermyon/spin"
keywords = "web app, http, api, starter"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_http_go.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.2"
summary = "A template to create an HTTP handler in Go"
url = "https://github.com/fermyon/spin/tree/main/templates/http-go"
template_id = "http-go"
repo_url = "https://github.com/fermyon/spin"
keywords = "web app, http, api"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_http_js.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.8"
summary = "A template to create an HTTP handler in JavaScript"
url = "https://github.com/fermyon/spin-js-sdk/tree/main/templates/http-js"
template_id = "http-js"
repo_url = "https://github.com/fermyon/spin-js-sdk"
keywords = "web app, http, api"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_http_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v2.2"
summary = "A template to create an HTTP handler in Python"
url = "https://github.com/fermyon/spin-python-sdk/tree/main/templates/http-py"
template_id = "http-py"
repo_url = "https://github.com/fermyon/spin-python-sdk"
keywords = "web app, http, api"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_http_rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.2"
summary = "A template to create an HTTP handler in Rust"
url = "https://github.com/fermyon/spin/tree/main/templates/http-rust"
template_id = "http-rust"
repo_url = "https://github.com/fermyon/spin"
keywords = "web app, http, api"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_http_ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.8"
summary = "A template to create an HTTP handler in TypeScript"
url = "https://github.com/fermyon/spin-js-sdk/tree/main/templates/http-ts"
template_id = "http-ts"
repo_url = "https://github.com/fermyon/spin-js-sdk"
keywords = "web app, http, api"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_jekyll.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2024-06-14T04:30:32.000Z"
spin_version = ">v1.3"
summary = "A template to use Jekyll with Spin"
url = "https://github.com/VamshiReddy02/spin-jekyll"
template_id = "spin-jekyll"
repo_url = "https://github.com/VamshiReddy02/spin-jekyll"
keywords = "html, Jekyll, ruby"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_kv_explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2023-05-18T00:22:56Z"
spin_version = ">=v1.0"
summary = "A Spin component for exploring the contents of key/value stores."
url = "https://github.com/fermyon/spin-kv-explorer"
template_id = "kv-explorer"
repo_url = "https://github.com/fermyon/spin-kv-explorer"
keywords = "key-value, kv, explorer"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.8"
summary = "A template to use Next.js with Spin"
url = "https://github.com/radu-matei/spin-nextjs"
template_id = "nextjs-frontend"
repo_url = "https://github.com/radu-matei/spin-nextjs"
keywords = "react, next.js, js, javascript, typescript"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_nuxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2024-01-01T00:22:56Z"
spin_version = ">v1.3"
summary = "A template to use NuxtJS with Spin"
url = "https://github.com/VamshiReddy02/spin-nuxt"
template_id = "Nuxt"
repo_url = "https://github.com/VamshiReddy02/spin-nuxt"
keywords = "vue, nuxt, js, javascript"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_qwik_frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2023-12-06T00:00:00Z"
spin_version = ">v1.4"
summary = "A template to use Qwik with Spin"
url = "https://github.com/vanvuongngo/qwik-wasm"
template_id = "qwik-frontend"
repo_url = "https://github.com/vanvuongngo/qwik-wasm"
keywords = "qwik, html, js, javascript, typescript"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_redis_go.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.2"
summary = "A template to create a Go pub-sub handler in Rust"
url = "https://github.com/fermyon/spin/tree/main/templates/redis-go"
template_id = "redis-go"
repo_url = "https://github.com/fermyon/spin"
keywords = "web app, redis"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_redis_rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2022-10-15T00:22:56Z"
spin_version = ">v0.2"
summary = "A template to create a Redis pub-sub handler in Rust"
url = "https://github.com/fermyon/spin/tree/main/templates/redis-rust"
template_id = "redis-rust"
repo_url = "https://github.com/fermyon/spin"
keywords = "web app, redis"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_spin_fileserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2023-03-14T00:22:56Z"
spin_version = ">v0.1"
summary = "A Spin template to serve static assets."
url = "https://github.com/fermyon/spin-fileserver"
template_id = "static-fileserver"
repo_url = "https://github.com/fermyon/spin"
keywords = "static websites, fileserver"

---
Expand Down
2 changes: 2 additions & 0 deletions content/api/hub/template_sqlite_explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ last_updated = "2023-10-22T00:22:56Z"
spin_version = ">=v1.4"
summary = "A Spin component for exploring the contents and running a shell for SQLite stores."
url = "https://github.com/karthik2804/spin-sqlite-web-cli"
template_id = "spin-sqlite-explorer"
repo_url = "https://github.com/karthik2804/spin-sqlite-web-cli"
keywords = "sqlite, explorer"

---
Expand Down
3 changes: 2 additions & 1 deletion content/api/hub/template_zola_ssg.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ last_updated = "2023-11-02T00:00:00Z"
spin_version = ">v1.0"
summary = "A template to use Zola SSG with Spin"
url = "https://github.com/karthik2804/spin-zola"
repo_name = "spin-zola"
template_id = "zola-ssg"
repo_url = "https://github.com/karthik2804/spin-zola"
keywords = "rust, SSG, website, framework"
artifact_source = "ghcr.io/karthik2804/spin-zola-ssg:v0.1.0"
yaml = "https://raw.githubusercontent.com/karthik2804/spin-zola/main/zola-ssg.yaml"
Expand Down
3 changes: 2 additions & 1 deletion templates/hub_list_api.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ read_pages_glob = ["api/hub/*.md"]
"lastUpdated": "{{this.page.head.extra.last_updated}}",
"spinVersion": "{{{this.page.head.extra.spin_version}}}",
"url": "{{{this.page.head.extra.url}}}",
{{#if this.page.head.extra.repo_name}}"repo_name": "{{{this.page.head.extra.repo_name}}}",{{/if}}
{{#if this.page.head.extra.repo_url}}"repo_url": "{{{this.page.head.extra.repo_url}}}",{{/if}}
{{#if this.page.head.extra.template_id}}"template_id": "{{{this.page.head.extra.template_id}}}",{{/if}}
{{#if this.page.head.extra.artifact_source}}"artifactSource": "{{{this.page.head.extra.artifact_source}}}",{{/if}}
{{#if this.page.head.extra.image}}"image": "{{this.page.head.extra.image}}",{{/if}}
{{#if this.page.head.extra.yaml}}"yaml": "{{this.page.head.extra.yaml}}",{{/if}}
Expand Down

0 comments on commit ed8a8a0

Please sign in to comment.