Skip to content

Update README.md and docs homepage#648

Open
drbenvincent wants to merge 10 commits intomainfrom
facelift
Open

Update README.md and docs homepage#648
drbenvincent wants to merge 10 commits intomainfrom
facelift

Conversation

@drbenvincent
Copy link
Collaborator

@drbenvincent drbenvincent commented Jan 11, 2026

Summary

This PR updates the README and documentation homepage to better communicate CausalPy's value proposition as a research-grade causal inference library for quasi-experimental designs.

#637 will be tackled separately

Changes

README.md

  • New value block: Replaced one-line description with clear value proposition emphasizing research-grade workflows, Bayesian-first estimation, and decision-ready outputs
  • Added "Non-goals" statement: Explicitly states CausalPy is not a workflow orchestration platform
  • Added "When CausalPy is a good fit / not a fit" sections: Clear guidance for users
  • Restructured Features → "Methods and Workflows": Added decision context mapping table before the detailed methods table
  • Added "Diagnostics-first by design" section: Highlights actual capabilities (effect_summary, HDI, ROPE, tail probabilities)
  • Added "Consulting" section: Specific PyMC Labs offerings (Causal Design Reviews, implementation engagements, training)
  • Added "Citing CausalPy" section: BibTeX citation with placeholder for future Zenodo DOI
  • Improved Quickstart: Added interpretive text explaining what result.plot() and result.summary() show

docs/source/index.md

  • Now includes content from README.md via MyST {include} directive to avoid redundancy and drift
  • Badges displayed at top (same as README)
  • Docs-specific customizations preserved:
    • Conda install option
    • Embedded YouTube video (instead of thumbnail)
    • MyST toctree for navigation
  • Fixed inconsistent PyMC Labs URLs (was mixing .io and .com)
  • Removed duplicate PyMC Labs logo from bottom of page

Badge improvements (both files)

New badges added:

  • License (Apache 2.0) - trust signal
  • conda-forge - scientific Python ecosystem membership
  • pre-commit enabled - code quality practices
  • Total downloads (pepy.tech) - cumulative adoption metric

Badge organization:
Badges are now grouped into three logical rows for visual clarity:

  1. Install & Trust: PyPI version, conda-forge, License
  2. Quality & Best Practices: Build Status, Ruff, pre-commit, Interrogate, codecov
  3. Community & Docs: GitHub stars, Read the Docs, Downloads (total), Downloads (monthly)

Style consistency:

  • GitHub stars badge changed from social to flat style to match other badges

Motivation

Per the positioning spec, this update aims to:

  1. Reposition CausalPy as a research-grade causal inference engine
  2. Improve clarity for decision-making contexts while staying trust-forward
  3. Increase probability of consulting inbound via clearer CTAs
  4. Explicitly define non-goals to avoid scope creep
  5. Build trust through comprehensive, well-organized badges

Testing

  • Pre-commit checks pass
  • Sphinx docs build successfully (make html)

Expanded the README with clearer positioning, detailed method tables, diagnostics, consulting, and citation instructions. Updated docs index to include badges, improved quickstart, and synchronized feature/method descriptions with the README for consistency and easier onboarding.
@drbenvincent drbenvincent added the documentation Improvements or additions to documentation label Jan 11, 2026
@drbenvincent drbenvincent changed the title Reposition CausalPy as research-grade causal inference library Update README.md and docs homepage Jan 11, 2026
@codecov
Copy link

codecov bot commented Jan 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.35%. Comparing base (156d3f7) to head (5fb242f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #648   +/-   ##
=======================================
  Coverage   94.35%   94.35%           
=======================================
  Files          44       44           
  Lines        7517     7517           
  Branches      456      456           
=======================================
  Hits         7093     7093           
  Misses        262      262           
  Partials      162      162           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Added new badges for PyPI, conda-forge, license, pre-commit, and downloads. Improved badge organization and updated styles for better visibility in both README.md and docs/source/index.md.
Changed the conda-forge badge in README.md and docs index to use a green color for improved visibility and consistency.
Changed the Interrogate badge in README.md to use a raw GitHub URL and added conda installation instructions. Simplified docs/source/index.md by removing duplicate badges, installation, and support sections, relying more on README.md content.
Revised the descriptions of decision contexts in the README for improved clarity and specificity regarding causal inference methods.
@@ -4,26 +4,47 @@

----
Copy link
Contributor

Choose a reason for hiding this comment

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

I might move this after the badges or use a commented out indicator to signal the start of what gets added to the website homepage. Another option could be to make the logo smaller.

My main concern is that I think the first thing that gets the visitor attention on the website homepage should be the "tagline" for the project. In the current homepage (which by itself is far from ideal but a slightly different topic) I think this kind of happens already

imatge

in 1 second you get the "causal inference for quasi-experiments" take away. With the badges I am not sure what 1 second take away a visitor would get:

imatge

Disclaimer, as a general rule, I do like markdown badges but I think they are something that should be limited to the github readme. I don't think the more general public who will get to the website gets much useful information from them. Therefore my suggestion is to remove them from the homepage, which I think is simpler implementation wise too, but relocating them to allow for the tagline to be a 1 second take away would also be perfectly fine.

drbenvincent and others added 2 commits February 9, 2026 15:01
Badges are now excluded from the docs homepage by using a <!-- docs-start -->
comment marker in README.md. The website include skips past the badges so the
first thing visitors see is the project tagline. Also reduced logo width to 40%.

Co-authored-by: Cursor <cursoragent@cursor.com>
@drbenvincent
Copy link
Collaborator Author

Addressed the badge/tagline feedback:

  • Badges are now GitHub-only. Added a <!-- docs-start --> marker in README.md between the badges and the main content. The docs index.md now includes from that marker, so badges are skipped on the website homepage.
  • Restored the tagline. The heading is now # Causal Inference for Quasi-Experiments, giving visitors the 1-second takeaway immediately under the logo.
  • Reduced logo width to 40% in both README and docs for better proportions.

The single-source-of-truth approach is preserved — the website still pulls its content from README.md, just starting after the badges.

@read-the-docs-community
Copy link

read-the-docs-community bot commented Feb 9, 2026

Documentation build overview

📚 causalpy | 🛠️ Build #31334671 | 📁 Comparing 5fb242f against latest (156d3f7)


🔍 Preview build

Show files changed (2 files in total): 📝 2 modified | ➕ 0 added | ➖ 0 deleted
File Status
404.html 📝 modified
index.html 📝 modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants