Docs site: publish docs.stack314.com/neolith from this repo, with a generated API reference

Abierto
#58 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
markdown, python

Línea de trabajo

Start by reading the URL contract, site rules, and the proposed phases in this issue, then review the existing site in the lab website repo and the source documents under spec/, docs/adr/, and docs/. First resolve the open generator and publishing design debate; phase 1 is gated on #53 and acceptance of #56, while generated reference and release triggers are phase 2. Done means the agreed phases preserve the listed URLs and site rules and meet their build and publication requirements.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Neolith's user documentation at docs.stack314.com/neolith/ becomes the Neolith team's to build and publish. The webmaster keeps the hostname, routing, headers and DNS.

What exists

  • An Astro Starlight site in the lab's website repo (sites/docs/). It holds a hand-synced copy of this repo's Markdown at 14309e7: spec, ADRs, VISION, CONTRIBUTING, CHANGELOG and the docs/ pages.
  • A public URL contract, kept as it is: /neolith/, /neolith/spec/<NN-name>/, /neolith/decisions/<NNNN-slug>/, /neolith/project/<page>/, /neolith/reference/..., plus llms.txt. Every URL ends in a slash, a moved page gets a 301, and slugs come from file names, so renaming a spec or ADR file needs a redirect.
  • Site rules, kept as they are:
    • Be honest about status.
    • Site-written text names no people.
    • Site-written text says nothing about how the code is written; mirrored repo documents stay word for word.
    • Refuse any synced file that contains an email address.
    • Keep the trademark footer.
    • Pages must read without JavaScript.

Proposed position (open to the design debate before work starts)

  • Move the site into this repo (the handover's option A): a website/ folder, built by Cloudflare Workers Builds from this repo and served at /neolith/ through Astro's base. The site then reads spec/ and docs/adr/ directly, with no copy step and no webmaster in the loop. Builds run on Cloudflare, so they cost no GitHub Actions minutes.
  • Generate the API reference, don't write it:
    • Pages come from docstrings and type hints on the public API (neolith.__all__), extracted with griffe at build time into /neolith/reference/.
    • Spec and ADRs are published as written; reference pages link to the requirement IDs and decisions they implement.
    • Tutorials and how-tos are hand-written and stay honest stubs until something is installable.
  • Docstring discipline: one style (Google), enforced by ruff's docstring rules on the public API, and a strict docs build that fails on a broken link or a missing docstring.
  • Generator: keep Starlight unless the debate finds a blocker. MkDocs Material + mkdocstrings would do the Python reference natively, but it means rebuilding a working site and its URL contract, and its long-term maintenance needs checking first. Weigh both; don't settle it by habit.
  • Publish trigger:
    • Until 0.1, publish from main, with each page stating draft status.
    • From the first release, production moves to a branch that advances only on release, with main as a noindex preview.
    • Versioned docs (per release) once there is more than one release.

When to act

  • Phase 1 (move, direct reads, build check, docstring lint): after step 3 closes (#53) and the step 4 records are accepted (#56), running beside step 4's PRs. Starting the lint early keeps the docstring backfill small.
  • Phase 2 (generated reference, release trigger, versions): before step 8 (#15), the 0.1 proof.

Human-only steps (@vignzpie)

  • Install the Cloudflare GitHub app on this repo when phase 1's PR is ready.
  • Confirm the publish trigger above.

The webmaster connects the Worker and routes docs.stack314.com/neolith/* (handover steps 6–9).

Lenguaje dominante
Python
Estrellas
1
Forks
0
Merge medio
5 h 30 min
PR fusionados (30 d)
85

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de stack314/django-neolith

Todos los issues de stack314/django-neolith

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.