Skip to content

Commit cf72163

Browse files
authored
Merge pull request #503 from devbasex/feat/landing-page
Feat: dl.basex.jp を devbase の紹介ページにする
2 parents 348738d + 540ddab commit cf72163

4 files changed

Lines changed: 332 additions & 19 deletions

File tree

‎.github/workflows/pages.yml‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: Deploy installer to Pages
22

33
# install.sh を GitHub Pages (dl.basex.jp) で配信する。
44
# 配信仕様: docs/developer/installer-hosting.md
5-
# リポジトリ全体は晒さず、install.sh のみを成果物として公開する。
5+
# リポジトリ全体は晒さず、install.sh と紹介ページ(site/)だけを成果物として公開する。
66

77
on:
88
push:
99
branches: [main]
1010
paths:
1111
- install.sh
12+
- site/**
1213
- .github/workflows/pages.yml
1314
workflow_dispatch:
1415

@@ -34,23 +35,12 @@ jobs:
3435
url: ${{ steps.deployment.outputs.page_url }}
3536
steps:
3637
- uses: actions/checkout@v4
37-
- name: Assemble site (install.sh only)
38+
- name: Assemble site
3839
run: |
3940
mkdir -p _site
41+
cp -R site/. _site/ # 紹介ページ (https://dl.basex.jp/)
4042
cp install.sh _site/i # 配信パス (https://dl.basex.jp/i)
4143
echo 'dl.basex.jp' > _site/CNAME
42-
cat > _site/index.html <<'HTML'
43-
<!doctype html>
44-
<html lang="ja">
45-
<head><meta charset="utf-8"><title>devbase installer</title></head>
46-
<body style="font-family:system-ui;max-width:42rem;margin:3rem auto;padding:0 1rem">
47-
<h1>devbase installer</h1>
48-
<p>ワンライナーインストール:</p>
49-
<pre><code>curl -fsSL https://dl.basex.jp/i | bash</code></pre>
50-
<p>ソース: <a href="https://github.com/devbasex/devbase">github.com/devbasex/devbase</a></p>
51-
</body>
52-
</html>
53-
HTML
5444
- uses: actions/configure-pages@v5
5545
- uses: actions/upload-pages-artifact@v3
5646
with:

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
Serena の MCP は今までどおり、初回の起動で `serena-agent` と自分の言語サーバを取得します(ネットワークが要ります)。
2222

2323
### Changed
24+
- **`https://dl.basex.jp/` を devbase の紹介ページにしました。** これまでのワンライナーだけの案内に替え、できること・
25+
はじめ方・コマンドの体系・はじめから入っている道具・ドキュメントへの入口を 1 枚にまとめました(コピーのボタン付き)。
26+
ページの正本は `site/index.html` です。ワンライナーの URL(`https://dl.basex.jp/i`)と配信の中身は変わりません。
2427
- **シェル補完(bash・zsh)が、`--context NAME` を受け付けるすべてのサブコマンドで `--context` を出すようにしました(#435)。**
2528
これまでは `open` と `project post-start` だけでした。`up`・`down`・`ps`・`login`・`scale`・`build`・`rebuild`、
2629
`project` / `container` の配下(`logs`・`profile up|down|list` を含む)、`env exec`・`env token` で、`-` を打って補完すると

‎docs/developer/installer-hosting.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,27 @@ flowchart LR
7777
成果物(artifact)として公開する。`install.sh` はリポジトリ root の 1 ファイルが
7878
正本(single source of truth)であり、Pages 用に複製しない。
7979
- 成果物に `CNAME`(内容 `dl.basex.jp`)を含め、custom domain を固定する。
80-
- ルート(`/`)には簡単な案内 HTML を置く(任意)。
80+
- ルート(`/`)には devbase の紹介ページを置く。正本は `site/index.html`(外部の読み込みの無い 1 ファイル)で、
81+
ワークフローが `site/` をそのまま `_site/` へ写す。
8182
- 配信パスは `/i` のみ(ワークフローで `install.sh` を `_site/i` へコピー)。
8283

8384
### 5.2 配信ワークフロー(`.github/workflows/pages.yml`)
8485

8586
```mermaid
8687
flowchart TD
87-
A["push to main<br/>(install.sh 変更時)"] --> B["checkout"]
88-
B --> C["_site/ 組み立て<br/>install.sh / CNAME / index.html"]
88+
A["push to main<br/>(install.sh・site/ 変更時)"] --> B["checkout"]
89+
B --> C["_site/ 組み立て<br/>site/ / install.sh / CNAME"]
8990
C --> D["upload-pages-artifact"]
9091
D --> E["deploy-pages"]
9192
E --> F["https://dl.basex.jp/i 更新"]
9293
```
9394

9495
要点:
9596

96-
- トリガ: `push`(`paths: [install.sh, .github/workflows/pages.yml]`)+ `workflow_dispatch`。
97+
- トリガ: `push`(`paths: [install.sh, site/**, .github/workflows/pages.yml]`)+ `workflow_dispatch`。
9798
- 権限: `pages: write` / `id-token: write` / `contents: read`。
9899
- 並行制御: `concurrency: { group: pages, cancel-in-progress: true }`。
99-
- `_site/` に `install.sh` をコピーし、`CNAME` に `dl.basex.jp` を書き出す。
100+
- `_site/` に `site/` と `install.sh`(`i` として)をコピーし、`CNAME` に `dl.basex.jp` を書き出す。
100101

101102
### 5.3 HTTPS
102103

0 commit comments

Comments
 (0)