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

Ouverte
#75 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
20/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
github-actions, go
Domaine
ci-cd, documentation

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Go
Étoiles
0
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TMHSDigital/Spackle

Toutes les issues de TMHSDigital/Spackle

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.