Skip to content

Commit

Permalink
improve admonition checker (#254)
Browse files Browse the repository at this point in the history
* improve admonition checker

* cleanup
  • Loading branch information
malmans2 authored Oct 30, 2024
1 parent 722e534 commit 481d97f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"source": [
"## 📢 Quality assessment statements\n",
"\n",
"```{admonition} These are the key outcomes of this quality assessment\n",
"```{admonition} These are the key outcomes of this assessment\n",
":class: note\n",
"* The MERGED-UV v2000 provides a long-term, consistent record of total column ozone concentration and is therefore valuable for providing insight into the evolution of the ozone layer, although data prior to 2004 should be carefully evaluated.\n",
"* The MERGED-UV v2000 does not include measurements during the polar night at latitudes higher than 57.5° in both hemispheres and therefore cannot be used to describe the ozone climatology and trends over these regions.\n",
Expand Down Expand Up @@ -458,7 +458,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
4 changes: 3 additions & 1 deletion scripts/validate-headings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def validate_headers(path: Path) -> None:

if line.startswith("# "):
title_count += 1
elif line.startswith("```{admonition}"):
elif (
line == "```{admonition} These are the key outcomes of this assessment"
):
admonition_count += 1

if not path.name.startswith("template"):
Expand Down

0 comments on commit 481d97f

Please sign in to comment.