Skip to content

Feat/centralize config#99

Merged
aboydnw merged 31 commits intomainfrom
feat/librarify
Apr 3, 2026
Merged

Feat/centralize config#99
aboydnw merged 31 commits intomainfrom
feat/librarify

Conversation

@aboydnw
Copy link
Copy Markdown
Member

@aboydnw aboydnw commented Apr 2, 2026

This centralizes all the necessary config to config.toml and scrubs all DevSeed references from variable names or hardcoded into text. It should result in no visible change on the frontend, but prepares us to be able to clone the repo for a NASA-specific version without DevSeed's fingerprints all over it.

config.toml should include:

  • Org/chart metadata like name and title
  • Branding info like color scheme
  • list of repositories
  • list of contributors
  • Plausible analytics id

aboydnw and others added 18 commits April 2, 2026 01:28
Add branding (colors, logo) and meta (OG tags, analytics) config sections.
Add core_contributors property with devseed fallback for backward compat.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Also fixes a pre-existing ruff E501 line-length violation in config.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add pa- prefix and .js suffix to the analytics script URL to match
the original format.
…nalytics_id to top level

Remove MetaConfig model and [meta] TOML section. Move analytics_id to
top-level config. Remove unused logo field from BrandingConfig. OG/social
sharing tags deferred to #98.
Make it explicit that this field is for Plausible analytics. Users with
other analytics tools can customize the template directly.
Only used in an invisible meta tag. Not worth configuring.
- Remove devseed fallback from core_contributors property
- Remove devseed_contributors backward-compat alias
- Rename CSS class legend-swatch--devseed to --org
- Replace DevSeed in comments, test fixtures, and fallback strings
- Clear Development Seed fallback in main.ts
Remove accidentally committed firzaariany.json link file and restore
links.csv to its state on main.
Move title, theme-color, and Plausible analytics injection to main.ts
at runtime. Removes the Jinja2 dependency and the dual-entrypoint
problem where both index.html and index.html.j2 needed to be managed.
index.html is now the single source of truth again.
@aboydnw aboydnw requested a review from gadomski as a code owner April 2, 2026 02:35
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

LMK if any of the code-based comments are confusing and we can chat through 'em

@aboydnw
Copy link
Copy Markdown
Member Author

aboydnw commented Apr 2, 2026

@gadomski let me know if I misunderstood your comments or implemented them incorrectly. I also added the environment variable for Plausible so that should work when this deploys.

@aboydnw aboydnw requested a review from gadomski April 2, 2026 20:55
Copy link
Copy Markdown
Collaborator

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

I took the liberty of adding the environment variable to the github actions ... I see that it's a secret right now, can you switch PLAUSIBLE_ID to be a variable instead? It's not secret, b/c it's embedded in the website when we deploy it.

@aboydnw
Copy link
Copy Markdown
Member Author

aboydnw commented Apr 3, 2026

ah whoops. totally read secrets instead. updated!

@aboydnw aboydnw requested a review from gadomski April 3, 2026 19:55
Copy link
Copy Markdown
Collaborator

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

LGTM!

@aboydnw aboydnw merged commit 12b06a5 into main Apr 3, 2026
3 checks passed
@aboydnw aboydnw deleted the feat/librarify branch April 3, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centralize all config to config.toml Generalize variable names from devseed to org or core

2 participants