Investigate how to keep old doc versions in the website without building them on every build.

Abierto
#781 0 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
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado

Línea de trabajo

Revisa el Antora component explorer estándar, el enfoque del site manifest y las compilaciones parciales de documentación específicas de los subproyectos existentes. Define cómo se compilan las ramas activas, cómo se conservan las páginas inactivas y cómo se publica un sitio completo sin volver a compilar todas las versiones antiguas.

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

Descripción

It would be great to keep all the old doc versions accessible in our website:

  • links from old blog posts would keep working
  • external links would keep working
  • Someone stuck on an old version could find the docs

However...

  • building an ever growing set of doc versions on every build will soon take too long to be practical
  • Without a way to hide obsolete doc versions, the component explorer will become unwieldy

In any case, I believe we have to rebuild the entire site when the UI changes or Antora is significantly upgraded.

At the moment we are using the standard Antora component explorer, which includes the whole explorer in every page. There are other solutions such as putting this stuff in a separate json document and rendering the json on each page. If we stick with the default component explorer I think we have to rebuild the entire site whenever we add a doc version, so the explorer on old pages can get to all versions.

For all other site builds, I think it should be possible to do something using a site manifest similar to the subproject-specific partial doc builds to only build "active" doc branches while using the already-built pages for the "inactive" doc branches. Together with setting up the partial builds, we'll need to figure out how to publish a complete site when only part of it has been "just built". Either we have to remove only the "old, active" pages when publishing the site, or find an independent way to archive the inactive pages and add them to the "built site" before committing.

Lenguaje dominante
JavaScript
Estrellas
79
Forks
209
Merge medio
22 h 55 min
PR fusionados (30 d)
28

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 apache/camel-website

Todos los issues de apache/camel-website

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.