1
0
mirror of https://codeberg.org/fediverse/fep.git synced 2026-08-09 05:56:10 +00:00
Files
fep/scripts
Timothy Cyrus 7eefb5cf57 escape html characters in clean_markdown (#868)
The site page for [FEP-61cf](https://fediverse.codeberg.page/fep/fep/61cf/) is currently bugged because of unescaped double quotes.
The YAML issue could be solved with something like `yaml.safe_dump`, but there's also an HTML issue (mkdocs doesn't escape quotes).
`clean_markdown` now uses the built-in `html.escape()` (`nh3.escape()` escapes too much)

Reviewed-on: https://codeberg.org/fediverse/fep/pulls/868
2026-06-27 17:33:50 +02:00
..
2025-11-01 08:40:20 +01:00
2025-11-04 19:52:48 +01:00
2023-07-16 07:43:02 +00:00
2025-11-01 08:40:20 +01:00
2025-11-01 08:40:20 +01:00
2026-03-23 17:39:17 +01:00
2026-03-23 17:39:17 +01:00

tools for fep facilitators

Please follow the steps in configuration before following "Merge a FEP".

Merge a FEP

Merge the Pull Request in https://codeberg.org/fediverse/fep/pulls and note the slug.

./scripts/create_issue.py $SLUG

creates the tracking issue and updates the FEP with the information. Then run

./scripts/create_readme.py

to update the table in README.md. You are now ready to commit the changes to the FEP (added trackingIssue to frontmatter) and README.md, added the new FEP.

Configuration

Add a file config.json to the directory scripts with content

{
  "repo": "fep",
  "owner": "fediverse",
  "token": "CODEBERG_API_TOKEN"
}

The API token can be obtained by visiting https://codeberg.org/user/settings/applications and generating one with scope write:issue.

Setup for running pytest

Ensure dependencies (use a virtualenv)

pip install pytest

Check validity

pytest scripts/