Skip to content

Tracking: fork-preview banner, dual Atom feeds, gh-pages deploy hardening #448

Description

@netravnen

Tracking issue for a set of docs-repo infra changes developed on a
fork (netravnen/peeringdb-docs). Originally proposed as a single
draft PR (#449), now split into two independently reviewable PRs:
#450 (content fixes) and #451 (fork-preview banner, Atom feeds,
site-URL resolution, gh-pages deploy hardening).

This repo's README asks that issues generally go to
peeringdb/peeringdb#issues -- filing here instead since this is a
tracking issue for an open PR against this repo specifically, not
a bug report or support request. A lightweight FYI is also posted at
peeringdb/peeringdb#2027 for visibility on that side.

The underlying motivation: running a dev/preview fork of this site
surfaced three problems worth fixing generally, not just working
around locally -- preview deploys are indistinguishable from
production in a browser, blog and release-notes readers only had one
combined feed to subscribe to, and gh-pages accumulated deploy
history with no guarantee it matched the branch that built it.

Summary of scope (breakdown: #448 (comment)):

  • A fork-preview banner (suppressed via PROD=TRUE) so non-production
    deploys of this site are never mistaken for docs.peeringdb.com.
  • Independent Atom feeds for the blog and for release notes
    (docs/blog/atom.xml, docs/release_notes/atom.xml), plus a shared
    site-URL resolution policy used across the banner, both feeds, and
    dynamic CNAME generation.
  • mkdocs gh-deploy --no-history, so the gh-pages branch is always
    a single fresh commit rather than accumulating deploy history.

See #450 and #451 for the full commit-by-commit breakdown and open
questions for reviewers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions