docs(presentations): preserve exhibition slides and A4 handouts
Keep editable diagrams, handout builder and historical PDF outputs with a source/output index. Existing PDFs are preserved without regeneration.
No files matched your search
@@ -0,0 +1,44 @@
|
||||
# Pages / pages-cli 紹介資料
|
||||
|
||||
2026年11月の展示に向けて作った資料を、編集元・図版・配布成果物と一緒に保存する。
|
||||
現行バージョンの対応表ではない。機能の実装状況は [残件台帳](../design/ja/implementation-backlog.md)、
|
||||
DBの対応範囲は [DB移植計画](../design/ja/database-portability.md) を参照する。
|
||||
|
||||
## Pagesのスライド機能用
|
||||
|
||||
| 編集元 | 用途 |
|
||||
| --- | --- |
|
||||
| `pages-architecture-ja.md` | 技術説明の詳細な構成案 |
|
||||
| `pages-architecture-5min-ja.md` | 10枚・約5分の紹介。30秒送りを想定 |
|
||||
| `../../static/diagrams/pages-architecture/*.svg` | 5分版で参照する編集可能な構成図 |
|
||||
|
||||
Markdownの `---` をスライド境界として使用する。Pagesへ通常の権限確認・保存を行い、
|
||||
スライドビューアで開く。Gitへの保存だけでは公開Wikiの作成・更新にはならない。
|
||||
図版はアプリと一緒に配信する必要がある。
|
||||
[再生・ループの操作](../design/ja/slideshow.md)も参照。
|
||||
|
||||
## A4配布資料
|
||||
|
||||
`../../output/pdf/` のPDFとSVGは、展示時の配布成果物として意図的にGitへ保存する。
|
||||
レンダリング用PNGや一時ファイルは含めない。ファイル名は既存の配布リンクを維持するため変更しない。
|
||||
|
||||
- `pages-pages-cli-four-sheets-a4-ja.pdf`:技術・思想・画面設計・ディスカッションの4枚組。
|
||||
- `pages-pages-cli-discussion-a4-ja.pdf`:ディスカッション単独版。
|
||||
- `architecture`、`design`、`interface` の単独PDF、および `technical-and-design`、`three-sheets`:
|
||||
段階的に作成した既存配布版。過去の成果物として保持し、4枚組から機械的に切り出したものとは扱わない。
|
||||
- 同ディレクトリのSVG:A4資料の構成図。スライド用SVGとは別の図版。
|
||||
|
||||
`build-pages-onepager.py` が現在生成するPDFは **4枚組とディスカッションの2ファイル**。
|
||||
加えてA4用SVGを出力する。その他の既存PDFは上書き・再生成しない。
|
||||
|
||||
再生成にはPython、ReportLab、DejaVu Sans/Sans MonoとDroidSansFallbackFullのフォントが必要。
|
||||
フォントパスはスクリプト冒頭で指定する。日付・機能記述は展示時点のままなので、
|
||||
現在版へ更新する場合は本文を再確認してから実行する。
|
||||
|
||||
```sh
|
||||
python3 docs/presentations/build-pages-onepager.py
|
||||
# 一時ディレクトリで4ページすべてを描画し、重なり・文字欠けを確認する
|
||||
pdftoppm -png output/pdf/pages-pages-cli-four-sheets-a4-ja.pdf /tmp/pages-handout
|
||||
```
|
||||
|
||||
2026-11-30の整理では既存4枚組を描画確認し、PDF自体は再生成していない。
|
||||
@@ -0,0 +1,533 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build the A4 technical handout and its editable vector diagrams.
|
||||
|
||||
Requires reportlab. Source: repository design/operations docs and sibling
|
||||
pages-cli README + docs/neomutt.md, reviewed 2026-11-15.
|
||||
All coordinates are points, measured from the top left. Diagram primitives
|
||||
are emitted to both SVG and PDF so the standalone figures match the handout.
|
||||
"""
|
||||
from pathlib import Path
|
||||
from html import escape
|
||||
import math
|
||||
|
||||
from reportlab.pdfgen import canvas
|
||||
from reportlab.pdfbase import pdfmetrics
|
||||
from reportlab.pdfbase.ttfonts import TTFont
|
||||
from reportlab.lib.colors import HexColor
|
||||
from reportlab.lib.pagesizes import A4
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
OUT = ROOT / "output/pdf"
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
INK, MUTED, LINE = "#172433", "#526171", "#b6c2cd"
|
||||
ACCENT, PALE, WHITE = "#244d70", "#f1f5f8", "#ffffff"
|
||||
FONT_DIR = Path("/usr/share/fonts/truetype")
|
||||
pdfmetrics.registerFont(TTFont("Latin", str(FONT_DIR / "dejavu/DejaVuSans.ttf")))
|
||||
pdfmetrics.registerFont(TTFont("LatinBold", str(FONT_DIR / "dejavu/DejaVuSans-Bold.ttf")))
|
||||
pdfmetrics.registerFont(TTFont("Mono", str(FONT_DIR / "dejavu/DejaVuSansMono.ttf")))
|
||||
pdfmetrics.registerFont(TTFont("JP", str(FONT_DIR / "droid/DroidSansFallbackFull.ttf")))
|
||||
|
||||
|
||||
def runs(s, bold=False, mono=False):
|
||||
current, buf = None, ""
|
||||
for ch in s:
|
||||
font = "JP" if ord(ch) > 0x2FFF else ("Mono" if mono else "LatinBold" if bold else "Latin")
|
||||
if current is not None and font != current:
|
||||
yield current, buf
|
||||
buf = ""
|
||||
current, buf = font, buf + ch
|
||||
if buf:
|
||||
yield current, buf
|
||||
|
||||
|
||||
def width(s, size, bold=False, mono=False):
|
||||
return sum(pdfmetrics.stringWidth(t, f, size) for f, t in runs(s, bold, mono))
|
||||
|
||||
|
||||
class Drawing:
|
||||
def __init__(self, w, h, title):
|
||||
self.w, self.h, self.title, self.items = w, h, title, []
|
||||
|
||||
def box(self, x, y, w, h, fill=WHITE, stroke=LINE, radius=2):
|
||||
self.items.append(("box", x, y, w, h, fill, stroke, radius))
|
||||
|
||||
def line(self, x1, y1, x2, y2, color=LINE, dashed=False):
|
||||
self.items.append(("line", x1, y1, x2, y2, color, dashed))
|
||||
|
||||
def arrow(self, x1, y1, x2, y2, color=MUTED, dashed=False):
|
||||
self.line(x1, y1, x2, y2, color, dashed)
|
||||
a = math.atan2(y2-y1, x2-x1)
|
||||
for delta in (-0.45, 0.45):
|
||||
self.line(x2, y2, x2-4*math.cos(a+delta), y2-4*math.sin(a+delta), color)
|
||||
|
||||
def text(self, x, y, s, size=9, bold=False, color=INK, align="left", mono=False):
|
||||
self.items.append(("text", x, y, s, size, bold, color, align, mono))
|
||||
|
||||
def pdf(self, c, x=0, y=0):
|
||||
ph = A4[1]
|
||||
for p in self.items:
|
||||
if p[0] == "box":
|
||||
_, bx, by, w, h, fill, stroke, r = p
|
||||
c.setFillColor(HexColor(fill)); c.setStrokeColor(HexColor(stroke)); c.setLineWidth(.6)
|
||||
c.roundRect(x+bx, ph-y-by-h, w, h, r, fill=1, stroke=1)
|
||||
elif p[0] == "line":
|
||||
_, x1,y1,x2,y2,col,dash=p
|
||||
c.setStrokeColor(HexColor(col)); c.setLineWidth(.65); c.setDash([2,2] if dash else [])
|
||||
c.line(x+x1,ph-y-y1,x+x2,ph-y-y2); c.setDash([])
|
||||
else:
|
||||
_, tx,ty,s,size,bold,col,align,mono=p
|
||||
w=width(s,size,bold,mono)
|
||||
tx -= w/2 if align=="center" else w if align=="right" else 0
|
||||
c.setFillColor(HexColor(col))
|
||||
for f,t in runs(s,bold,mono):
|
||||
c.setFont(f,size); c.drawString(x+tx,ph-y-ty,t)
|
||||
tx += pdfmetrics.stringWidth(t,f,size)
|
||||
|
||||
def svg(self, path):
|
||||
a=[f'<svg xmlns="http://www.w3.org/2000/svg" width="{self.w}pt" height="{self.h}pt" viewBox="0 0 {self.w} {self.h}" role="img" aria-labelledby="title">',
|
||||
f'<title id="title">{escape(self.title)}</title>', '<rect width="100%" height="100%" fill="white"/>']
|
||||
for p in self.items:
|
||||
if p[0]=="box":
|
||||
_,x,y,w,h,fill,stroke,r=p
|
||||
a.append(f'<rect x="{x}" y="{y}" width="{w}" height="{h}" rx="{r}" fill="{fill}" stroke="{stroke}" stroke-width="0.6"/>')
|
||||
elif p[0]=="line":
|
||||
_,x1,y1,x2,y2,col,dash=p
|
||||
d=' stroke-dasharray="2 2"' if dash else ''
|
||||
a.append(f'<line x1="{x1}" y1="{y1}" x2="{x2}" y2="{y2}" stroke="{col}" stroke-width="0.65"{d}/>')
|
||||
else:
|
||||
_,x,y,s,size,bold,col,align,mono=p
|
||||
anchor={"left":"start","center":"middle","right":"end"}[align]
|
||||
family="DejaVu Sans Mono,monospace" if mono else "DejaVu Sans,Noto Sans CJK JP,sans-serif"
|
||||
a.append(f'<text x="{x}" y="{y}" font-family="{family}" font-size="{size}" font-weight="{700 if bold else 400}" text-anchor="{anchor}" fill="{col}">{escape(s)}</text>')
|
||||
path.write_text('\n'.join(a)+"\n</svg>\n",encoding="utf-8")
|
||||
|
||||
|
||||
def architecture():
|
||||
d=Drawing(535,179,"Pages and pages-cli: application, extensions, APIs and storage")
|
||||
for x,w,title,sub in [(0,163,"Web / PWA","Wiki · City · Organizer"),(186,163,"pages-cli / pages","Shell · $EDITOR · NeoMutt"),(372,163,"DAV clients","CalDAV · CardDAV")]:
|
||||
d.box(x,0,w,32,PALE); d.text(x+8,13,title,9,True); d.text(x+8,25,sub,7.4,color=MUTED)
|
||||
d.arrow(x+w/2,32,x+w/2,55)
|
||||
d.text(91,46,"HTTPS",6.8,color=MUTED)
|
||||
d.text(278,46,"HTTPS / Bearer",6.8,color=MUTED)
|
||||
d.text(465,46,"HTTPS / DAV",6.8,color=MUTED)
|
||||
d.box(0,55,535,70,WHITE,ACCENT)
|
||||
d.text(10,70,"PagesWiki / Go application",10,True,ACCENT)
|
||||
d.text(525,70,"Host-based routing / HTTP API",7.6,color=MUTED,align="right")
|
||||
d.line(10,77,525,77)
|
||||
components=[("Wiki / files","Editor · viewers · City Map"),("System extensions","Tasks · calendar · contacts · RSS"),("Integration / jobs","DAV · plugins · background jobs")]
|
||||
for i,(name,role) in enumerate(components):
|
||||
x=10+i*173; y=84
|
||||
d.box(x,y,169,32,PALE,LINE)
|
||||
d.text(x+7,y+13,name,8.7,True); d.text(x+7,y+25,role,7.1,color=MUTED)
|
||||
d.arrow(130,125,130,145); d.arrow(403,125,403,145)
|
||||
d.box(0,145,260,34,PALE); d.box(275,145,260,34,PALE)
|
||||
d.text(9,159,"SQLite / PostgreSQL 17",9,True)
|
||||
d.text(9,172,"Metadata · revisions · settings · indexes",7.5,color=MUTED)
|
||||
d.text(284,159,"Persistent files",9,True)
|
||||
d.text(284,172,"HTML · attachments · calendar / task data",7.5,color=MUTED)
|
||||
return d
|
||||
|
||||
|
||||
def domains():
|
||||
d=Drawing(252,92,"Campus manages domains independently of application instances")
|
||||
d.box(0,0,252,23,PALE)
|
||||
d.text(126,15,"Campus / configuration controller",8.4,True,align="center")
|
||||
d.arrow(60,23,60,42,dashed=True); d.arrow(192,23,192,42,dashed=True)
|
||||
for x,label,hosts in [(0,"Instance A",["wiki.example.test","lab.example.test"]),(132,"Instance B",["team.example.test"])]:
|
||||
d.box(x,42,120,49,WHITE,ACCENT); d.text(x+7,55,label,8.3,True)
|
||||
for i,host in enumerate(hosts):
|
||||
d.text(x+7,69+13*i,host,7,mono=True)
|
||||
return d
|
||||
|
||||
|
||||
def editing():
|
||||
d=Drawing(252,92,"HTML and Markdown editing, conversion and preview")
|
||||
for x,w,title,sub in [(0,76,"Markdown","editing"),(102,64,"HTML","stored content")]:
|
||||
d.box(x,11,w,35,PALE); d.text(x+w/2,25,title,9,True,align="center"); d.text(x+w/2,38,sub,7,color=MUTED,align="center")
|
||||
d.arrow(76,22,102,22); d.arrow(102,35,76,35)
|
||||
d.text(87,7,"convert",6.4,align="center",color=MUTED)
|
||||
d.box(192,11,60,35,PALE); d.text(222,25,"Viewer",8.6,True,align="center"); d.text(222,38,"Preview",7,color=MUTED,align="center")
|
||||
d.arrow(166,29,192,29)
|
||||
d.line(134,46,134,64); d.arrow(134,64,222,64)
|
||||
d.text(0,83,"HTML fragments retained in Markdown",7.2,color=MUTED)
|
||||
d.text(222,76,"Slides",7.7,True,align="center")
|
||||
d.text(222,89,"Reveal.js",7,color=MUTED,align="center")
|
||||
return d
|
||||
|
||||
|
||||
def identity():
|
||||
d=Drawing(252,79,"Paths resolve to a stable Page, immutable revisions and content hashes")
|
||||
for y,label in [(0,"/guide/api"),(33,"/project/ref")]:
|
||||
d.box(0,y,66,24,PALE); d.text(33,y+15,label,7,align="center",mono=True)
|
||||
d.box(83,15,49,29,PALE); d.text(107.5,27,"Page",8,True,align="center"); d.text(107.5,38,"UUID",7,color=MUTED,align="center")
|
||||
d.arrow(66,12,83,24); d.arrow(66,45,83,35)
|
||||
d.box(147,15,47,29,PALE); d.text(170.5,27,"Revision",7.2,True,align="center"); d.text(170.5,38,"UUID / lang",6.2,color=MUTED,align="center")
|
||||
d.arrow(132,29,147,29)
|
||||
d.box(209,15,43,29,PALE); d.text(230.5,27,"Document",6.4,True,align="center"); d.text(230.5,38,"SHA-256",6.6,color=MUTED,align="center")
|
||||
d.arrow(194,29,209,29)
|
||||
d.text(0,74,"mutable address",7,color=MUTED)
|
||||
d.text(83,74,"stable identity / immutable history",7,color=MUTED)
|
||||
return d
|
||||
|
||||
|
||||
def city():
|
||||
d=Drawing(252,79,"Campus and Domain organize Quartier, Street, Spot and Pages")
|
||||
d.text(0,9,"Campus",8.5,True); d.arrow(45,6,60,6); d.text(65,9,"Domain = FQDN / namespace",8.2,True)
|
||||
boxes=[(0,72,"Quartier","/lab"),(90,72,"Street","/lab/web"),(180,72,"Spot","/lab/web/api")]
|
||||
for x,w,title,sub in boxes:
|
||||
d.box(x,24,w,32,PALE); d.text(x+w/2,37,title,8,True,align="center"); d.text(x+w/2,49,sub,6.6,color=MUTED,align="center",mono=True)
|
||||
d.arrow(72,40,90,40); d.arrow(162,40,180,40)
|
||||
d.arrow(216,56,216,66); d.text(216,77,"Pages",8,True,align="center")
|
||||
d.text(0,76,"path boundaries / map navigation",7,color=MUTED)
|
||||
return d
|
||||
|
||||
|
||||
def body(d,x,y,lines,size=8.7,leading=13):
|
||||
for i,s in enumerate(lines):
|
||||
d.text(x,y+i*leading,s,size)
|
||||
|
||||
|
||||
def section(d,y,number,title):
|
||||
d.text(30,y,number,8.5,True,ACCENT)
|
||||
d.text(51,y,title,10.3,True)
|
||||
|
||||
|
||||
def technical_page():
|
||||
page=Drawing(*A4,"Pages / pages-cli architecture handout")
|
||||
page.text(30,33,"01 / TECHNICAL ARCHITECTURE",8,True,ACCENT)
|
||||
page.text(565,33,"2026-11-15 / PagesWiki v0.18.0",7.6,color=MUTED,align="right")
|
||||
page.text(30,64,"Pages",28,True)
|
||||
page.text(137,64,"/ pages-cli",20,color=MUTED)
|
||||
page.text(30,86,"Wiki・ファイル・タスク・予定を、ブラウザとターミナルで扱う。",10.7)
|
||||
page.line(30,99,565,99,ACCENT)
|
||||
section(page,117,"01","全体構成:Go製サーバー + Python製CLI + 形式別の表示・編集機能")
|
||||
arch=architecture(); domain=domains(); editor=editing()
|
||||
|
||||
section(page,333,"02","ドメイン:サイトと配置先を分ける")
|
||||
page.text(313,333,"03",8.5,True,ACCENT)
|
||||
page.text(334,333,"エディタとトランスパイル",10.3,True)
|
||||
body(page,30,456,["ドメインはFQDNごとのWiki。パス・設定・メンバーを分離。",
|
||||
"キャンパスは複数ドメインと配置先インスタンスを管理。",
|
||||
"一つのインスタンスに複数サイトを収容でき、別配置も可能。",
|
||||
"配信するのは設定であり、記事の複製機能ではない。",
|
||||
"HTTPのHostからサイトを選択。パスの重複はサイト間で許容。",
|
||||
"設定配信は署名付き。配置先は参加・承認済みから選択。"],8.05,12.5)
|
||||
body(page,313,456,["内蔵エディタはHTML/Markdown切替とライブプレビュー。",
|
||||
"Wiki本文はHTMLで保存。編集時にMarkdownへ変換し、",
|
||||
"Markdownで表せない属性・構造はHTMLのまま残す。",
|
||||
"children・CSVマクロは編集時に保持し、表示時に展開。",
|
||||
"同じ文書を通常ページ・印刷・Reveal.jsスライドで表示。",
|
||||
"外部編集にはcode-server連携。vim.wasmは改善保留。"],8.05,12.5)
|
||||
|
||||
page.line(30,535,565,535)
|
||||
section(page,556,"04","プラグイン:文書操作と機能追加")
|
||||
page.text(313,556,"05",8.5,True,ACCENT)
|
||||
page.text(334,556,"pages-cli:端末からの操作",10.3,True)
|
||||
page.text(30,578,"表示・編集アダプタ",9,True,ACCENT)
|
||||
body(page,30,595,["MIME・拡張子からビューア/エディタを選択する。",
|
||||
"CSV・PDF・画像・動画・アーカイブ・Excalidraw等に対応。",
|
||||
"外部エディタは別コンテナで動作し、ゲートウェイ経由で",
|
||||
"ファイルを受け渡す。保存結果はWikiの履歴へ追加。"],8.05,12.5)
|
||||
page.text(30,660,"システム拡張",9,True,ACCENT)
|
||||
body(page,30,677,["タスク・カレンダー・連絡先・ブログ・日記・RSSを提供。",
|
||||
"例:RSS記事をWiki/タスクへ、予定・連絡先をDAVで同期。",
|
||||
"設定画面で有効/無効を切替。外部表示・編集サービスは",
|
||||
"URL登録で追加できる。任意コードの動的ロードは未対応。"],8.05,12.5)
|
||||
body(page,313,578,["独立リポジトリで配布するHTTPクライアント。実行名 pages。",
|
||||
"対話シェル、$EDITOR/$PAGER、言語指定、OIDC承認。",
|
||||
"タスクの作成・計画・作業時間記録・レポート、連絡先検索。",
|
||||
"NeoMuttから本文をWikiへ保存し、関連タスクを作成する。"],8.05,12.5)
|
||||
page.box(313,631,252,89,PALE)
|
||||
for y,s in [(646,"pages login --oidc --no-browser"),(662,"pages edit /lab/guide --lang ja"),(678,"pages task from-mail < message.eml"),(694,"pages task start TASK_UUID"),(710,"pages task stop")]:
|
||||
page.text(322,y,s,7.3,mono=True)
|
||||
|
||||
page.line(30,738,565,738)
|
||||
page.text(30,755,"現行の制約",8.2,True,ACCENT)
|
||||
body(page,30,770,["v0.18.0は単一書込インスタンス構成。PostgreSQL版は本文全文検索・外部エディタ連携・Web Push等が未対応。",
|
||||
"内蔵エディタとInboxは利用可能。プラグインの利用可否はDB構成・追加サービスの配置に依存する。"],7.8,12)
|
||||
page.line(30,798,565,798)
|
||||
page.text(30,812,"設計資料:docs/design/ja/{campus-federation,viewer-editor,editor-resilience,extensions}.md",6.8,color=MUTED)
|
||||
page.text(30,824,"構成制約:docs/operations/postgresql-migration.md | CLI:git.anya.jp/anya/pages-cli",6.8,color=MUTED)
|
||||
|
||||
for name,d in [("pages-system-architecture",arch),("pages-domain-deployment",domain),("pages-editor-conversion",editor)]:
|
||||
d.svg(OUT/(name+".svg"))
|
||||
return [(page,0,0),(arch,30,130),(domain,30,346),(editor,313,346)]
|
||||
|
||||
|
||||
def city_navigation():
|
||||
d=Drawing(535,128,"URL hierarchy as districts, streets and places: conceptual navigation")
|
||||
d.box(0,0,535,127,WHITE,ACCENT)
|
||||
d.text(12,17,"wiki.example.test",10,True)
|
||||
d.text(523,17,"One domain / one city",8,color=MUTED,align="right")
|
||||
for x,title,path,street,spot in [(12,"Research","/lab","/lab/web","/lab/web/api"),(187,"Operations","/ops","/ops/network","/ops/network/dns"),(362,"Projects","/projects","/projects/wiki","/projects/wiki/editor")]:
|
||||
d.box(x,29,161,86,PALE)
|
||||
d.text(x+9,44,title,9,True); d.text(x+152,44,path,7.2,align="right",mono=True)
|
||||
d.line(x+10,62,x+151,62,LINE)
|
||||
d.text(x+9,57,street,7.1,mono=True)
|
||||
d.line(x+26,62,x+26,78,ACCENT)
|
||||
d.box(x+11,79,139,25,WHITE)
|
||||
d.text(x+80.5,95,spot,7,align="center",mono=True)
|
||||
return d
|
||||
|
||||
|
||||
def work_connections():
|
||||
d=Drawing(252,79,"Email and RSS connect to Wiki, tasks and work records")
|
||||
for x,title,sub in [(0,"Mail / RSS","capture"),(90,"Wiki + task","link"),(180,"Work log","report")]:
|
||||
d.box(x,16,72,37,PALE)
|
||||
d.text(x+36,31,title,8,True,align="center")
|
||||
d.text(x+36,44,sub,7,color=MUTED,align="center")
|
||||
d.arrow(72,34,90,34); d.arrow(162,34,180,34)
|
||||
d.text(0,74,"NeoMutt / pages-cli / Web dashboard",7.2,color=MUTED)
|
||||
return d
|
||||
|
||||
|
||||
def multiple_contexts():
|
||||
d=Drawing(252,79,"Two navigation paths open the same page")
|
||||
for y,path in [(0,"/guide/api"),(35,"/project/ref")]:
|
||||
d.box(0,y,83,26,PALE)
|
||||
d.text(41.5,y+17,path,8,align="center",mono=True)
|
||||
d.box(119,10,133,42,PALE)
|
||||
d.text(185.5,28,"One page",10,True,align="center")
|
||||
d.text(185.5,43,"Shared content / history",7,align="center",color=MUTED)
|
||||
d.arrow(83,13,119,22); d.arrow(83,48,119,40)
|
||||
d.text(0,76,"Multiple paths, no document copies",7.4,color=MUTED)
|
||||
return d
|
||||
|
||||
|
||||
def design_page():
|
||||
p=Drawing(*A4,"Pages / pages-cli design choices")
|
||||
p.text(30,33,"02 / DESIGN CONCEPT",8,True,ACCENT)
|
||||
p.text(565,33,"2026-11-15 / PagesWiki",7.6,color=MUTED,align="right")
|
||||
p.text(30,64,"Pages",28,True); p.text(137,64,"/ pages-cli",20,color=MUTED)
|
||||
p.text(30,86,"URLの階層を街の案内図に。文書を日々の作業につなぐ。",10.7)
|
||||
p.line(30,99,565,99,ACCENT)
|
||||
section(p,117,"01","フォルダの階層に、地図という入口を重ねる")
|
||||
town=city_navigation(); ident=multiple_contexts(); work=work_connections()
|
||||
body(p,30,278,["Knowledge City Modelは、ドメインを街、URLの配下を街区(Quartier)・通り(Street)・拠点(Spot)として扱う。",
|
||||
"検索語が浮かばないときも、分野や周辺のページから探せる。地図・ツリー・検索は同じ文書群の別の入口。",
|
||||
"URLからの自動分類を起点に、名前や範囲を調整する。地図のためだけに別の分類体系を作り直さない。",
|
||||
"用途や公開範囲が異なるサイトはドメインを分け、各サイトの設定・メンバーを個別に管理する。"],8.4,13)
|
||||
p.text(565,263,"図は階層の概念図。実際のCity Map画面ではない。",6.6,color=MUTED,align="right")
|
||||
|
||||
section(p,337,"02","一つのページを複数の文脈に置く")
|
||||
p.text(313,337,"03",8.5,True,ACCENT); p.text(334,337,"文書を作業の流れへ組み込む",10.3,True)
|
||||
body(p,30,444,["手順書を「技術分野」と「プロジェクト」の両方から参照。",
|
||||
"コピーではなく、複数のパスで同じページを指す。",
|
||||
"内容を更新すれば、どちらの入口からも同じ版を読める。",
|
||||
"「分類し直す」と「別の文書を作る」を分けることで、",
|
||||
"整理のための複製や、コピー先だけの更新漏れを減らす。"],8.05,13)
|
||||
body(p,313,444,["メールやRSSを読んだ場所から、Wiki保存とタスク化へ。",
|
||||
"タスクから関連メモを開き、作業時間や予定と結び付ける。",
|
||||
"予定・連絡先はCalDAV/CardDAVで既存アプリとも接続。",
|
||||
"Webでは一覧・カレンダー・ウィジェット、端末では短い",
|
||||
"コマンドを使い、作業環境に合わせて入口を選ぶ。"],8.05,13)
|
||||
p.line(30,512,565,512)
|
||||
section(p,534,"04","文書形式と、使う道具を固定しない")
|
||||
p.text(30,558,"編集はMarkdown、表示は用途に合わせる",9.2,True,ACCENT)
|
||||
body(p,30,578,["Wiki本文の保存形式はHTML。Markdownで書き、必要な部分はHTMLを残して編集できる。",
|
||||
"文書をページ・印刷・スライドとして使い分ける。CSVや図は専用の表示・編集機能で扱う。"],8.6,14)
|
||||
p.text(30,618,"プラグインは二つの役割に分ける",9.2,True,ACCENT)
|
||||
p.box(30,631,252,61,PALE); p.box(313,631,252,61,PALE)
|
||||
p.text(41,648,"文書の表示・編集",9,True)
|
||||
body(p,41,665,["CSV表、Excalidraw、Reveal.js、外部エディタ。",
|
||||
"同じ内容を、その形式に向いた道具で扱う。"],8.1,13)
|
||||
p.text(324,648,"アプリケーション機能の追加",9,True)
|
||||
body(p,324,665,["タスク、カレンダー、連絡先、ブログ、日記、RSS。",
|
||||
"文書以外の画面・操作・設定を追加する。"],8.1,13)
|
||||
body(p,30,715,["内蔵エディタで完結する使い方も、code-serverやpages-cliの $EDITOR を使う選択肢も用意する。",
|
||||
"必要な機能を有効にして使う。外部サービスの配置・DB構成による対応範囲は技術編に記載。"],8.4,14)
|
||||
p.line(30,748,565,748)
|
||||
p.text(30,766,"デザインの軸",8.5,True,ACCENT)
|
||||
p.text(112,766,"街として探す / コピーせず参照する / 作業につなぐ / 道具を選ぶ",9.4,True)
|
||||
p.line(30,798,565,798)
|
||||
p.text(30,812,"設計資料:docs/design/ja/{principles,campus-federation,viewer-editor,extensions}.md / pages-cli README",6.8,color=MUTED)
|
||||
p.text(30,824,"Knowledge City Model:『とある科学の超電磁砲』の学舎の園に着想。構成・実装制約は別紙「技術編」を参照。",6.8,color=MUTED)
|
||||
for name,d in [("pages-design-city-navigation",town),("pages-design-multiple-paths",ident),("pages-design-workflow",work)]:
|
||||
d.svg(OUT/(name+".svg"))
|
||||
return [(p,0,0),(town,30,130),(ident,30,350),(work,313,350)]
|
||||
|
||||
|
||||
def export_pdf(path, pages, title):
|
||||
c=canvas.Canvas(str(path),pagesize=A4,pageCompression=1)
|
||||
c.setTitle(title); c.setAuthor("PagesWiki project")
|
||||
c.setSubject("Pages / pages-cli:技術構成とデザインの説明資料")
|
||||
for drawings in pages:
|
||||
for d,x,y in drawings:
|
||||
d.pdf(c,x,y)
|
||||
c.showPage()
|
||||
c.save()
|
||||
print(path)
|
||||
|
||||
|
||||
def screen_layout():
|
||||
d=Drawing(535,144,"Desktop information density and mobile touch layout: conceptual wireframes")
|
||||
d.box(0,0,350,143,WHITE,ACCENT)
|
||||
d.box(0,0,350,24,PALE,LINE)
|
||||
d.text(8,16,"Pages",9,True)
|
||||
d.box(54,5,140,14,WHITE)
|
||||
d.text(61,15,"Search / command",7,color=MUTED)
|
||||
d.text(341,15,"Plan Inbox Theme User",7,align="right")
|
||||
d.box(7,31,70,104,PALE)
|
||||
d.text(13,44,"Projects",8,True)
|
||||
for i,s in enumerate(["All tasks","Wiki","Exhibition","Personal"]):
|
||||
if i==2: d.box(11,76,61,16,"#dce8f0",LINE)
|
||||
d.text(14,61+i*15,s,7.2)
|
||||
d.text(87,43,"Status / Subject",7.5,True)
|
||||
d.text(340,43,"Due / Wiki",7.5,True,align="right")
|
||||
for i,(s,date) in enumerate([("Review API design","11-15"),("Prepare exhibit","11-16"),("Write deployment notes","11-17"),("Update diagrams","11-18")]):
|
||||
y=50+i*20
|
||||
if i==1: d.box(83,y,259,20,"#dce8f0",LINE)
|
||||
d.text(88,y+13,s,7.4); d.text(337,y+13,date,7.2,align="right")
|
||||
d.line(83,y+20,342,y+20)
|
||||
d.box(374,0,161,143,WHITE,ACCENT)
|
||||
d.box(374,0,161,24,PALE)
|
||||
d.text(383,16,"Pages / Tasks",8.5,True)
|
||||
for i,(s,sub) in enumerate([("Review API design","In progress / Nov 15"),("Prepare exhibit","To do / Nov 16")]):
|
||||
y=32+i*52
|
||||
d.box(382,y,145,44,PALE)
|
||||
d.text(389,y+14,s,8,True); d.text(389,y+28,sub,7,color=MUTED)
|
||||
d.text(389,y+39,"Edit Date Wiki",7)
|
||||
return d
|
||||
|
||||
|
||||
def theme_variants():
|
||||
d=Drawing(535,70,"Same layout with light, dark and wallpaper-derived colors; illustrative palettes")
|
||||
for x,label,bg,fg,accent in [(0,"LIGHT","#f1f5f8","#172433","#dce8f0"),(186,"DARK","#26303d","#e3eaf1","#405569"),(372,"WALLPAPER COLOR","#f0ebe5","#42392e","#d3c2ac")]:
|
||||
d.box(x,0,163,69,bg)
|
||||
d.text(x+8,14,label,7.5,True,fg)
|
||||
d.box(x+8,22,147,15,accent,accent)
|
||||
d.text(x+14,32,"Search / command",7,color=fg)
|
||||
d.line(x+8,45,x+155,45,fg); d.line(x+8,54,x+109,54,fg)
|
||||
d.text(x+8,64,"Same controls / layout",6.6,color=fg)
|
||||
return d
|
||||
|
||||
|
||||
def screen_page():
|
||||
p=Drawing(*A4,"Pages / pages-cli screen and interaction design")
|
||||
p.text(30,33,"03 / INTERFACE & INTERACTION",8,True,ACCENT)
|
||||
p.text(565,33,"2026-11-15 / PagesWiki",7.6,color=MUTED,align="right")
|
||||
p.text(30,64,"Pages",28,True); p.text(137,64,"/ pages-cli",20,color=MUTED)
|
||||
p.text(30,86,"一覧で見渡し、キーで動かす。配色と入口は使う人に合わせる。",10.7)
|
||||
p.line(30,99,565,99,ACCENT)
|
||||
section(p,117,"01","デスクトップは一覧密度、モバイルはタッチ操作を優先")
|
||||
layout=screen_layout(); themes=theme_variants()
|
||||
p.text(30,285,"デスクトップ:プロジェクト+表形式の一覧",7.5,color=MUTED)
|
||||
p.text(404,285,"モバイル:カード型の操作領域",7.5,color=MUTED)
|
||||
body(p,30,304,["タスクは1行ずつ比較し、通常一覧では件名・状態・日付をその場で編集。キーボード一覧は別表示として用意。",
|
||||
"設定・詳細だけをダイアログへ。ダッシュボードはウィジェットを並べ替え、サイズを変更できる。"],8.3,13)
|
||||
|
||||
section(p,343,"02","ショートカット:画面ごとの操作")
|
||||
p.text(313,343,"03",8.5,True,ACCENT); p.text(334,343,"検索欄をコマンドの入口にも",10.3,True)
|
||||
for i,(key,label) in enumerate([
|
||||
("/ e ?","閲覧:検索 / 編集 / ヘルプ"),
|
||||
("Ctrl+↑ / ↓","閲覧:親パス / 子ページ一覧"),
|
||||
("j / k","タスク:次行 / 前行"),
|
||||
("Ctrl+j / k","タスク:プロジェクト移動"),
|
||||
("o / O / l","タスク:ソート / 逆順 / 絞込"),
|
||||
("d / s","タスク:完了 / Pomodoro"),
|
||||
("c / m / w","タスク:作成 / 編集 / Wiki")]):
|
||||
y=363+18*i
|
||||
p.box(30,y-10,80,15,PALE)
|
||||
p.text(36,y,key,8,mono=True)
|
||||
p.text(118,y,label,8.2)
|
||||
p.text(30,492,"タスクの操作表は /v/plan/tasks/index が対象。",7.2,color=MUTED)
|
||||
p.box(313,354,252,69,PALE)
|
||||
for y,s in [(370,'add task "設計レビュー"'),(385,' project:Wiki cost:2h'),(406,'add cal 会議 from:... to:...')]:
|
||||
p.text(322,y,s,8,mono=True)
|
||||
body(p,313,442,["トップの検索候補からページへ直接移動。",
|
||||
"add task / add cal でタスク・予定を作成する。",
|
||||
"project: にはプロジェクト候補、cost: には見積時間。",
|
||||
"予定は from: / to: に日時を入力する。"],8.1,13)
|
||||
|
||||
section(p,523,"04","テーマ:画面内で切替、トップの外観は個別に調整")
|
||||
body(p,30,626,["ナビバーのテーマ選択は再読み込み不要。選択はブラウザに保持し、配色を変えても操作の配置は維持する。",
|
||||
"トップの歯車から、壁紙のパス・濃さ、グラス効果の透明度を個人設定として変更できる。",
|
||||
"壁紙の色から配色を調整するモードと強度も用意。配色と透明度はプレビューしてから保存する。"],8.4,14)
|
||||
p.text(565,613,"配色比較は概念図。特定テーマのスクリーンショットではない。",6.7,color=MUTED,align="right")
|
||||
|
||||
section(p,695,"05","操作を切り替えても、入力の流れを保つ")
|
||||
body(p,30,716,["内蔵エディタは本文とプレビューを並べ、非表示時は編集領域を広げる。タッチ端末ではVimモードを解除。",
|
||||
"単キー操作は入力欄や開いたダイアログでは抑止。タスク一覧は ? から、その画面のキー操作を確認できる。",
|
||||
"ターミナルでは pages の対話シェル・Tab補完・$EDITOR を利用。Webの短い操作とCLIのコマンドを併用する。"],8.2,14)
|
||||
p.text(30,772,"図は画面構成の説明用。キーの役割は画面に依存し、ブラウザ/OSのキー割り当てと競合する場合がある。",7.3,color=MUTED)
|
||||
p.line(30,798,565,798)
|
||||
p.text(30,812,"実装参照:static/js/{viewer-shortcuts,task-index,home-command-parser,theme-picker,home-appearance}.js",6.7,color=MUTED)
|
||||
p.text(30,824,"設計資料:docs/design/ja/{organizer-dashboard,calendar-mobile,editor-resilience}.md / pages-cli README",6.7,color=MUTED)
|
||||
layout.svg(OUT/"pages-interface-layout.svg"); themes.svg(OUT/"pages-interface-themes.svg")
|
||||
return [(p,0,0),(layout,30,130),(themes,30,537)]
|
||||
|
||||
|
||||
def main():
|
||||
tech=technical_page(); design=design_page(); interface=screen_page(); discussion=discussion_page()
|
||||
export_pdf(OUT/"pages-pages-cli-discussion-a4-ja.pdf",[discussion],"Pages / pages-cli - ディスカッション")
|
||||
export_pdf(OUT/"pages-pages-cli-four-sheets-a4-ja.pdf",[tech,design,interface,discussion],"Pages / pages-cli - 技術・デザイン・画面設計・ディスカッション")
|
||||
|
||||
|
||||
def discussion_page():
|
||||
p=Drawing(*A4,"Discussion: what else do you want from a Wiki?")
|
||||
p.text(30,33,"04 / DISCUSSION",8,True,ACCENT)
|
||||
p.text(565,33,"2026-11-15 / PagesWiki",7.6,color=MUTED,align="right")
|
||||
p.text(30,64,"Pages",28,True); p.text(137,64,"/ pages-cli",20,color=MUTED)
|
||||
p.text(30,91,"あなたはWikiに、あと何が欲しいですか?",17,True)
|
||||
p.line(30,105,565,105,ACCENT)
|
||||
p.text(30,123,"気になる機能に○を。機能の追加だけでなく、使いにくさ・不要な機能の意見も歓迎。",9)
|
||||
p.box(30,138,252,28,PALE)
|
||||
p.box(313,138,252,28,PALE)
|
||||
p.text(41,157,"追加している機能",11,True,ACCENT)
|
||||
p.text(271,157,"実装あり",7.5,color=MUTED,align="right")
|
||||
p.text(324,157,"追加予定・検討中",11,True,ACCENT)
|
||||
p.text(554,157,"時期未定",7.5,color=MUTED,align="right")
|
||||
existing=[
|
||||
("文書の編集","HTML/Markdown、下書き、履歴復元、言語別編集"),
|
||||
("探す・整理する","検索、ツリー、City Map、ブックマーク"),
|
||||
("ファイルを扱う","CSV表編集、PDF・画像・動画・アーカイブ閲覧"),
|
||||
("図・発表資料","Excalidraw表示、Reveal.jsスライド・プレビュー"),
|
||||
("タスクと作業記録","親子タスク、日別計画、Pomodoro、実績集計"),
|
||||
("予定と連絡先","カレンダー、アドレス帳、CalDAV/CardDAV"),
|
||||
("情報収集・発信","RSS/FreshRSS連携、ブログ・日記、記事のRSS配信"),
|
||||
("端末・メールとの接続","pages-cli、$EDITOR、NeoMuttからWiki保存・タスク化"),
|
||||
("画面のカスタマイズ","テーマ、壁紙、ショートカット、ウィジェット配置"),
|
||||
("サイト管理・ログイン","複数ドメイン、グループ、公開設定、OIDC/LDAP"),
|
||||
]
|
||||
planned=[
|
||||
("コメント・評価","インラインコメント、スレッド、いいね、品質評価"),
|
||||
("共同編集・編集体験","同時編集、見たまま編集の検討(現在は保留)"),
|
||||
("共有・公開の拡充","期限付き共有URL、承認UI、権限の一覧表示"),
|
||||
("図表・記法の追加","Draw.io、nwdiag、ODS、他Wiki記法の取り込み"),
|
||||
("チームの仕事管理","共有タスク、日課、チケット管理、共有アドレス帳"),
|
||||
("さらに情報を集める","IMAP取り込み、他Wiki・外部検索、Linkding連携"),
|
||||
("外部ストレージ","S3互換、WebDAV、SSHFS等との連携"),
|
||||
("用途別の管理機能","料理レシピ、IPアドレス、DNS、資産管理"),
|
||||
("プラグイン・運用の拡充","第三者プラグイン実行、冗長化、自動切替、監視"),
|
||||
("既存機能をもっと使いやすく","検索・大容量データ・同期互換性・モバイルの改善"),
|
||||
]
|
||||
for x,items in [(30,existing),(313,planned)]:
|
||||
for i,(title,detail) in enumerate(items):
|
||||
y=184+i*31
|
||||
p.box(x+2,y-7,6,6,WHITE,LINE,0)
|
||||
p.text(x+16,y,title,9,True)
|
||||
p.text(x+16,y+13,detail,7.8)
|
||||
if i<9: p.line(x,y+20,x+252,y+20,"#e1e7ec")
|
||||
body(p,30,498,["左欄は一部機能を含む実装一覧で、全環境での提供を保証するものではありません。DB構成による制約は技術編へ。",
|
||||
"右欄は設計TODO・既存機能の拡充候補です。実装や提供時期の確約ではなく、優先順位を議論するための一覧です。"],7.2,11)
|
||||
p.line(30,521,565,521)
|
||||
section(p,542,"01","どんな場面で使いたい?")
|
||||
p.text(30,562,"個人メモ / チームの手順書 / プロジェクト / 調査・学習 / 公開ブログ / その他",9)
|
||||
p.text(30,581,"今使っているツールと、そこで困っていることは?",8.6,color=MUTED)
|
||||
p.line(30,601,565,601,LINE)
|
||||
section(p,626,"02","一覧にないものは? 逆に、いらないものは?")
|
||||
p.text(30,646,"外せない機能、つなぎたいサービス、変えたい操作、Wikiに持たせたくない役割。",9)
|
||||
p.line(30,670,565,670,LINE)
|
||||
p.line(30,691,565,691,LINE)
|
||||
section(p,717,"03","一つだけ先に実装するなら?")
|
||||
p.text(30,739,"欲しい機能:",9,True); p.line(91,743,282,743,LINE)
|
||||
p.text(313,739,"解決したい困りごと:",9,True); p.line(408,743,565,743,LINE)
|
||||
p.text(30,771,"機能名だけでなく、「誰が・いつ・何に困るか」を教えてください。",10,True,ACCENT)
|
||||
p.line(30,798,565,798)
|
||||
p.text(30,812,"参照:docs/design/ja/implementation-backlog.md、extensions.md、organizer-dashboard.md、各機能設計書",6.7,color=MUTED)
|
||||
p.text(30,824,"展示・対話用シート。予定には未着手・保留を含みます。一般的なWikiへの要望も、Pages固有の要望も歓迎します。",6.7,color=MUTED)
|
||||
return [(p,0,0)]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,100 @@
|
||||
# pages
|
||||
|
||||
## 知識の住所と実体を分ける
|
||||
|
||||
Knowledge City Model を持つ知識管理基盤
|
||||
|
||||
技術者向け 5分
|
||||
|
||||
---
|
||||
|
||||
## 全体構成
|
||||
|
||||

|
||||
|
||||
単一writerを基本に、保存・表示・外部連携の責務を分ける。
|
||||
|
||||
---
|
||||
|
||||
## 住所が変わっても同じ知識
|
||||
|
||||

|
||||
|
||||
Path、Page UUID、Revision UUID、Document SHA-256は別の役割。
|
||||
|
||||
---
|
||||
|
||||
## Knowledge Cityによる案内
|
||||
|
||||

|
||||
|
||||
街区から探索し、同じPageを複数の拠点から参照する。
|
||||
|
||||
---
|
||||
|
||||
## 保存の順序が履歴を守る
|
||||
|
||||

|
||||
|
||||
復元も新しい版として追記する。過去の内容を上書きしない。
|
||||
|
||||
---
|
||||
|
||||
## 同じ知識を複数の形式で利用
|
||||
|
||||
| 正本・状態 | 利用するProjection |
|
||||
| --- | --- |
|
||||
| HTML文書と不変Revision | 閲覧・Markdown編集・印刷・このスライド |
|
||||
| PDF・画像・CSV等の固有形式 | MIMEに応じたビューア・編集アダプタ |
|
||||
| Macro宣言 | 表示時だけ認可済みの一覧や表を展開 |
|
||||
|
||||
表示結果を別の正本にしない。変換で表現できないHTMLは保持する。
|
||||
|
||||
---
|
||||
|
||||
## 認証と権限を表示まで貫く
|
||||
|
||||
| 判断するもの | 境界 |
|
||||
| --- | --- |
|
||||
| 誰か | OIDC・LDAP・パスワード等でPrincipalを識別 |
|
||||
| 何ができるか | Domain・グループ・Path・Localityの権限 |
|
||||
| 何を公開するか | 上位の公開上限とRevision・範囲ごとの公開 |
|
||||
| 何を実行するか | sanitizer・CSP・sandboxで制限 |
|
||||
|
||||
UUIDやhashを知っていても権限は得られない。検索・City・cacheも認可対象。
|
||||
|
||||
---
|
||||
|
||||
## Wikiを日々の作業へ接続
|
||||
|
||||
| 入口 | Wikiとの接続 |
|
||||
| --- | --- |
|
||||
| タスク・プロジェクト | 関連Page、作業記録、Pomodoro |
|
||||
| カレンダー・連絡先 | CalDAV・CardDAVの実装プロファイル |
|
||||
| RSS・メール | 明示的なWiki保存・タスク化 |
|
||||
| Web・pages-cli | 同じ業務データを異なる操作環境で利用 |
|
||||
|
||||
外部原本とローカル正本、再取得できるcacheを区別する。
|
||||
|
||||
---
|
||||
|
||||
## 重い処理と復旧の境界
|
||||
|
||||
- previewや同期は背景キューへ送り、閲覧を優先する
|
||||
- Campusは署名付き設定manifestを配信する。記事複製とは別
|
||||
- 現行基盤はSQLiteとローカル保存、単一writer
|
||||
- 自動HA・外部保存・任意プラグイン実行は後続課題
|
||||
|
||||
現行DRは停止snapshotと、外部fenceを前提とした手動昇格。
|
||||
|
||||
---
|
||||
|
||||
## pages の設計上の特色
|
||||
|
||||
**住所が変わっても、知識の実体と履歴を保つ。**
|
||||
|
||||
**街の案内図と多重参照で、複数の文脈から同じ知識へ到達する。**
|
||||
|
||||
**正本・派生データ・権限の境界を、表示や外部連携にも適用する。**
|
||||
|
||||
[設計資料](/lab/pageswiki-dev) [詳細版](/lab/pageswiki-dev/architecture-slides)
|
||||
@@ -0,0 +1,279 @@
|
||||
# pages のアーキテクチャと特色
|
||||
|
||||
Knowledge City Model を持つ知識管理基盤
|
||||
|
||||
技術者向け構成案 2026年11月
|
||||
|
||||
---
|
||||
|
||||
## 1 扱う課題と設計方針
|
||||
|
||||
- 文書の移動や分類変更で、知識の実体と履歴を分断しない
|
||||
- 同じ知識を、複数の場所・言語・表示形式から利用する
|
||||
- Wikiと日々のタスク・予定・受信情報を関連付ける
|
||||
- 認可、正本、派生データの境界を機能追加後も維持する
|
||||
|
||||
---
|
||||
|
||||
## 2 論理モデルの全体像
|
||||
|
||||
| 層 | 責務 |
|
||||
| --- | --- |
|
||||
| Campus / Domain | 管理・配置とFQDN・Path名前空間 |
|
||||
| Quartier / Street / Spot | 知識の整理、案内、管理範囲 |
|
||||
| Page / Revision | 安定した実体と不変の履歴 |
|
||||
| Document | SHA-256で識別する内容バイト列 |
|
||||
| Projection | 閲覧、編集、検索、印刷、スライド |
|
||||
|
||||
---
|
||||
|
||||
## 3 住所と実体と内容の分離
|
||||
|
||||
| 識別子 | 意味 | 変更との関係 |
|
||||
| --- | --- | --- |
|
||||
| Domain + Path | 人が使う住所 | rename・別名追加が可能 |
|
||||
| Page UUID | 知識の実体 | 移動後も維持 |
|
||||
| Revision UUID | 言語を持つ特定の版 | 新しい版を追記 |
|
||||
| Document SHA-256 | 内容の同一性 | 同じバイト列を識別 |
|
||||
|
||||
ハッシュやUUIDを知っていることは、閲覧権限の根拠にならない。
|
||||
|
||||
---
|
||||
|
||||
## 4 Knowledge City Model
|
||||
|
||||
Domainを一つの街として扱う。
|
||||
|
||||
| 単位 | 知識の配置例 |
|
||||
| --- | --- |
|
||||
| Quartier 学区・街区 | `/engineering` |
|
||||
| Street 通り | `/engineering/network` |
|
||||
| Spot 拠点 | `/engineering/network/dns` |
|
||||
| Page 文書 | `/engineering/network/dns/runbook` |
|
||||
|
||||
子のPath境界は親の厳密な子孫。同階層のprimary境界は重複を制限する。
|
||||
|
||||
---
|
||||
|
||||
## 5 階層による案内と多重参照
|
||||
|
||||
- primary所属はPath境界から決定する
|
||||
- 同じPageを別のSpotからも参照できる
|
||||
- 参照を追加しても本文・Revision履歴は複製しない
|
||||
- Spotへの所属と、そのPageを読む権限は別に評価する
|
||||
|
||||
例:運用手順を「DNS」と「障害対応」の両方から紹介する。
|
||||
|
||||
---
|
||||
|
||||
## 6 City Mapによる探索
|
||||
|
||||
- Domain全体の街からQuartier・Street・Spotへ拡大する
|
||||
- Spotの周囲にPageを配置し、拠点と文書の関係を示す
|
||||
- Page数を街の規模に反映し、未整理Pageは個別のポイントにする
|
||||
- 検索・Tree・Browserと併用し、地図だけに到達経路を限定しない
|
||||
|
||||
自動整理には手動編集の保護、再試行時の収束、大規模化の残件がある。
|
||||
|
||||
---
|
||||
|
||||
## 7 実行時の構成
|
||||
|
||||
| 実行単位 | 主な役割 |
|
||||
| --- | --- |
|
||||
| Goアプリケーション | HTTP、認証・認可、保存、検索、ジョブ実行 |
|
||||
| SQLite | identity、Revision参照、権限、設定、キュー等 |
|
||||
| ローカルDocument Store | 不変の内容と拡張ごとのファイル正本 |
|
||||
| Adapter Gateway | ホスト型エディタ等への接続 |
|
||||
| 必要な外部サービス | code-server、Excalidraw、Kroki等 |
|
||||
|
||||
内部パッケージの分離は、マイクロサービスへの分割を意味しない。
|
||||
|
||||
---
|
||||
|
||||
## 8 文書保存の整合性
|
||||
|
||||
1. 対象・言語・形式と書き込み権限を検証する
|
||||
2. 内容のSHA-256を計算し、Documentを先に永続化する
|
||||
3. DBで期待Revisionと照合し、Revisionと必要な参照を確定する
|
||||
4. 接続済みの変更経路ではoutboxを同じtransactionに記録する
|
||||
|
||||
DBの競合で未参照blobが残る場合はある。内容が存在しないRevisionは確定させない。
|
||||
|
||||
---
|
||||
|
||||
## 9 文書とアセットの履歴
|
||||
|
||||
- Revisionは不変。復元も新しいRevisionの追加として扱う
|
||||
- Asset名は編集用の可変HEADとして扱う
|
||||
- 文書保存時にAsset参照を固定ハッシュへ解決する
|
||||
- 過去Revisionの表示を、最新Asset HEADへ追従させない
|
||||
|
||||
GCには現在参照だけでなく、履歴・依存物・保全中データの保護が必要。
|
||||
|
||||
---
|
||||
|
||||
## 10 言語とProjection
|
||||
|
||||
- 言語はRevisionの属性。通常Pathに言語別階層を強制しない
|
||||
- 閲覧時は要求言語とフォールバック方針から版を選ぶ
|
||||
- 編集時は対象言語を明示し、別言語の本文を暗黙に上書きしない
|
||||
- 同じPageを通常表示・RAW・印刷・スライド等で利用する
|
||||
|
||||
文章の正本はHTML。PDFや画像、CSV等の固有形式は元の形式を保持する。
|
||||
|
||||
---
|
||||
|
||||
## 11 エディタの保存と情報保全
|
||||
|
||||
- HTMLとMarkdownを切り替え、プレビューは表示用Projectionを使う
|
||||
- 往復変換で保持できないHTMLは保護ブロックに残す
|
||||
- Macroは編集時に宣言を保持し、表示時に認可済み結果を展開する
|
||||
- 下書き、認証・通信失敗の検知、条件付き保存、競合確認を扱う
|
||||
|
||||
保存時の競合対策と、リアルタイム共同編集は別。共有presence・CRDTは後続課題。
|
||||
|
||||
---
|
||||
|
||||
## 12 認証と認可の境界
|
||||
|
||||
認証器でPrincipalを識別し、Domain membershipと対象操作の権限を別途評価する。
|
||||
|
||||
- パスワード・TOTP、OIDC、LDAP、SMTPマジックリンク
|
||||
- ブラウザCookie、API Bearer、DAV資格情報の用途を分離
|
||||
- グループ・capability・Path・Localityの上限制約を組み合わせる
|
||||
- 閲覧、更新、削除、公開、管理を同一権限として扱わない
|
||||
|
||||
キャッシュやUUID経由の取得でも認可を省略しない。
|
||||
|
||||
---
|
||||
|
||||
## 13 公開範囲と匿名ナビゲーション
|
||||
|
||||
- 上位管理者が公開可能な上限を設定し、下位管理者は狭められる
|
||||
- 特定Revisionの公開と、確認済み範囲の自動公開を区別する
|
||||
- children・Tree・Cityも現在読めるPageで絞る
|
||||
- 公開停止や権限失効後に、古いキャッシュから情報を復活させない
|
||||
|
||||
承認運用の完成、依存物の全影響レビュー、期限付き共有URL管理は残件。
|
||||
|
||||
---
|
||||
|
||||
## 14 保存HTMLと実行可能コンテンツ
|
||||
|
||||
- 保存したHTMLを、そのままアプリの権限で実行しない
|
||||
- Viewer・履歴・印刷・Previewに共通の許可リストとCSPを適用する
|
||||
- 外部画像・CSS・JavaScriptは管理方針による明示的な許可を必要とする
|
||||
- スライドやホスト型ツールは、用途ごとのsandbox・sessionで扱う
|
||||
|
||||
原文の保存、閲覧の許可、スクリプトの実行許可は異なる判断。
|
||||
|
||||
---
|
||||
|
||||
## 15 アダプタとシステム拡張
|
||||
|
||||
| 種別 | 対象 | 例 |
|
||||
| --- | --- | --- |
|
||||
| 連携アダプタ | Documentを開く・編集する | PDF、CSV、Excalidraw、code-server |
|
||||
| システム拡張 | 状態と業務処理を持つ | タスク、予定、RSS、通知 |
|
||||
|
||||
有効化・無効化をデータ削除と分離する。
|
||||
|
||||
現行は信頼済みビルトインが中心。任意の第三者コードを安全に実行する基盤は未完成。
|
||||
|
||||
---
|
||||
|
||||
## 16 Wikiとオーガナイザーの接続
|
||||
|
||||
- タスク・プロジェクトをWiki Pageへ関連付ける
|
||||
- 予定・タスクは共通CalDAV入口、連絡先はCardDAVで外部クライアントと接続する
|
||||
- RSS・メールから、明示的にWikiへ保存・タスク化する
|
||||
- Webとpages-cliで操作し、作業記録や日次メール、ダッシュボードを利用する
|
||||
|
||||
外部サービスの原本、Pages内の正本、表示用cacheを区別する。
|
||||
|
||||
---
|
||||
|
||||
## 17 拡張ごとの正本
|
||||
|
||||
| 対象 | 正本・権威の所在 |
|
||||
| --- | --- |
|
||||
| Wiki本文 | 不変DocumentとRevision等のDBメタデータ |
|
||||
| カレンダー | manifestと月別ICS。DBは再構築可能な索引 |
|
||||
| FreshRSS連携 | FreshRSS。Pagesはクライアントと表示用cache |
|
||||
| 内蔵RSS | Pagesの購読・既読等の状態 |
|
||||
|
||||
CalDAV・CardDAVは実装プロファイルに制限があり、全クライアントへの完全互換は保証しない。
|
||||
|
||||
---
|
||||
|
||||
## 18 背景処理と前景の優先
|
||||
|
||||
- サムネイル、PDF情報、同期、City再整理等を永続キューで処理する
|
||||
- 優先度、同時実行数、入力・出力、実行時間、再試行を制限する
|
||||
- outboxとconsumer checkpointで接続済みの変更処理を配送する
|
||||
- CPU・メモリ・I/O履歴と実行中ジョブを運用画面で確認する
|
||||
|
||||
配送はat-least-onceを前提とする。分散lease・重み付き予算・全書込経路の接続は残件。
|
||||
|
||||
---
|
||||
|
||||
## 19 Campusによる設定連携
|
||||
|
||||
- CampusがDomainの配置と管理情報を持つ
|
||||
- DomainのFQDNと配置先インスタンスを分離する
|
||||
- 参加トークンと承認済みインスタンスidentityを使う
|
||||
- 署名・単調sequence付きmanifestを受信側で原子的に適用する
|
||||
|
||||
設定配信は記事の複製・バックアップ・HAではない。Domain間の任意の権限同期も別契約。
|
||||
|
||||
---
|
||||
|
||||
## 20 運用上の制約と拡張順序
|
||||
|
||||
- 現行の基本はSQLiteとローカル保存、単一writer運用
|
||||
- 複数インスタンスを配置しても共有writerのHAにはならない
|
||||
- DR初版は停止snapshot、検証付き復元、外部fenceを前提とする手動昇格
|
||||
- 次段階は局所取得・索引改善、認可の一貫性、lease、外部保存・HAの順に境界を固める
|
||||
|
||||
RPO・RTO、無停止更新、無損失切替は、復旧訓練と運用条件なしに保証しない。
|
||||
|
||||
---
|
||||
|
||||
## 補足A 内部コンポーネント
|
||||
|
||||
| 部品 | 役割 |
|
||||
| --- | --- |
|
||||
| Grammaratur | 文書形式変換・情報保全 |
|
||||
| Geduldh | 不変Documentの保存と取得 |
|
||||
| Mestionora | 検索と索引 |
|
||||
| Schutzaria | 権限・公開ポリシー評価 |
|
||||
| Dregarnuhr | ジョブ実行制御 |
|
||||
| Ordoschnellic | 通知配送 |
|
||||
| Kunstzeal | Projection選択と描画provider |
|
||||
| Seheweit | リソース収集と観測 |
|
||||
|
||||
---
|
||||
|
||||
## 補足B 説明時に区別する実装状態
|
||||
|
||||
| 初期実装あり | 設計・後続実装 |
|
||||
| --- | --- |
|
||||
| City Map、URL境界、複数参照 | 全自動整理の整合性と大規模化 |
|
||||
| エディタの下書き・CAS・履歴 | 共有presence・リアルタイム共同編集 |
|
||||
| ビルトイン拡張・ホスト型エディタ | 任意プラグインの隔離実行 |
|
||||
| 匿名表示・公開ルール | 承認フロー全体・Macaroon共有 |
|
||||
| ローカル保存・停止snapshot | S3等の外部保存・自動HA |
|
||||
|
||||
---
|
||||
|
||||
## 補足C 設計資料
|
||||
|
||||
- [設計思想と責務の分離](/lab/pageswiki-dev/principles)
|
||||
- [アドレス・保存・アセット](/lab/pageswiki-dev/address-storage)
|
||||
- [Knowledge City](/lab/pageswiki-dev/knowledge-city)
|
||||
- [認証・権限と公開](/lab/pageswiki-dev/auth-permissions)
|
||||
- [イベント・リソース監視](/lab/pageswiki-dev/scheduler-resources)
|
||||
- [運用・外部保存・HAとDR](/lab/pageswiki-dev/operations)
|
||||
|
||||
技術詳細と実装残件の索引:`docs/design/ja/index.md`
|
||||
@@ -0,0 +1,31 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="535pt" height="128pt" viewBox="0 0 535 128" role="img" aria-labelledby="title">
|
||||
<title id="title">URL hierarchy as districts, streets and places: conceptual navigation</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="535" height="127" rx="2" fill="#ffffff" stroke="#244d70" stroke-width="0.6"/>
|
||||
<text x="12" y="17" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="10" font-weight="700" text-anchor="start" fill="#172433">wiki.example.test</text>
|
||||
<text x="523" y="17" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="400" text-anchor="end" fill="#526171">One domain / one city</text>
|
||||
<rect x="12" y="29" width="161" height="86" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="21" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">Research</text>
|
||||
<text x="164" y="44" font-family="DejaVu Sans Mono,monospace" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">/lab</text>
|
||||
<line x1="22" y1="62" x2="163" y2="62" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<text x="21" y="57" font-family="DejaVu Sans Mono,monospace" font-size="7.1" font-weight="400" text-anchor="start" fill="#172433">/lab/web</text>
|
||||
<line x1="38" y1="62" x2="38" y2="78" stroke="#244d70" stroke-width="0.65"/>
|
||||
<rect x="23" y="79" width="139" height="25" rx="2" fill="#ffffff" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="92.5" y="95" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="middle" fill="#172433">/lab/web/api</text>
|
||||
<rect x="187" y="29" width="161" height="86" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="196" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">Operations</text>
|
||||
<text x="339" y="44" font-family="DejaVu Sans Mono,monospace" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">/ops</text>
|
||||
<line x1="197" y1="62" x2="338" y2="62" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<text x="196" y="57" font-family="DejaVu Sans Mono,monospace" font-size="7.1" font-weight="400" text-anchor="start" fill="#172433">/ops/network</text>
|
||||
<line x1="213" y1="62" x2="213" y2="78" stroke="#244d70" stroke-width="0.65"/>
|
||||
<rect x="198" y="79" width="139" height="25" rx="2" fill="#ffffff" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="267.5" y="95" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="middle" fill="#172433">/ops/network/dns</text>
|
||||
<rect x="362" y="29" width="161" height="86" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="371" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">Projects</text>
|
||||
<text x="514" y="44" font-family="DejaVu Sans Mono,monospace" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">/projects</text>
|
||||
<line x1="372" y1="62" x2="513" y2="62" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<text x="371" y="57" font-family="DejaVu Sans Mono,monospace" font-size="7.1" font-weight="400" text-anchor="start" fill="#172433">/projects/wiki</text>
|
||||
<line x1="388" y1="62" x2="388" y2="78" stroke="#244d70" stroke-width="0.65"/>
|
||||
<rect x="373" y="79" width="139" height="25" rx="2" fill="#ffffff" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="442.5" y="95" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="middle" fill="#172433">/projects/wiki/editor</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,18 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="252pt" height="79pt" viewBox="0 0 252 79" role="img" aria-labelledby="title">
|
||||
<title id="title">Two navigation paths open the same page</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="83" height="26" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="41.5" y="17" font-family="DejaVu Sans Mono,monospace" font-size="8" font-weight="400" text-anchor="middle" fill="#172433">/guide/api</text>
|
||||
<rect x="0" y="35" width="83" height="26" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="41.5" y="52" font-family="DejaVu Sans Mono,monospace" font-size="8" font-weight="400" text-anchor="middle" fill="#172433">/project/ref</text>
|
||||
<rect x="119" y="10" width="133" height="42" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="185.5" y="28" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="10" font-weight="700" text-anchor="middle" fill="#172433">One page</text>
|
||||
<text x="185.5" y="43" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">Shared content / history</text>
|
||||
<line x1="83" y1="13" x2="119" y2="22" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="119" y1="22" x2="115.0837734367601" y2="22.814352199833827" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="119" y1="22" x2="115.92773053823953" y2="19.43852379391608" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="83" y1="48" x2="119" y2="40" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="119" y1="40" x2="115.86140985101306" y2="42.47976851272093" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="119" y1="40" x2="115.10655167141239" y2="39.08290670451785" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="0" y="76" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#526171">Multiple paths, no document copies</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,20 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="252pt" height="79pt" viewBox="0 0 252 79" role="img" aria-labelledby="title">
|
||||
<title id="title">Email and RSS connect to Wiki, tasks and work records</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="16" width="72" height="37" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="36" y="31" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Mail / RSS</text>
|
||||
<text x="36" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">capture</text>
|
||||
<rect x="90" y="16" width="72" height="37" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="126" y="31" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Wiki + task</text>
|
||||
<text x="126" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">link</text>
|
||||
<rect x="180" y="16" width="72" height="37" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="216" y="31" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Work log</text>
|
||||
<text x="216" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">report</text>
|
||||
<line x1="72" y1="34" x2="90" y2="34" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="90" y1="34" x2="86.3982115905893" y2="35.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="90" y1="34" x2="86.3982115905893" y2="32.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="162" y1="34" x2="180" y2="34" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="180" y1="34" x2="176.39821159058928" y2="35.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="180" y1="34" x2="176.39821159058928" y2="32.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="0" y="74" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="start" fill="#526171">NeoMutt / pages-cli / Web dashboard</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,19 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="252pt" height="92pt" viewBox="0 0 252 92" role="img" aria-labelledby="title">
|
||||
<title id="title">Campus manages domains independently of application instances</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="252" height="23" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="126" y="15" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.4" font-weight="700" text-anchor="middle" fill="#172433">Campus / configuration controller</text>
|
||||
<line x1="60" y1="23" x2="60" y2="42" stroke="#526171" stroke-width="0.65" stroke-dasharray="2 2"/>
|
||||
<line x1="60" y1="42" x2="58.26013786355508" y2="38.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="60" y1="42" x2="61.73986213644492" y2="38.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="192" y1="23" x2="192" y2="42" stroke="#526171" stroke-width="0.65" stroke-dasharray="2 2"/>
|
||||
<line x1="192" y1="42" x2="190.2601378635551" y2="38.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="192" y1="42" x2="193.7398621364449" y2="38.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<rect x="0" y="42" width="120" height="49" rx="2" fill="#ffffff" stroke="#244d70" stroke-width="0.6"/>
|
||||
<text x="7" y="55" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.3" font-weight="700" text-anchor="start" fill="#172433">Instance A</text>
|
||||
<text x="7" y="69" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="start" fill="#172433">wiki.example.test</text>
|
||||
<text x="7" y="82" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="start" fill="#172433">lab.example.test</text>
|
||||
<rect x="132" y="42" width="120" height="49" rx="2" fill="#ffffff" stroke="#244d70" stroke-width="0.6"/>
|
||||
<text x="139" y="55" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.3" font-weight="700" text-anchor="start" fill="#172433">Instance B</text>
|
||||
<text x="139" y="69" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="start" fill="#172433">team.example.test</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,30 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="252pt" height="92pt" viewBox="0 0 252 92" role="img" aria-labelledby="title">
|
||||
<title id="title">HTML and Markdown editing, conversion and preview</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="11" width="76" height="35" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="38.0" y="25" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="middle" fill="#172433">Markdown</text>
|
||||
<text x="38.0" y="38" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">editing</text>
|
||||
<rect x="102" y="11" width="64" height="35" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="134.0" y="25" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="middle" fill="#172433">HTML</text>
|
||||
<text x="134.0" y="38" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">stored content</text>
|
||||
<line x1="76" y1="22" x2="102" y2="22" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="102" y1="22" x2="98.3982115905893" y2="23.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="102" y1="22" x2="98.3982115905893" y2="20.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="102" y1="35" x2="76" y2="35" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="76" y1="35" x2="79.6017884094107" y2="33.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="76" y1="35" x2="79.6017884094107" y2="36.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="87" y="7" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.4" font-weight="400" text-anchor="middle" fill="#526171">convert</text>
|
||||
<rect x="192" y="11" width="60" height="35" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="222" y="25" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.6" font-weight="700" text-anchor="middle" fill="#172433">Viewer</text>
|
||||
<text x="222" y="38" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">Preview</text>
|
||||
<line x1="166" y1="29" x2="192" y2="29" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="192" y1="29" x2="188.39821159058928" y2="30.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="192" y1="29" x2="188.39821159058928" y2="27.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="134" y1="46" x2="134" y2="64" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<line x1="134" y1="64" x2="222" y2="64" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="222" y1="64" x2="218.39821159058928" y2="65.73986213644493" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="222" y1="64" x2="218.39821159058928" y2="62.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="0" y="83" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="start" fill="#526171">HTML fragments retained in Markdown</text>
|
||||
<text x="222" y="76" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.7" font-weight="700" text-anchor="middle" fill="#172433">Slides</text>
|
||||
<text x="222" y="89" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">Reveal.js</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
@@ -0,0 +1,31 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="252pt" height="79pt" viewBox="0 0 252 79" role="img" aria-labelledby="title">
|
||||
<title id="title">Paths resolve to a stable Page, immutable revisions and content hashes</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="66" height="24" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="33" y="15" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="middle" fill="#172433">/guide/api</text>
|
||||
<rect x="0" y="33" width="66" height="24" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="33" y="48" font-family="DejaVu Sans Mono,monospace" font-size="7" font-weight="400" text-anchor="middle" fill="#172433">/project/ref</text>
|
||||
<rect x="83" y="15" width="49" height="29" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="107.5" y="27" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Page</text>
|
||||
<text x="107.5" y="38" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="middle" fill="#526171">UUID</text>
|
||||
<line x1="66" y1="12" x2="83" y2="24" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="83" y1="24" x2="79.05410535900606" y2="23.34432059497393" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="83" y1="24" x2="81.06080387945784" y2="20.501497691000587" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="66" y1="45" x2="83" y2="35" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="83" y1="35" x2="80.77764045479339" y2="38.32582592025336" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="83" y1="35" x2="79.01335021354707" y2="35.32653251013461" stroke="#526171" stroke-width="0.65"/>
|
||||
<rect x="147" y="15" width="47" height="29" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="170.5" y="27" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="700" text-anchor="middle" fill="#172433">Revision</text>
|
||||
<text x="170.5" y="38" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.2" font-weight="400" text-anchor="middle" fill="#526171">UUID / lang</text>
|
||||
<line x1="132" y1="29" x2="147" y2="29" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="147" y1="29" x2="143.39821159058928" y2="30.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="147" y1="29" x2="143.39821159058928" y2="27.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<rect x="209" y="15" width="43" height="29" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="230.5" y="27" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.4" font-weight="700" text-anchor="middle" fill="#172433">Document</text>
|
||||
<text x="230.5" y="38" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.6" font-weight="400" text-anchor="middle" fill="#526171">SHA-256</text>
|
||||
<line x1="194" y1="29" x2="209" y2="29" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="209" y1="29" x2="205.39821159058928" y2="30.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="209" y1="29" x2="205.39821159058928" y2="27.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="0" y="74" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#526171">mutable address</text>
|
||||
<text x="83" y="74" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#526171">stable identity / immutable history</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.5 KiB |
@@ -0,0 +1,43 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="535pt" height="144pt" viewBox="0 0 535 144" role="img" aria-labelledby="title">
|
||||
<title id="title">Desktop information density and mobile touch layout: conceptual wireframes</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="350" height="143" rx="2" fill="#ffffff" stroke="#244d70" stroke-width="0.6"/>
|
||||
<rect x="0" y="0" width="350" height="24" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="8" y="16" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">Pages</text>
|
||||
<rect x="54" y="5" width="140" height="14" rx="2" fill="#ffffff" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="61" y="15" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#526171">Search / command</text>
|
||||
<text x="341" y="15" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="end" fill="#172433">Plan Inbox Theme User</text>
|
||||
<rect x="7" y="31" width="70" height="104" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="13" y="44" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="start" fill="#172433">Projects</text>
|
||||
<text x="14" y="61" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="start" fill="#172433">All tasks</text>
|
||||
<text x="14" y="76" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="start" fill="#172433">Wiki</text>
|
||||
<rect x="11" y="76" width="61" height="16" rx="2" fill="#dce8f0" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="14" y="91" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="start" fill="#172433">Exhibition</text>
|
||||
<text x="14" y="106" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="start" fill="#172433">Personal</text>
|
||||
<text x="87" y="43" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="700" text-anchor="start" fill="#172433">Status / Subject</text>
|
||||
<text x="340" y="43" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="700" text-anchor="end" fill="#172433">Due / Wiki</text>
|
||||
<text x="88" y="63" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#172433">Review API design</text>
|
||||
<text x="337" y="63" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">11-15</text>
|
||||
<line x1="83" y1="70" x2="342" y2="70" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<rect x="83" y="70" width="259" height="20" rx="2" fill="#dce8f0" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="88" y="83" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#172433">Prepare exhibit</text>
|
||||
<text x="337" y="83" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">11-16</text>
|
||||
<line x1="83" y1="90" x2="342" y2="90" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<text x="88" y="103" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#172433">Write deployment notes</text>
|
||||
<text x="337" y="103" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">11-17</text>
|
||||
<line x1="83" y1="110" x2="342" y2="110" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<text x="88" y="123" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#172433">Update diagrams</text>
|
||||
<text x="337" y="123" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.2" font-weight="400" text-anchor="end" fill="#172433">11-18</text>
|
||||
<line x1="83" y1="130" x2="342" y2="130" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<rect x="374" y="0" width="161" height="143" rx="2" fill="#ffffff" stroke="#244d70" stroke-width="0.6"/>
|
||||
<rect x="374" y="0" width="161" height="24" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="383" y="16" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.5" font-weight="700" text-anchor="start" fill="#172433">Pages / Tasks</text>
|
||||
<rect x="382" y="32" width="145" height="44" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="389" y="46" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="start" fill="#172433">Review API design</text>
|
||||
<text x="389" y="60" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#526171">In progress / Nov 15</text>
|
||||
<text x="389" y="71" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#172433">Edit Date Wiki</text>
|
||||
<rect x="382" y="84" width="145" height="44" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="389" y="98" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="start" fill="#172433">Prepare exhibit</text>
|
||||
<text x="389" y="112" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#526171">To do / Nov 16</text>
|
||||
<text x="389" y="123" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#172433">Edit Date Wiki</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.6 KiB |
@@ -0,0 +1,25 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="535pt" height="70pt" viewBox="0 0 535 70" role="img" aria-labelledby="title">
|
||||
<title id="title">Same layout with light, dark and wallpaper-derived colors; illustrative palettes</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="163" height="69" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="8" y="14" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="700" text-anchor="start" fill="#172433">LIGHT</text>
|
||||
<rect x="8" y="22" width="147" height="15" rx="2" fill="#dce8f0" stroke="#dce8f0" stroke-width="0.6"/>
|
||||
<text x="14" y="32" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#172433">Search / command</text>
|
||||
<line x1="8" y1="45" x2="155" y2="45" stroke="#172433" stroke-width="0.65"/>
|
||||
<line x1="8" y1="54" x2="109" y2="54" stroke="#172433" stroke-width="0.65"/>
|
||||
<text x="8" y="64" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.6" font-weight="400" text-anchor="start" fill="#172433">Same controls / layout</text>
|
||||
<rect x="186" y="0" width="163" height="69" rx="2" fill="#26303d" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="194" y="14" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="700" text-anchor="start" fill="#e3eaf1">DARK</text>
|
||||
<rect x="194" y="22" width="147" height="15" rx="2" fill="#405569" stroke="#405569" stroke-width="0.6"/>
|
||||
<text x="200" y="32" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#e3eaf1">Search / command</text>
|
||||
<line x1="194" y1="45" x2="341" y2="45" stroke="#e3eaf1" stroke-width="0.65"/>
|
||||
<line x1="194" y1="54" x2="295" y2="54" stroke="#e3eaf1" stroke-width="0.65"/>
|
||||
<text x="194" y="64" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.6" font-weight="400" text-anchor="start" fill="#e3eaf1">Same controls / layout</text>
|
||||
<rect x="372" y="0" width="163" height="69" rx="2" fill="#f0ebe5" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="380" y="14" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="700" text-anchor="start" fill="#42392e">WALLPAPER COLOR</text>
|
||||
<rect x="380" y="22" width="147" height="15" rx="2" fill="#d3c2ac" stroke="#d3c2ac" stroke-width="0.6"/>
|
||||
<text x="386" y="32" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#42392e">Search / command</text>
|
||||
<line x1="380" y1="45" x2="527" y2="45" stroke="#42392e" stroke-width="0.65"/>
|
||||
<line x1="380" y1="54" x2="481" y2="54" stroke="#42392e" stroke-width="0.65"/>
|
||||
<text x="380" y="64" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.6" font-weight="400" text-anchor="start" fill="#42392e">Same controls / layout</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,29 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="252pt" height="79pt" viewBox="0 0 252 79" role="img" aria-labelledby="title">
|
||||
<title id="title">Campus and Domain organize Quartier, Street, Spot and Pages</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<text x="0" y="9" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.5" font-weight="700" text-anchor="start" fill="#172433">Campus</text>
|
||||
<line x1="45" y1="6" x2="60" y2="6" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="60" y1="6" x2="56.39821159058929" y2="7.739862136444921" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="60" y1="6" x2="56.39821159058929" y2="4.260137863555079" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="65" y="9" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.2" font-weight="700" text-anchor="start" fill="#172433">Domain = FQDN / namespace</text>
|
||||
<rect x="0" y="24" width="72" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="36.0" y="37" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Quartier</text>
|
||||
<text x="36.0" y="49" font-family="DejaVu Sans Mono,monospace" font-size="6.6" font-weight="400" text-anchor="middle" fill="#526171">/lab</text>
|
||||
<rect x="90" y="24" width="72" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="126.0" y="37" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Street</text>
|
||||
<text x="126.0" y="49" font-family="DejaVu Sans Mono,monospace" font-size="6.6" font-weight="400" text-anchor="middle" fill="#526171">/lab/web</text>
|
||||
<rect x="180" y="24" width="72" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="216.0" y="37" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Spot</text>
|
||||
<text x="216.0" y="49" font-family="DejaVu Sans Mono,monospace" font-size="6.6" font-weight="400" text-anchor="middle" fill="#526171">/lab/web/api</text>
|
||||
<line x1="72" y1="40" x2="90" y2="40" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="90" y1="40" x2="86.3982115905893" y2="41.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="90" y1="40" x2="86.3982115905893" y2="38.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="162" y1="40" x2="180" y2="40" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="180" y1="40" x2="176.39821159058928" y2="41.73986213644492" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="180" y1="40" x2="176.39821159058928" y2="38.26013786355508" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="216" y1="56" x2="216" y2="66" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="216" y1="66" x2="214.2601378635551" y2="62.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="216" y1="66" x2="217.7398621364449" y2="62.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="216" y="77" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8" font-weight="700" text-anchor="middle" fill="#172433">Pages</text>
|
||||
<text x="0" y="76" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7" font-weight="400" text-anchor="start" fill="#526171">path boundaries / map navigation</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,50 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="535pt" height="179pt" viewBox="0 0 535 179" role="img" aria-labelledby="title">
|
||||
<title id="title">Pages and pages-cli: application, extensions, APIs and storage</title>
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<rect x="0" y="0" width="163" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="8" y="13" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">Web / PWA</text>
|
||||
<text x="8" y="25" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#526171">Wiki · City · Organizer</text>
|
||||
<line x1="81.5" y1="32" x2="81.5" y2="55" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="81.5" y1="55" x2="79.76013786355507" y2="51.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="81.5" y1="55" x2="83.23986213644493" y2="51.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<rect x="186" y="0" width="163" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="194" y="13" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">pages-cli / pages</text>
|
||||
<text x="194" y="25" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#526171">Shell · $EDITOR · NeoMutt</text>
|
||||
<line x1="267.5" y1="32" x2="267.5" y2="55" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="267.5" y1="55" x2="265.7601378635551" y2="51.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="267.5" y1="55" x2="269.2398621364449" y2="51.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<rect x="372" y="0" width="163" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="380" y="13" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">DAV clients</text>
|
||||
<text x="380" y="25" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.4" font-weight="400" text-anchor="start" fill="#526171">CalDAV · CardDAV</text>
|
||||
<line x1="453.5" y1="32" x2="453.5" y2="55" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="453.5" y1="55" x2="451.7601378635551" y2="51.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="453.5" y1="55" x2="455.2398621364449" y2="51.39821159058929" stroke="#526171" stroke-width="0.65"/>
|
||||
<text x="91" y="46" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.8" font-weight="400" text-anchor="start" fill="#526171">HTTPS</text>
|
||||
<text x="278" y="46" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.8" font-weight="400" text-anchor="start" fill="#526171">HTTPS / Bearer</text>
|
||||
<text x="465" y="46" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="6.8" font-weight="400" text-anchor="start" fill="#526171">HTTPS / DAV</text>
|
||||
<rect x="0" y="55" width="535" height="70" rx="2" fill="#ffffff" stroke="#244d70" stroke-width="0.6"/>
|
||||
<text x="10" y="70" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="10" font-weight="700" text-anchor="start" fill="#244d70">PagesWiki / Go application</text>
|
||||
<text x="525" y="70" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.6" font-weight="400" text-anchor="end" fill="#526171">Host-based routing / HTTP API</text>
|
||||
<line x1="10" y1="77" x2="525" y2="77" stroke="#b6c2cd" stroke-width="0.65"/>
|
||||
<rect x="10" y="84" width="169" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="17" y="97" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.7" font-weight="700" text-anchor="start" fill="#172433">Wiki / files</text>
|
||||
<text x="17" y="109" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.1" font-weight="400" text-anchor="start" fill="#526171">Editor · viewers · City Map</text>
|
||||
<rect x="183" y="84" width="169" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="190" y="97" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.7" font-weight="700" text-anchor="start" fill="#172433">System extensions</text>
|
||||
<text x="190" y="109" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.1" font-weight="400" text-anchor="start" fill="#526171">Tasks · calendar · contacts · RSS</text>
|
||||
<rect x="356" y="84" width="169" height="32" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="363" y="97" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="8.7" font-weight="700" text-anchor="start" fill="#172433">Integration / jobs</text>
|
||||
<text x="363" y="109" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.1" font-weight="400" text-anchor="start" fill="#526171">DAV · plugins · background jobs</text>
|
||||
<line x1="130" y1="125" x2="130" y2="145" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="130" y1="145" x2="128.2601378635551" y2="141.39821159058928" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="130" y1="145" x2="131.7398621364449" y2="141.39821159058928" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="403" y1="125" x2="403" y2="145" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="403" y1="145" x2="401.2601378635551" y2="141.39821159058928" stroke="#526171" stroke-width="0.65"/>
|
||||
<line x1="403" y1="145" x2="404.7398621364449" y2="141.39821159058928" stroke="#526171" stroke-width="0.65"/>
|
||||
<rect x="0" y="145" width="260" height="34" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<rect x="275" y="145" width="260" height="34" rx="2" fill="#f1f5f8" stroke="#b6c2cd" stroke-width="0.6"/>
|
||||
<text x="9" y="159" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">SQLite / PostgreSQL 17</text>
|
||||
<text x="9" y="172" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="400" text-anchor="start" fill="#526171">Metadata · revisions · settings · indexes</text>
|
||||
<text x="284" y="159" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="9" font-weight="700" text-anchor="start" fill="#172433">Persistent files</text>
|
||||
<text x="284" y="172" font-family="DejaVu Sans,Noto Sans CJK JP,sans-serif" font-size="7.5" font-weight="400" text-anchor="start" fill="#526171">HTML · attachments · calendar / task data</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
@@ -0,0 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="670" viewBox="0 0 1440 670" role="img" aria-labelledby="title desc"><title id="title">Knowledge Cityの階層と参照</title><desc id="desc">Domainの中にQuartier、Street、Spotを配置する。二つのSpotが同じPageを参照できる</desc><rect width="1440" height="670" rx="24" fill="#0c1426"/>
|
||||
<g font-family="sans-serif" fill="#edf4ff"><text x="58" y="62" font-size="30">Domain engineering.example</text>
|
||||
<rect x="44" y="94" width="886" height="512" rx="20" fill="#14233a" stroke="#436183" stroke-width="2"/><text x="76" y="146" font-size="30" fill="#9eb4d1">Quartier /engineering</text>
|
||||
<rect x="82" y="178" width="810" height="386" rx="16" fill="#162e40" stroke="#438583" stroke-width="2"/><text x="114" y="226" font-size="30" fill="#69d8cf">Street /engineering/network</text>
|
||||
<path d="M114 302H854" stroke="#c4af79" stroke-width="24" opacity=".3"/><path d="M114 302H854" stroke="#c4af79" stroke-width="2" stroke-dasharray="8 10"/>
|
||||
<g stroke="#7bc8c4" stroke-width="3" fill="#224953"><path d="M175 376l75-45 75 45v114H175z"/><path d="M535 376l75-45 75 45v114H535z"/></g>
|
||||
<text x="202" y="415" font-size="31">DNS</text><text x="196" y="455" font-size="23" fill="#a8c9d4">Spot</text><text x="561" y="415" font-size="31">HTTP</text><text x="556" y="455" font-size="23" fill="#a8c9d4">Spot</text>
|
||||
<g fill="#bcdd69"><circle cx="380" cy="403" r="10"/><circle cx="420" cy="456" r="10"/></g><text x="356" y="523" font-size="23" fill="#c3dca0">未整理Page</text>
|
||||
<rect x="1000" y="181" width="374" height="165" rx="14" fill="#1b304a" stroke="#6dd7d0" stroke-width="2"/><text x="1034" y="233" font-size="30">Page 運用手順</text><text x="1034" y="281" font-size="24" fill="#a7bad3">primary所属:DNS</text><text x="1034" y="317" font-size="24" fill="#a7bad3">紹介先:HTTP</text>
|
||||
<g fill="none" stroke="#6dd7d0" stroke-width="3"><path d="M325 400H350V330H964V240H1000"/><path d="M685 440H958V300H1000" stroke-dasharray="9 7"/></g>
|
||||
<text x="1000" y="418" font-size="28" fill="#62d8d2">実線:primary所属</text><text x="1000" y="465" font-size="28" fill="#a8b9d3">破線:追加の参照</text><text x="1000" y="535" font-size="25" fill="#d9c58e">参照を増やしても</text><text x="1000" y="573" font-size="25" fill="#d9c58e">本文や権限は複製しない</text></g></svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="670" viewBox="0 0 1440 670" role="img" aria-labelledby="title desc">
|
||||
<title id="title">住所、実体、版、内容の分離</title><desc id="desc">二つのPathが同じPageを参照し、Pageが複数のRevisionと不変Documentを参照する</desc>
|
||||
<defs><marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0 0L9 5L0 10" fill="none" stroke="#62d8d2" stroke-width="1.5"/></marker></defs>
|
||||
<rect width="1440" height="670" rx="24" fill="#0c1426"/>
|
||||
<g font-family="sans-serif" fill="#ecf4ff"><text x="72" y="72" font-size="27" fill="#8fa7c7">ADDRESS</text><text x="460" y="72" font-size="27" fill="#8fa7c7">IDENTITY</text><text x="810" y="72" font-size="27" fill="#8fa7c7">HISTORY</text><text x="1160" y="72" font-size="27" fill="#8fa7c7">CONTENT</text>
|
||||
<g fill="none" stroke="#62d8d2" stroke-width="3" marker-end="url(#a)"><path d="M354 222H400V330H450"/><path d="M354 442H400V330"/><path d="M720 330H770V222H800"/><path d="M770 330V442H800"/><path d="M1080 222H1140"/><path d="M1080 442H1140"/></g>
|
||||
<rect x="60" y="160" width="294" height="124" rx="12" fill="#152741" stroke="#375574"/><rect x="60" y="380" width="294" height="124" rx="12" fill="#152741" stroke="#375574"/>
|
||||
<text x="84" y="208" font-size="28">/network/dns</text><text x="84" y="248" font-size="23" fill="#a2bad8">技術からの入口</text><text x="84" y="428" font-size="28">/ops/runbook</text><text x="84" y="468" font-size="23" fill="#a2bad8">運用からの入口</text>
|
||||
<rect x="450" y="250" width="270" height="160" rx="16" fill="#133f47" stroke="#62d8d2" stroke-width="3"/><text x="494" y="315" font-size="38">Page UUID</text><text x="490" y="363" font-size="25" fill="#a7e9df">移動しても同じ知識</text>
|
||||
<rect x="800" y="160" width="280" height="124" rx="12" fill="#1c2944" stroke="#647cba"/><rect x="800" y="380" width="280" height="124" rx="12" fill="#1c2944" stroke="#647cba"/><text x="834" y="211" font-size="31">Revision 02</text><text x="834" y="250" font-size="24" fill="#bdc9ef">ja / 新しい版</text><text x="834" y="431" font-size="31">Revision 01</text><text x="834" y="470" font-size="24" fill="#bdc9ef">ja / 過去の版</text>
|
||||
<rect x="1140" y="160" width="240" height="124" rx="12" fill="#343024" stroke="#cdb67b"/><rect x="1140" y="380" width="240" height="124" rx="12" fill="#343024" stroke="#cdb67b"/><text x="1174" y="215" font-size="29">SHA-256</text><text x="1174" y="252" font-size="23" fill="#eadab0">不変バイト列</text><text x="1174" y="435" font-size="29">SHA-256</text><text x="1174" y="472" font-size="23" fill="#eadab0">不変バイト列</text>
|
||||
<text x="72" y="602" font-size="30" fill="#62d8d2">複数の住所でも、知識の実体と履歴はひとつ</text></g></svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,10 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="670" viewBox="0 0 1440 670" role="img" aria-labelledby="title desc"><title id="title">pagesの実行時構成</title><desc id="desc">ブラウザとCLIがGoアプリへ接続する。アプリはSQLite、不変Document、キューと連携サービスを利用する</desc><rect width="1440" height="670" rx="24" fill="#0c1426"/><defs><marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0 0L9 5L0 10" fill="none" stroke="#62d8d2" stroke-width="1.5"/></marker></defs>
|
||||
<g font-family="sans-serif" fill="#edf4ff"><g fill="none" stroke="#62d8d2" stroke-width="3" marker-end="url(#a)"><path d="M322 180H420"/><path d="M322 440H370V250H420"/><path d="M900 200H1020"/><path d="M900 310H1020"/><path d="M720 388V458"/><path d="M900 350H960V516H1020"/></g>
|
||||
<rect x="58" y="112" width="264" height="146" rx="15" fill="#1d2c45" stroke="#617da4"/><text x="100" y="174" font-size="34">Browser</text><text x="100" y="220" font-size="25" fill="#a7bdd8">Viewer / Editor</text>
|
||||
<rect x="58" y="370" width="264" height="146" rx="15" fill="#1d2c45" stroke="#617da4"/><text x="100" y="430" font-size="34">CLI / DAV</text><text x="100" y="477" font-size="25" fill="#a7bdd8">用途別の資格情報</text>
|
||||
<rect x="420" y="100" width="480" height="288" rx="20" fill="#143a43" stroke="#62d8d2" stroke-width="3"/><text x="468" y="165" font-size="42">Go Application</text><text x="468" y="227" font-size="29">認証・認可とHTTP API</text><text x="468" y="278" font-size="29">Page / Revision / Projection</text><text x="468" y="335" font-size="24" fill="#9fdcd8">内部コンポーネントをパッケージ分離</text>
|
||||
<rect x="1020" y="126" width="350" height="112" rx="12" fill="#272c48" stroke="#8a91c8"/><text x="1054" y="172" font-size="33">SQLite</text><text x="1054" y="211" font-size="24" fill="#b7c0e1">identity・権限・索引</text>
|
||||
<rect x="1020" y="274" width="350" height="112" rx="12" fill="#343024" stroke="#cdb67b"/><text x="1054" y="320" font-size="31">Document Store</text><text x="1054" y="359" font-size="24" fill="#eadab0">ローカルの不変payload</text>
|
||||
<rect x="420" y="458" width="480" height="122" rx="14" fill="#172b40" stroke="#446889"/><text x="454" y="506" font-size="31">Queue / Background Jobs</text><text x="454" y="550" font-size="25" fill="#a9c4df">preview・同期・再整理・通知</text>
|
||||
<rect x="1020" y="458" width="350" height="122" rx="14" fill="#1a263b" stroke="#617da4"/><text x="1054" y="508" font-size="29">Adapter Gateway</text><text x="1054" y="551" font-size="23" fill="#a7bdd8">code-server / Excalidraw</text>
|
||||
<text x="58" y="627" font-size="25" fill="#a6b9d4">論理構成。内部部品の分離は、コンテナ分割や共有writerのHAを意味しない。</text></g></svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="670" viewBox="0 0 1440 670" role="img" aria-labelledby="title desc"><title id="title">文書保存の整合性</title><desc id="desc">認可、Document永続化、期待head照合とRevision確定の順。DB確定後に派生処理を行う</desc><rect width="1440" height="670" rx="24" fill="#0c1426"/><defs><marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0 0L9 5L0 10" fill="none" stroke="#62d8d2" stroke-width="1.5"/></marker></defs>
|
||||
<g font-family="sans-serif" fill="#edf4ff"><text x="58" y="74" font-size="29" fill="#8fa7c7">SAVE REQUEST</text><g fill="none" stroke="#62d8d2" stroke-width="3" marker-end="url(#a)"><path d="M340 265H390"/><path d="M700 265H750"/><path d="M1060 265H1110"/></g>
|
||||
<rect x="50" y="160" width="290" height="205" rx="15" fill="#152b40" stroke="#5a7da0"/><text x="80" y="214" font-size="26" fill="#62d8d2">01</text><text x="80" y="269" font-size="34">権限と入力</text><text x="80" y="318" font-size="26" fill="#afc5dc">対象・言語・形式</text>
|
||||
<rect x="390" y="160" width="310" height="205" rx="15" fill="#343024" stroke="#cdb67b"/><text x="422" y="214" font-size="26" fill="#dfc98c">02</text><text x="422" y="269" font-size="33">Document</text><text x="422" y="318" font-size="26" fill="#eadab0">hash検証・永続化</text>
|
||||
<rect x="750" y="160" width="310" height="205" rx="15" fill="#133f47" stroke="#62d8d2" stroke-width="3"/><text x="782" y="214" font-size="26" fill="#62d8d2">03</text><text x="782" y="269" font-size="33">DB commit</text><text x="782" y="318" font-size="26" fill="#a7e9df">期待head・新Revision</text>
|
||||
<rect x="1110" y="160" width="280" height="205" rx="15" fill="#1d2940" stroke="#617da4"/><text x="1140" y="214" font-size="26" fill="#a7bdd8">04</text><text x="1140" y="269" font-size="33">派生処理</text><text x="1140" y="318" font-size="26" fill="#afc5dc">索引・通知・preview</text>
|
||||
<path d="M905 365V418H545V365" fill="none" stroke="#d8bc7a" stroke-width="2"/><text x="360" y="478" font-size="31" fill="#dfc98c">DB競合時:未参照blobが残ることは許容</text><text x="360" y="529" font-size="31" fill="#62d8d2">内容のないRevisionを確定させない</text><text x="58" y="619" font-size="24" fill="#a6b9d4">outboxは接続済みの変更経路で同一transactionに記録。全経路への接続は継続課題。</text></g></svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |