Skip to content

Commit eec7374

Browse files
authored
Merge pull request #5 from boettiger-lab/docs/rename-example-to-example-k8s
docs: rename example/ → example-k8s/ and note live demo status
2 parents 2f48c3c + 320d912 commit eec7374

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ A reusable JavaScript library for interactive map applications with LLM-powered
1313
3. Edit `index.html` — set page title, pin CDN version
1414
4. Deploy (see options below)
1515

16-
| Template | Deployment | API key handling |
17-
|---|---|---|
18-
| [`example/`](example/) | Kubernetes / managed host | Injected server-side via `config.json` |
19-
| [`example-ghpages/`](example-ghpages/) | GitHub Pages / any static host | Entered by the user in-browser |
16+
| Template | Deployment | API key handling | Live demo |
17+
|---|---|---|---|
18+
| [`example-k8s/`](example-k8s/) | Kubernetes / managed host | Injected server-side via `config.json` | not currently deployed |
19+
| [`example-ghpages/`](example-ghpages/) | GitHub Pages / any static host | Entered by the user in-browser | [live](https://boettiger-lab.github.io/geo-agent/) |
2020

21-
See the [example README](example/README.md) for full details.
21+
See the [example-k8s README](example-k8s/README.md) or [example-ghpages README](example-ghpages/README.md) for full details.
2222

2323
## Using the CDN
2424

@@ -131,7 +131,7 @@ Client apps provide `layers-input.json`. All fields except `collections` are opt
131131

132132
There are two ways to supply model credentials:
133133

134-
**Server-provided** (Kubernetes / managed deployments): omit the `llm` section from `layers-input.json` and provide a `config.json` on the same server with `llm_models` + API keys. The `k8s/` manifests in `example/` inject secrets this way at deploy time.
134+
**Server-provided** (Kubernetes / managed deployments): omit the `llm` section from `layers-input.json` and provide a `config.json` on the same server with `llm_models` + API keys. The `k8s/` manifests in `example-k8s/` inject secrets this way at deploy time.
135135

136136
**User-provided** (static sites — GitHub Pages, Netlify, etc.): set `"user_provided": true` in the `llm` section. A ⚙ button appears in the chat footer; visitors enter their own API key (stored in `localStorage`, never sent to the hosting server). The `default_endpoint` is pre-filled — [OpenRouter](https://openrouter.ai) is a good default giving access to many models via a single key.
137137

@@ -154,11 +154,11 @@ The `app/` directory includes its own `index.html`, `layers-input.json`, and `sy
154154

155155
## Deployment
156156

157-
| Option | Template | How secrets are handled |
158-
|---|---|---|
159-
| **GitHub Pages** (or any static host) | [`example-ghpages/`](example-ghpages/) | User enters their own API key in-browser |
160-
| **Hugging Face Spaces** | Start from either example | Mount a `config.json` as a Space secret-file |
161-
| **Kubernetes** | [`example/`](example/) with [`k8s/`](example/k8s/) | Secrets injected into `config.json` via ConfigMap + init container |
157+
| Option | Template | How secrets are handled | Live demo |
158+
|---|---|---|---|
159+
| **GitHub Pages** (or any static host) | [`example-ghpages/`](example-ghpages/) | User enters their own API key in-browser | [live](https://boettiger-lab.github.io/geo-agent/) |
160+
| **Hugging Face Spaces** | Start from either example | Mount a `config.json` as a Space secret-file ||
161+
| **Kubernetes** | [`example-k8s/`](example-k8s/) with [`k8s/`](example-k8s/k8s/) | Secrets injected into `config.json` via ConfigMap + init container | not currently deployed |
162162

163-
The `k8s/` directory in this repo deploys the core library's own demo instance on the [NRP](https://nrp-nautilus.io) cluster. See [`example/k8s/`](example/k8s/) for the client app deployment template, and [`example/README.md`](example/README.md) for a full walkthrough of all three options.
163+
See [`example-k8s/k8s/`](example-k8s/k8s/) for the client app Kubernetes deployment template, and [`example-k8s/README.md`](example-k8s/README.md) for a full walkthrough of all three options.
164164

example-ghpages/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This example shows how to deploy a geo-agent app as a **static site on GitHub Pa
66

77
## How it works
88

9-
The key difference from the [Kubernetes example](../example/) is the `llm` section in `layers-input.json`:
9+
The key difference from the [Kubernetes example](../example-k8s/) is the `llm` section in `layers-input.json`:
1010

1111
```json
1212
"llm": {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)