kernelci / kernelci-deploy

Tools to deploy and update kernelci.org
GNU Lesser General Public License v2.1
4 stars 14 forks source link

Allow "future" pages on staging static website #124

Closed gctucker closed 5 months ago

gctucker commented 5 months ago

The staging static website https://static.staging.kernelci.org/ is deployed periodically with changes from pending PRs. Each page has a publication date which makes it only visible once that date is reached. For example:

---
date: 2023-12-04
title: "UX Analysis"
linkTitle: "UX Analysis"
author: Guillaume Tucker
description: >
  KernelCI User Experience Analysis
---

This is useful to be able to control when a new page or blog post becomes publicly visible without updating the website. However, for staging purposes it's necessary to verify that the page is rendering correctly before it is deployed in production. Previously, PRs would first have an earlier date set which would then get updated before merging for production deployment. Hugo however provides a feature to disable the filtering of "future" pages, so enabling it on staging would help with reviews while keeping the feature enabled for production:

  -F, --buildFuture                include content with publishdate in the future

So in principle, adding the option to the command line in the staging.kernelci.org script should enable it:

  ./docker-hugo -D -F -b https://static.staging.kernelci.org/