Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions _layouts/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ <h3>Quick link</h3>
<ul>
<li><a href="/about.html">About Us</a></li>
<li><a href="/events.html">Events</a></li>
<li><a href="/support.html">Partnerships</a></li>
<li><a href="/about.html#join-the-community">Community</a></li>
<li><a href="/support.html">Donate</a></li>
<li><a href="/corporate-sponsorships.html">Corporate Sponsorships</a></li>
<li><a href="/support.html">Support</a></li>
<li><a href="/code-of-conduct.html">Code of Conduct</a></li>
<li><a href="/students.html">BPD Students Ambassador Program</a></li>
</ul>
</div>
<!-- Contact Us Section -->
Expand Down
28 changes: 17 additions & 11 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pathlib
import pluggy

from render_engine import Site, Page, Collection, Blog
from render_engine import Site, Page, Collection, Blog, RedirectPage
from render_engine_markdown import MarkdownPageParser

from render_engine_clean_urls import CleanURLsPlugin
Expand Down Expand Up @@ -52,6 +52,7 @@ def pre_build_site():
app = Site()
app.template_path = "_layouts"
app.static_paths.add("assets")
app.site_vars["SITE_TITLE"] = "Black Python Devs"
app.site_vars["locales"] = ["en"]
app.site_vars["navigation"] = navigation
app.site_vars["DATETIME_FORMAT"] = "%d %b %Y"
Expand All @@ -71,28 +72,33 @@ class Index(Page):


@app.page
class Students(Page):
content_path = "students.html"
class Students(RedirectPage):
slug = "students"
redirect_url = "/student-ambassador-program.html"


@app.page
class Community(Page):
content_path = "community.html"
class Community(RedirectPage):
slug = "community"
redirect_url = "/about.html#join-the-community"


@app.page
class Partnerships(Page):
content_path = "partnerships.html"
class Partnerships(RedirectPage):
slug = "partnerships"
redirect_url = "/support.html#partnerships"


@app.page
class Leadership(Page):
content_path = "leadership.html"
class Leadership(RedirectPage):
slug = "leadership"
redirect_url = "/bpd-events/black-python-devs-leadership-summit-2026-ohio.html"


@app.page
class Pycon(Page):
content_path = "pycon.html"
class Pycon(RedirectPage):
slug = "pycon"
redirect_url = "/blog/black-python-devs-at-pycon-us-2026.html"


@app.page
Expand Down
11 changes: 0 additions & 11 deletions community.html

This file was deleted.

11 changes: 0 additions & 11 deletions leadership.html

This file was deleted.

14 changes: 0 additions & 14 deletions partnerships.html

This file was deleted.

11 changes: 0 additions & 11 deletions pycon.html

This file was deleted.

21 changes: 15 additions & 6 deletions pyproject.toml
Copy link
Copy Markdown
Member

@dragid10 dragid10 May 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Medium Care Amount: I'm curious as to why we're pinning explicit versions. I mean I know that its definitely the most reproducible, but I feel like most of these could benefit from allowing patch versions to pick up vulnerability fixes in the future

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explicit versions is just based on historical presedent as render-engine ran into parser errors because we didn't explicitly pin our versions. FMI: render-engine/render-engine-markdown#9 (review)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes perfect sense. I do think a good medium path would still be adding constraints that aren't exact version pins, but that is a future consideration!

Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,26 @@ version = "0.1.0"
description = "Black Python Devs community website"
requires-python = ">=3.13"
dependencies = [
"render-engine[cli]>=2026.3.4a2",
"render-engine-clean-urls",
"pyyaml",
"render-engine[cli]>=2026.5.2a1",
"render-engine-clean-urls==0.1.0",
"pyyaml==6.0.3",
Copy link
Copy Markdown
Member

@dragid10 dragid10 May 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low Care Amount: Is pyyaml explicitly imported anywhere? If not, I'd probably not include it in the top-level packages. But if we are including it solve a CVE, then we could do pyyaml~=6.0 to always allow for patch version pickups.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. IIRC we run deptry so all the items that are in the dependencies are directly called in the app.

"folium>=0.20.0",
"click",
"pycountry",
"click==8.3.1",
"pycountry==26.2.16",
"python-slugify>=8.0.4",

]

[dependency-groups]
dev = ["pre-commit", "typer", "rich", "python-frontmatter", "pytest", "ruff"]
dev = [
"pin-versions==2026.3.6",
"pre-commit==4.6.0",
"typer==0.25.1",
"rich==14.3.3",
"python-frontmatter==1.1.0",
"pytest==9.0.3",
"ruff==0.15.13",
]

[tool.render-engine.cli]
module = "app"
Expand Down
11 changes: 0 additions & 11 deletions students.html

This file was deleted.

Loading
Loading