diff --git a/.gitignore b/.gitignore
index 4ec0b9e..da1b900 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
-/.continue/rules
-/.direnv
-/.envrc
-/.old
+.direnv
+.envrc
+.old
+public/
+__pycache__/
+.continue/
\ No newline at end of file
diff --git a/assets/logo.png b/assets/logo.png
deleted file mode 100644
index 2cfdc55..0000000
Binary files a/assets/logo.png and /dev/null differ
diff --git a/pages/contact.html b/build.py
similarity index 100%
rename from pages/contact.html
rename to build.py
diff --git a/scripts/news.js b/config.py
similarity index 100%
rename from scripts/news.js
rename to config.py
diff --git a/docs/design.md b/docs/design.md
deleted file mode 100644
index 497f721..0000000
--- a/docs/design.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# Alabama Progress - New Website
-
-## Design
-
-- Use the old site as inspiration: [https://alabamaprogress.org](https://alabamaprogress.org)
-- A basic layout that outlines information about the Alabama Progress community.
-- A navy and gold color scheme
-
-## Stack
-
-- HTML
-- CSS
-- Vanilla JavaScript (if possible)
-
-## Content
-
-### Logo
-
-
-
-### Tagline
-
-Progress begins with you.
-
-### Description
-
-Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current social and political issues, and also connecting, organizing, and collaborating on political actions of consequence primarily in our local communities.
-
-### Mission Statement
-
-Empower Alabamians to create positive change.
-
-Our mission is to empower Alabamians to create positive change and pursue forward progress by creating connections, building coalitions, encouraging active participation in processes both political and non-political, and dissolving the barrier between those who seek to represent and the represented.
-
-### Vision Statement
-
-A strong and victorious future of progress.
-
-Our vision is to see an Alabama working towards a strong and victorious future of progress for the people and places we call home.
-
-### Values
-
-- Pro Racial Justice
-- Pro Union
-- Pro Human Rights, including LGBTQ+ and Women’s Rights
-- Pro Marijuana Legalization
-- Pro Prison Reform
-- Pro Public Transit
-- Pro Environment
-- Pro Medicare Expansion
-- Pro Voting Reform
-- Pro Voting Access Expansion
-- Pro Direct Ballot Access
-- Pro Privacy
-- Pro Homesteader / Unhoused Rights
-- Anti Death Penalty
-- Anti Censorship / Government Overreach
-
-### Getting involved
-
-Ready to get involved?
-
-If you’re interested in becoming a part of our community, reach out and say hello. We’d love to have you.
-
-We run a private discord community for our members. You can request to join by filling out this application form below:
-
--> Have an application form that asks for the user's name, discord username, and a brief description of their interest in joining the community that will send an email to AlabamaProgressOrg@gmail.com or send a discord message to a discord server channel somehow, maybe through the custom discord bot.
-
-### Community
-
-#### Events
-
-This section should include a calendar of community events.
-
-### Blog
-
-This section should be a blog from the administrators including news, etc.
diff --git a/flake.nix b/flake.nix
index 4f267fb..a554cea 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,39 +1,117 @@
{
- description = "Simple vanilla web dev shell: VSCodium + HTML/JS extensions + Python http.server";
+ description = "Alabama Progress dev shell: Python static site builder + Discord bot + VSCodium";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
- outputs = { self, nixpkgs }:
+ outputs =
+ { self, nixpkgs }:
let
- systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
+ systems = [
+ "x86_64-linux"
+ "aarch64-linux"
+ "x86_64-darwin"
+ "aarch64-darwin"
+ ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
- devShells = forAllSystems (pkgs:
+ devShells = forAllSystems (
+ pkgs:
let
lib = pkgs.lib;
+ # Python with everything the builder and the bot will need.
+ # Declared here so the dev shell and (later) the server module can share it.
+ python = pkgs.python3.withPackages (
+ ps: with ps; [
+ jinja2 # templates
+ mistune # Markdown -> HTML for news posts
+ python-frontmatter # parse front matter in .md files
+ pyyaml # config / front matter
+ nh3 # HTML sanitizer for rendered post bodies
+ pillow # resize/convert uploaded images to WebP
+ python-slugify # safe slugs from titles
+ discordpy # the bot
+ watchfiles # rebuild on change during development
+ pytest # tests for the builder / slugging / validation
+ ]
+ );
+
# Extensions as attribute paths under pkgs.vscode-extensions.
# Any that don't exist in your nixpkgs revision are silently skipped
# instead of breaking the whole shell.
wanted = [
- [ "esbenp" "prettier-vscode" ] # formatter
- [ "dbaeumer" "vscode-eslint" ] # JS linting
- [ "ritwickdey" "liveserver" ] # live reload server
- [ "formulahendry" "auto-rename-tag" ] # rename paired HTML tags
- [ "formulahendry" "auto-close-tag" ] # auto-close HTML tags
- [ "christian-kohler" "path-intellisense" ] # file path autocomplete
- [ "usernamehw" "errorlens" ] # inline error messages
- [ "editorconfig" "editorconfig" ] # .editorconfig support
- [ "bradlc" "vscode-tailwindcss" ] # harmless if unused
- [ "ms-python" "python" ] # Python support
- [ "continue" "continue" ] # local line-completion
+ [
+ "esbenp"
+ "prettier-vscode"
+ ] # formatter (HTML/CSS/JS/MD)
+ [
+ "dbaeumer"
+ "vscode-eslint"
+ ] # JS linting (join form, etc.)
+ [
+ "ritwickdey"
+ "liveserver"
+ ] # live reload for public/
+ [
+ "formulahendry"
+ "auto-rename-tag"
+ ] # rename paired HTML tags
+ [
+ "formulahendry"
+ "auto-close-tag"
+ ] # auto-close HTML tags
+ [
+ "christian-kohler"
+ "path-intellisense"
+ ] # file path autocomplete
+ [
+ "usernamehw"
+ "errorlens"
+ ] # inline error messages
+ [
+ "editorconfig"
+ "editorconfig"
+ ] # .editorconfig support
+ [
+ "ms-python"
+ "python"
+ ] # Python support
+ [
+ "charliermarsh"
+ "ruff"
+ ] # Python lint + format
+ [
+ "samuelcolvin"
+ "jinjahtml"
+ ] # Jinja2 syntax highlighting
+ [
+ "jnoortheen"
+ "nix-ide"
+ ] # Nix syntax/LSP
+ [
+ "mkhl"
+ "direnv"
+ ] # auto-load the flake env (if you use direnv)
+ [
+ "redhat"
+ "vscode-yaml"
+ ] # YAML (front matter, configs)
+ [
+ "yzhang"
+ "markdown-all-in-one"
+ ] # Markdown preview/shortcuts for posts
+ [
+ "continue"
+ "continue"
+ ] # local line-completion
];
- extensions = lib.filter (e: e != null)
- (map (path: lib.attrByPath path null pkgs.vscode-extensions) wanted);
+ extensions = lib.filter (e: e != null) (
+ map (path: lib.attrByPath path null pkgs.vscode-extensions) wanted
+ );
codium = pkgs.vscode-with-extensions.override {
vscode = pkgs.vscodium;
@@ -42,27 +120,53 @@
in
{
default = pkgs.mkShell {
- name = "web-dev";
+ name = "alabama-progress";
packages = [
codium
- pkgs.python3 # `python -m http.server` for static serving
- pkgs.nodejs # optional: npm, eslint, prettier CLIs, etc.
+ python
+ pkgs.ruff # CLI for lint/format
+ pkgs.djlint # lint/format Jinja + HTML templates
+ pkgs.lychee # link checker: catches broken links in public/ (good for SEO)
+ pkgs.prettier
+ pkgs.git
+ pkgs.nixpkgs-fmt
];
shellHook = ''
- # Serve current directory: `serve` or `serve 3000`
- serve() {
- local port="''${1:-8000}"
- echo "Serving $(pwd) at http://localhost:$port"
- python3 -m http.server "$port"
+ # Build the site (expects build.py in the current directory)
+ build() {
+ python build.py "$@"
}
- echo "Web dev shell ready."
- echo " codium . - open the editor in this directory"
- echo " serve [p] - start a static server (default port 8000)"
+ # Build, then serve public/ at http://localhost:8000 (or `serve 3000`)
+ serve() {
+ local port="''${1:-8000}"
+ python build.py || return 1
+ echo "Serving public/ at http://localhost:$port"
+ python -m http.server "$port" --directory public
+ }
+
+ # Rebuild automatically whenever templates, pages, static files, or posts change.
+ # Run `serve` in one terminal and `watch` in another.
+ watch() {
+ watchfiles "python build.py" templates pages static ../content
+ }
+
+ # Check public/ for broken internal links
+ linkcheck() {
+ lychee --offline --no-progress public
+ }
+
+ echo "Alabama Progress dev shell ready."
+ echo " codium . - open the editor in this directory"
+ echo " build - generate public/"
+ echo " serve [p] - build, then serve public/ (default port 8000)"
+ echo " watch - rebuild on file changes"
+ echo " linkcheck - scan public/ for broken links"
'';
};
- });
+ }
+ );
};
}
diff --git a/index.html b/index.html
deleted file mode 100644
index 60e6ce8..0000000
--- a/index.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/about.html b/pages/about.html
index 81b7990..e69de29 100644
--- a/pages/about.html
+++ b/pages/about.html
@@ -1,57 +0,0 @@
-
-
About Alabama Progress
-
Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current
- social and political issues, and also connecting, organizing, and collaborating on political actions of consequence
- primarily in our local communities.
-
-
-
-
What drives our work
-
-
-
Our mission
-
Empower Alabamians to create positive change.
-
Our mission is to empower Alabamians to create positive change and pursue forward progress by creating
- connections, building coalitions, encouraging active participation in processes both political and
- non-political,
- and dissolving the barrier between those who seek to represent and the represented.
-
-
-
-
Our vision
-
A strong and victorious future of progress.
-
Our vision is to see an Alabama working towards a strong and victorious future of progress for the people and
- places we call home.
-
-
-
-
-
-
Our values
-
-
Pro Racial Justice
-
Pro Union
-
Pro Human Rights, including LGBTQ+ and Women’s Rights
-
\ No newline at end of file
diff --git a/pages/community.html b/pages/community.html
deleted file mode 100644
index e753729..0000000
--- a/pages/community.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
Community
-
Members talk, plan, and organize together in our private Discord. Want in? Request to
- join.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/home.html b/pages/home.html
deleted file mode 100644
index c764d6a..0000000
--- a/pages/home.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
Progress begins with you.
-
Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current
- social and political issues, and also connecting, organizing, and collaborating on political actions of
- consequence
- primarily in our local communities.
-
\ No newline at end of file
diff --git a/pages/index.html b/pages/index.html
new file mode 100644
index 0000000..e69de29
diff --git a/pages/join.html b/pages/join.html
index e258fb0..e69de29 100644
--- a/pages/join.html
+++ b/pages/join.html
@@ -1,86 +0,0 @@
-
Ready to get involved?
-
- If you're interested in becoming a part of our community, reach out and say
- hello. We'd love to have you.
-
-
- We run a private Discord community for our members. You can request to join by
- filling out the application below. View our Privacy Policy for information on how your data is
- handled when submitting this form.
-
\ No newline at end of file
diff --git a/pages/news.html b/pages/news.html
deleted file mode 100644
index f20d89a..0000000
--- a/pages/news.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
News
-
News and updates from the Alabama Progress administrators.
-
-
-
Loading posts…
-
-
-
\ No newline at end of file
diff --git a/pages/privacy-policy.html b/pages/privacy-policy.html
deleted file mode 100644
index eb88fd3..0000000
--- a/pages/privacy-policy.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
Privacy Policy
-
Alabama Progress respects your privacy and collects the bare minimum amount of information needed to run
- our community.
-
Last updated: November 20, 2026
-
-
Browsing and Cookies
-
No personal information is collected simply by visiting or browsing this website. This site does not use cookies,
- tracking pixels, behavioral analytics, or advertising trackers.
-
-
Information Collected via the Join Form
-
Personal information is only collected if you voluntarily choose to submit the community join request form. The form
- collects the following details:
-
-
Discord username (required)
-
Name (optional)
-
Alabama voter registration status (required)
-
Reason for wanting to join (required)
-
Referrals from existing server members (optional)
-
Political organization memberships (optional)
-
Social media or personal links (optional)
-
-
-
How Information Is Used and Retained
-
Information submitted through the join form is transmitted solely to the administrators of the Alabama Progress
- Discord server for the purpose of reviewing and approving your membership request. Submitted form data is not stored
- in a database or retained after your application is reviewed.
-
-
Third-Party Sharing
-
Alabama Progress does not sell, rent, trade, or share any submitted information with third parties, data brokers, or
- outside organizations.
-
-
Contact
-
If you have any questions about this privacy policy or how join requests are handled, contact AlabamaProgressOrg@gmail.com.