Skip to content

Add Decap CMS for content management#280

Open
saqibmanan wants to merge 5 commits intomainfrom
decap-cms
Open

Add Decap CMS for content management#280
saqibmanan wants to merge 5 commits intomainfrom
decap-cms

Conversation

@saqibmanan
Copy link
Contributor

@saqibmanan saqibmanan commented Feb 26, 2026

What's changed

  • Adds Decap CMS admin UI at /admin/index.html for managing website content through a UI without editing markdown files directly
  • Configures collections for team, alumni, work, events, job openings, values, and project partners
  • Fixes CI workflow to use --legacy-peer-deps for npm install
  • Updates README with full CMS setup, access control, and local development instructions

How to test locally

  1. npm install --legacy-peer-deps
  2. npm start → Gatsby dev server at http://localhost:8000
  3. npx decap-server → proxy server on port 8081 (separate terminal)
  4. Open http://localhost:8000/admin/index.html and click Login

Before merging

  • Create a GitHub OAuth App (see README for steps)
    • Homepage URL: https://civicdatalab.in
    • Callback URL: https://civicdatalab.in/admin/
  • Replace YOUR_GITHUB_OAUTH_APP_CLIENT_ID in static/admin/config.yml with the real Client ID

Access control

Anyone who needs CMS access must have Write access to this repo on GitHub. No additional CMS configuration needed.

The screen's would look like :

image image image image

Saqib added 4 commits February 26, 2026 08:19
- Add static/admin/index.html and config.yml for Decap CMS
- Configure collections for team, alumni, work, events, job openings, values, and project partners
- Enable local_backend for local development via decap-server proxy
- Add react-is dependency required by styled-components
- Remove local_backend from config.yml (dev-only setting)
- Fix CI workflow to use --legacy-peer-deps for npm install
@saqibmanan saqibmanan self-assigned this Feb 26, 2026
@saqibmanan saqibmanan added the enhancement New feature or request label Feb 26, 2026
- Add branded splash screen with CDL logo that fades out on load
- Replace Decap login logo with CDL logo via logo_url in config.yml
- Hide Decap footer SVG attribution using MutationObserver
- Document admin portal branding in README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant