Submitting a blog post¶
Most of the work in a BeeWare blog post is the writing itself. Around it is a handful of steps that are easy to miss the first time through, like adding a new author, or dealing with a spell checker that doesn't recognize anyone's name. This guide walks through the whole process, from checking that every author exists to seeing the post go live.
The blog, "The Buzz", lives in the beeware.github.io repository. Each post is a Markdown file that starts with a block of front matter, which holds details like the title, date, and authors. When a pull request that adds a post is merged into main, the site rebuilds and the post shows up on the blog.
Where things live¶
These are the files and folders you'll work with. Most posts only involve the first one.
| Path | What it holds |
|---|---|
docs/en/news/posts/<year>/buzz/ |
Blog posts, one Markdown file per post. |
docs/en/news/.authors.yml |
Every author who has written for the site. |
docs/en/about/team/<username>.md |
Bios for Bee Team members, shown on the team page. |
docs/en/about/images/ |
Avatars for Bee Team members. |
scripts/new_post.py |
A script that creates a new post with the front matter filled in. |
docs/spelling_wordlist |
Extra words the spell checker accepts. |
Before you start¶
Bee Team members can write and submit a post without asking first. If you're not on the Bee Team, we ask that you get sign-off from the Bee Team before you start writing. That way, you won't put time into a post that doesn't end up fitting the blog. Get in touch with us on the BeeWare Discord server to propose your post.
There are two things you'll need on your computer:
- Python 3.12 or newer. The script that creates new posts won't run on anything older. (It fails with a
SyntaxErrorbefore it asks you anything, which is confusing if you're not expecting it.) aspell, which the spell check uses. On macOS, install it withbrew install aspell. On Ubuntu, usesudo apt-get install aspell aspell-en.
Next, clone the repository, then create a virtual environment and install the development requirements:
$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ python -m pip install --group dev
This sets up a Python environment that's separate from the rest of your system, and installs tox and pre-commit, which handle building, previewing, and checking the site.
Then create a branch for your post.
Step 1: Check that every author exists¶
Every author of a post needs an entry in docs/en/news/.authors.yml. It works like a guest list for the blog: if a name isn't on it, the build won't let the post through.
Each entry is keyed by the author's GitHub username, so search the file for each author's username. The match has to be exact, including capitalization. As far as the build is concerned, Oliver-Leigh and oliver-leigh are two different people.
If anyone is missing, head to Adding a new author and add them before going any further. If you skip this step, the site build fails with:
Couldn't find author '<username>'
That's the build telling you the post lists someone who isn't in .authors.yml yet.
Step 2: Create the post¶
There's a script that creates the post file for you, with the front matter already filled in. From the root of the repository, with your virtual environment active, run:
(venv) $ python scripts/new_post.py
It starts by asking what type of post you're adding. Choose 1 for a blog post. Then it asks for the post title, and the GitHub username of each author, separated by commas. Once you've answered, it creates a file in docs/en/news/posts/<year>/buzz/, named after the title.
For example, for a post titled "Hello from the Bee Team!", written by kattni and freakboy3742, it creates hello-from-the-bee-team.md containing:
---
title: Hello from the Bee Team!
date: 2026-11-30
authors:
- kattni
- freakboy3742
categories:
- Buzz
---
Add blog post introduction here. Leave newline between frontmatter and content.
<!-- more -->
Add blog post content here.
The part between the two --- lines is the front matter. Everything after it is the post itself, and the placeholder text is there for you to replace. If you'd rather not use the script, you can create the file by hand and use this as a template; the result is the same.
The same script creates event and resource posts as well. Choose 2 or 3 when it asks what type of post you're adding.
Step 3: Write the post¶
Front matter¶
The script fills in all four fields, but a couple of them are worth a second look before you start writing.
title: The post title. The URL comes from the title, not the filename, so "Hello from the Bee Team!" ends up athttps://beeware.org/news/buzz/2026/hello-from-the-bee-team/. Changing the title after the post is published changes its URL, and breaks any existing links to it.date: The script sets this to today. Change it to the date you expect the post to go live, inYYYY-MM-DDformat.authors: A list of GitHub usernames, each one matching an entry in.authors.yml.categories: Leave this asBuzz. TheEventsandResourcescategories are for posts the script creates with its event and resource options.
The date doesn't schedule the post
Setting a future date doesn't hold a post back. It goes live as soon as its pull request is merged, whatever its date says.
Leave a blank line between the closing --- of the front matter and the first paragraph.
Body¶
The text above <!-- more --> is the excerpt that appears on the blog page. Keep it to a paragraph or two, and make sure it makes sense without the rest of the post, because it's what people see before they decide to click through. Everything below <!-- more --> only appears on the post's own page.
A few more things to keep in mind as you write:
- Don't add a
#heading for the title. The title comes from the front matter, and the page displays it for you. Start your section headings at##, and capitalize only the first word. - Format code, commands, and package names as inline code.
- The documentation style guide applies to posts, too, and covers the rest.
Spelling¶
The spell checker runs on every post, and it will very likely flag something. This is normal. Names and GitHub usernames are the usual culprits, since the dictionary hasn't heard of most of us.
There are two ways to handle them:
- For a name that only shows up once, wrap it in
<nospell>tags, for example<nospell>Jaeden Mah</nospell>. - For a word that will come up again, such as a project name, add it to
docs/spelling_wordlist. The list is in alphabetical order, so add it where it belongs.
If the word is code, format it as inline code instead. The spell checker skips inline code, so it doesn't need to go in the word list.
Step 4: Preview the post¶
Before opening a pull request, it's worth seeing the post the way readers will. Start the live preview server:
(venv) $ tox -e docs-live
This builds the English version of the site, and serves it on your computer. Open http://127.0.0.1:8042/news/buzz/, and you should see your post in the list, with its title, date, authors, and excerpt. Then open the post itself and read it through.
The server reloads whenever you save a file. We tend to leave it running while writing, and check the page as we go.
Step 5: Run the checks¶
CI runs these checks on every pull request. Running them locally first saves a round trip:
(venv) $ tox -e pre-commit,docs-lint
This runs two sets of checks. pre-commit checks the Markdown formatting, and fixes some problems itself. If it changes a file, don't worry. Review what it changed, and run the command again; it should pass the second time. docs-lint runs the spell check described in Spelling.
Step 6: Open a pull request¶
Commit the post, along with any changes to .authors.yml, team bios, avatars, or docs/spelling_wordlist, and open a pull request against main. Fill in the pull request template, including the checklist. The "Check PR template" job fails if any of it is missing, so it's worth doing up front.
Read the Docs builds a preview of the whole site for every pull request, and the link shows up in the pull request's checks. It's a good way to give the post one last read, and to share it with reviewers who don't want to build the site themselves.
Once the pull request is approved and merged, the "Publish site" workflow rebuilds the site and deploys it to GitHub Pages, and your post is live!
Adding a new author¶
Author entries live in docs/en/news/.authors.yml, under the authors: key, and each one is keyed by the author's GitHub username. What goes in an entry depends on whether the author is on the Bee Team. Guest authors need a handful of fields. Bee Team members need a few more, plus an avatar and a bio, because the team page is built from the same file.
Guest authors¶
For anyone who isn't on the Bee Team, such as a Google Summer of Code student or a guest writer, add an entry at the end of the file. For example, to add Brutus the Bee (brutusthebee on GitHub) as a guest author, you would include:
brutusthebee:
name: Brutus the Bee
short_name: Brutus
description: Guest author
avatar: https://avatars.githubusercontent.com/u/20432436
url: https://github.com/brutusthebee
Here's what each field does:
name: The author's full name, as it should appear on posts. Required.short_name: The name used in running text. It's optional for guest authors, but required for anyone listed on an event post.description: A short line shown with the author's name, such as2018 Google Summer of Code StudentorCurtin Capstone Team. Required.avatar: The author's GitHub avatar, in the formhttps://avatars.githubusercontent.com/u/<id>, where<id>is the author's numeric GitHub user ID. You can find it by runninggh api users/<username> --jq .id, or by looking for theidfield athttps://api.github.com/users/<username>. Required.url: The author's GitHub profile. Optional.
Bee Team members¶
If you've recently joined the Bee Team, welcome! This section walks you through adding yourself. The team page is generated from .authors.yml, so you'll need a few more things than a guest author does.
-
An entry in
.authors.yml. Add it after the most recently joined team member. (The order in the file doesn't affect the team page, which sorts everyone by join date.)brutusthebee: name: Brutus the Bee short_name: Brutus pronoun: he description: Apiarist avatar: about/images/brutusthebee.png url: about/team/#brutusthebee join_date: 2026-11-30 mastodon: "@beeware@fosstodon.org" email: contact@beeware.orgnameandshort_name: Your full name, and the name used in running text. Team members need both.pronoun: One ofhe,she, orthey. Any other value, or leaving it out, silently leaves you off the team page. There's no error, so it's an easy one to miss.description: Your role on the team. New team members areApiarist.avatar:about/images/<username>.png.url:about/team/#<username>, which links to your entry on the team page.join_date: The date you joined the Bee Team, inYYYY-MM-DDformat. This is what puts you on the team page.mastodon: Optional. Your Mastodon handle in@user@instanceform. It needs to be in quotes, because an unquoted value can't start with@.email: Optional. If you include it, it's shown publicly on the team page.
-
An avatar. A square
.pngimage, saved asdocs/en/about/images/<username>.png. Most of the existing avatars are around 512 by 512 pixels, so aim for that. -
A bio. A Markdown file at
docs/en/about/team/<username>.md, with a paragraph or two about you, written in the third person, with no heading. Reading a few of the existing bios will give you a sense of the tone. The bio is spell-checked like any other page. If the file is missing, the team page breaks, so add it in the same pull request as your.authors.ymlentry.
When a team member steps back, change their description to Team Member Emeritus, and add an emeritus_date in YYYY-MM-DD format. They'll move to the "Emeritus team members" section of the team page.