Publish the docs as pages of the site instead of linking to GitHub file views

未關閉
#75 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
20/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github-actions, go

研究方向

Start with docs/index.html, which links to nine github.com/.../blob/main/docs/*.md views, and with the Assemble step in .github/workflows/pages.yml, which copies only the landing page assets. The open question is the rendering approach, which needs a maintainer decision and a dependency note in docs/ARCHITECTURE.md. Done means each published document has a page under the site, links stay inside the site, and the workflow redeploys on document changes.

由索引模型根據 Issue 內容生成。

描述

enhancement help wanted severity: low

Summary

The Pages site is one page. Every documentation link on it (configuration, findings, CI, MCP, privacy, architecture, benchmark, comparison) leaves the site for a github.com/.../blob/main/docs/*.md view. A visitor who wants to read the docs loses the site's navigation and lands in the repository file browser.

Where

  • docs/index.html (9 links to https://github.com/TMHSDigital/Spackle/blob/main/docs/...)
  • .github/workflows/pages.yml (the "Assemble the site" step copies only index.html, 404.html, assets/ and the favicon)
  • docs/*.md (nine documents that are not published)

Proposal

Publish the Markdown documents as pages of the site, in the same look as the landing page.

Open questions, for the maintainer to decide:

  • How to render. The repository's rule is that the standard library is the default. A small Go tool under tools/ could render the documents at deploy time, but it needs a Markdown renderer, which is a new module with a reason to record in docs/ARCHITECTURE.md. The alternative is a docs generator run only in the workflow, which adds no module to go.mod.
  • Which documents. docs/superpowers/ holds the design specification and plan and probably stays in the repository only.
  • Content security policy. The landing page allows no scripts. Rendered docs should keep that.

Who benefits

People evaluating the tool from the site, who today have to read reference material in the GitHub file view, and search engines, which index the site and the repository separately.

Acceptance criteria

  • Each published document has a URL under the site, with the site header and a link back.
  • Links between documents and from index.html stay inside the site.
  • The pages workflow redeploys when a published document changes.
  • A sitemap.xml lists the pages once there is more than one.

Getting started

  • Relevant files: docs/index.html, docs/*.md, .github/workflows/pages.yml
  • Related docs: docs/ARCHITECTURE.md (dependency policy)

Filed by repo-audit/pages-audit at 6b22f82. Severity: low. Effort: M. audit-key: enhancement|docs/index.html|rendered-docs-pages

主要語言
Go
星號
0
分支
1
PR 合併指標
30 天內沒有已合併 PR

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Spackle 的其他 Issue

查看 TMHSDigital/Spackle 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。