This is a copy of the DSF’s internal documentation on the DSF President officer role
🚧 Super rough notes, this needs filling out 🚧
Formally the President leads the Board, though that responsibility is vague.
It’s a way to split up large multi-site Wagtail instances in a way that makes it easier for editors to find and manage the things that are relevant to them.
Over recent elections the data is readily available for
Elections | Total voters | Votes over first 7 days | Total votes | % 7 days | % total |
---|---|---|---|---|---|
6.x Steering Council | 400 | 215 | 215 | 20% | 54% |
2025 DSF Board | 374 | 76 | 204 | 20% | 55% |
2024 DSF Board | 287 | 93 | 132 | 32% | 46% |
5.x Steering Council | 268 | 74 | 74 | 28% | 28% |
2023 DSF Board | 244 | 58 | 91 | 24% | 37% |
# Example code to demonstrate how this works in practice | |
@publish_requires("date_published", block_schedule=True) | |
class BlogPage(Page): | |
# […] | |
date_published = models.DateField("Date article published", blank=True, null=True) |
Taken from
Perusal of readability with focus on web content understandability
Pawan Kumar Ojha, Abid Ismail, Kuppusamy Kundumani Srinivasan, Journal of King Saud University - Computer and Information Sciences, Volume 33, Issue 1, 2021, Pages 1-10, ISSN 1319-1578,
| Attributes | FRE | Dale-Chall readability | FKGL | Gunning Fog Index | SMOG | ARI | FRY | Forcast | PSK | SPACHE | CLI | BRI | LI× | Raygor Estimate Graph | Djoko Formula | New Fog Count | Pisarek’s Index | Fernandez Huerta Index | Kandal and Moles Index | Al-Heeti Grade Level | Lexile |
For wagtail-content-import. Uses mammoth to convert .docx
to HTML, rather than python-docx.
Settings:
WAGTAILCONTENTIMPORT_DOCX_PARSER = "content_import_parsers.DocxHTMLParser"
Mapper to a page’s body
StreamBlock:
Sample scripts to fetch recently-used repositories in bulk from GitHub and GitLab.
With basic filtering of specific repositories, and of specific files within repositories.
Use your local copy of the code with ag The Silver Searcher, ripgrep, or your IDE.
import { gql } from 'graphql-tag'; | |
// Generic `page` query, by site and URL path (unique per site). | |
export const pageQuery = gql` | |
query ($urlPath: String, $siteId: ID, $previewToken: String) { | |
site(id: $siteId) { | |
id | |
page(urlPath: $urlPath, token: $previewToken) { | |
...getBaseContentPageFields | |
} |