artefactual/atom-docs

Problem: Static page alert HTML styling element documentation is out of date (using BS5 alert classes)

开放

#360 创建于 2026年1月26日

 (0 条评论) (0 个反应) (0 位负责人)Python (32 个派生)auto 404
good first issueminor fixuser manual

仓库指标

星标
 (21 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Related docs

Affects any post-BS5 upgrade version, but most importantly, the current v2.10 documentation.

Issue noted

Specifically, the section that mentions how the BS5 alerts can be used.

Currently it says that using the inline element of style="alert" will work. In fact, all of these examples should use class instead, i.e.

Recommended fix

The examples should be as follows:

<div class="alert alert-primary">This alert uses your theme's primary color</div>

<div class="alert alert-secondary">This alert uses your theme's secondary color</div>

<div class="alert alert-success">This is a Success alert</div>

<div class="alert alert-info">This is an Info alert</div>

<div class="alert alert-warning">This is a Warning alert</div>

<div class="alert alert-danger">This is a Danger alert</div>

I wanted to include an updated screenshot of the results for you on this issue as well, but have since discovered that attempting to update a static page with any HTML content results in a 403 Forbidden error. I have confirmed that the above works on a client test site, but because they havea custom theme, the display of the alert-primary and alert-secondary colors are different than what would display in a default installation, and should therefore not be used for the public docs.

贡献者指南