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

Đang mở
#781 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ

Hướng nghiên cứu

Xem xét Antora component explorer tiêu chuẩn, cách tiếp cận site manifest và các bản build tài liệu từng phần dành riêng cho từng subproject hiện có. Xác định cách build các branch đang hoạt động, cách giữ lại các trang không hoạt động và cách phát hành một site hoàn chỉnh mà không cần build lại mọi phiên bản cũ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
79
Fork
209
Merge trung bình
22 giờ 55 phút
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/camel-website

Tất cả issue của apache/camel-website

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.