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

オープン
#781 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞

調査の方向性

標準の Antora component explorer、site manifest アプローチ、および既存のサブプロジェクト固有の部分的なドキュメントビルドを確認します。アクティブなブランチをどのようにビルドするか、非アクティブなページをどのように保持するか、そしてすべての古いバージョンを再ビルドせずに完全なサイトをどのように公開するかを定義します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
79
フォーク
209
平均マージ
22時間 55分
マージ済み PR(30日)
28

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/camel-website のほかの issue

apache/camel-website の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。