Skip to content

refactor(template): slim scaffolded README, clarify use_docs#323

Merged
ichoosetoaccept merged 2 commits into
mainfrom
dot-597-slim-readme
Jun 2, 2026
Merged

refactor(template): slim scaffolded README, clarify use_docs#323
ichoosetoaccept merged 2 commits into
mainfrom
dot-597-slim-readme

Conversation

@ichoosetoaccept
Copy link
Copy Markdown
Member

@ichoosetoaccept ichoosetoaccept commented Jun 2, 2026

Drop the generic "Branch protection" prose from the scaffolded README so a new
project starts with just its title, the pre-wired badge block, and description —
the part actually worth keeping. README.md is _skip_if_exists (user-owned after
the first copy), so this only affects freshly generated projects.

Reframes DOT-597: docs stays a simple on/off — the use_docs boolean already does
exactly that, so no three-way docs_mode and no migration. Clarify the use_docs
help text to spell out the full site toolchain it pulls in.

Closes DOT-597

Closes #

Note

Add use_community_health_files flag to decouple community health files from project visibility

  • Introduces a new use_community_health_files boolean in copier.yml, defaulting to true for public projects, that independently controls whether community health files (CODE_OF_CONDUCT, CONTRIBUTING, SECURITY, issue templates, etc.) are scaffolded.
  • Updates pyproject.toml.jinja and zensical.toml.jinja to gate Funding URL and doc site nav on use_community_health_files instead of project_visibility.
  • Clarifies use_docs help text to distinguish README-only docs from a full Zensical documentation site, as a step toward the three-way docs choice described in DOT-597.
  • Removes branch protection guidance sections from README.md.jinja to slim the scaffolded README.
  • Expands the test matrix in test_template_lint.py with a public-no-community variant and adds a new TestCommunityHealthFiles class in test_template.py.

🖇️ Linked Issues

Partially addresses DOT-597, which proposes a three-way use_docs choice (none/readme/site). This PR clarifies the use_docs help text and decouples community health files from visibility as groundwork for that change.

Macroscope summarized f8978bb.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 2, 2026

DOT-597

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Jun 2, 2026
@macroscopeapp
Copy link
Copy Markdown

macroscopeapp Bot commented Jun 2, 2026

Approvability

Verdict: Approved

Template refactor introducing a new use_community_health_files toggle with mechanical condition changes, sensible defaults, and comprehensive test coverage. Changes affect scaffolding behavior only, not runtime code.

You can customize Macroscope's approvability policy. Learn more.

Add a use_community_health_files question so OSS onboarding files
(CODE_OF_CONDUCT, CONTRIBUTING, SECURITY, issue/PR templates, FUNDING) and
their docs pages and nav entries are gated independently of project_visibility.

The default mirrors the previous behaviour ({{ project_visibility == 'public' }}),
so existing projects are unaffected on copier update. Licensing files (LICENSE,
docs/license.md) stay tied to project_visibility — a separate axis.

Refs DOT-595
Drop the generic "Branch protection" prose from the scaffolded README so a new
project starts with just its title, the pre-wired badge block, and description —
the part actually worth keeping. README.md is _skip_if_exists (user-owned after
the first copy), so this only affects freshly generated projects.

Reframes DOT-597: docs stays a simple on/off — the use_docs boolean already does
exactly that, so no three-way docs_mode and no migration. Clarify the use_docs
help text to spell out the full site toolchain it pulls in.

Refs DOT-597
@ichoosetoaccept ichoosetoaccept force-pushed the dot-595-community-health-toggle branch from bd10e87 to 5861832 Compare June 2, 2026 09:19
Base automatically changed from dot-595-community-health-toggle to main June 2, 2026 09:22
@macroscopeapp macroscopeapp Bot dismissed their stale review June 2, 2026 09:22

Dismissing prior approval to re-evaluate f8978bb

@ichoosetoaccept ichoosetoaccept merged commit 9b85230 into main Jun 2, 2026
2 checks passed
@ichoosetoaccept ichoosetoaccept deleted the dot-597-slim-readme branch June 2, 2026 09:24
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.

1 participant