Skip to content

docs: Condense locals documentation by 60% for clarity#2000

Merged
aknysh merged 1 commit intoaknysh/fix-locals-5from
osterman/docs-cleanup-1994
Jan 21, 2026
Merged

docs: Condense locals documentation by 60% for clarity#2000
aknysh merged 1 commit intoaknysh/fix-locals-5from
osterman/docs-cleanup-1994

Conversation

@osterman
Copy link
Copy Markdown
Member

@osterman osterman commented Jan 20, 2026

what

  • Reduced website/docs/stacks/locals.mdx from 827 to 331 lines (60% reduction)
  • Reduced examples/locals/README.md from 155 to 35 lines (77% reduction)
  • Consolidated redundant examples and moved verbose content to <details> blocks

why

  • Locals is a minor feature with key gotchas—documentation was disproportionately verbose
  • Multiple sections repeated the same concepts (file-scoped isolation explained 3 times)
  • README was 5x longer than typical example READMEs

references

- Reduced stacks/locals.mdx from 827 to 331 lines (60% cut)
- Consolidated Configuration Scopes (3 examples → 1 comprehensive example)
- Moved Processing Order diagram to <details> block ("How does processing work?")
- Deleted redundant "Complete Example" section, rely on "Try It" embed instead
- Removed duplicate explanations of file-scoped isolation across sections
- Moved debugging output examples to <details> block
- Condensed error handling section and best practices
- Removed "Scope Merging", "Limitations", "When to Use Each" sections as redundant

- Reduced examples/locals/README.md from 155 to 35 lines (77% cut)
- Aligned with standard example README pattern (demo-stacks/README.md style)
- Removed 60-line "Example Output" section
- Removed 40-line "Key Concepts" section duplicating main docs
- Fixed broken documentation link (/core-concepts/stacks/locals → /stacks/locals)

Locals is a minor feature with key gotchas. Documentation now appropriately sized.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@osterman osterman requested review from a team as code owners January 20, 2026 23:57
@github-actions github-actions bot added the size/l Large size PR label Jan 20, 2026
@mergify mergify bot added the stacked Stacked label Jan 20, 2026
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.94%. Comparing base (763f5eb) to head (095cc50).
⚠️ Report is 5 commits behind head on aknysh/fix-locals-5.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           aknysh/fix-locals-5    #2000      +/-   ##
=======================================================
- Coverage                74.97%   74.94%   -0.03%     
=======================================================
  Files                      775      775              
  Lines                    71427    71456      +29     
=======================================================
+ Hits                     53550    53554       +4     
- Misses                   14393    14416      +23     
- Partials                  3484     3486       +2     
Flag Coverage Δ
unittests 74.94% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 7 files with indirect coverage changes

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

@aknysh aknysh merged commit a522372 into aknysh/fix-locals-5 Jan 21, 2026
54 of 56 checks passed
@aknysh aknysh deleted the osterman/docs-cleanup-1994 branch January 21, 2026 00:45
aknysh added a commit that referenced this pull request Jan 21, 2026
…le. Add `locals` design patterns. Add Atmos YAML functions support in `locals` (#1994)

* fix locals

* fix locals

* [autofix.ci] apply automated fixes

* address comments

* improve docs, add example for `locals`

* [autofix.ci] apply automated fixes

* address comments

* update docs

* address comments, update docs, add tests for locals example, add locals design patterns, add blog post

* address comments, update docs, add tests

* address comments, update docs, add tests

* address comments, update docs, add tests

* address comments, update docs, add tests

* address comments

* update docs

* update docs

* fix: Align diagram with numbered steps and add missing periods

- Update mermaid diagram to show template processing as step 4 after merge
- Remove step 3 from per-file boxes (templates processed after merge)
- Add periods to list items in troubleshooting section for consistency

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* update docs

* update docs

* update docs

* update docs and example

* update docs and example

* locals with Atmos YAML functions, update docs, add tests, add blog posts

* update roadmap

* address comments, add tests

* update docs

* docs: Condense locals documentation by 60% for clarity (#2000)

- Reduced stacks/locals.mdx from 827 to 331 lines (60% cut)
- Consolidated Configuration Scopes (3 examples → 1 comprehensive example)
- Moved Processing Order diagram to <details> block ("How does processing work?")
- Deleted redundant "Complete Example" section, rely on "Try It" embed instead
- Removed duplicate explanations of file-scoped isolation across sections
- Moved debugging output examples to <details> block
- Condensed error handling section and best practices
- Removed "Scope Merging", "Limitations", "When to Use Each" sections as redundant

- Reduced examples/locals/README.md from 155 to 35 lines (77% cut)
- Aligned with standard example README pattern (demo-stacks/README.md style)
- Removed 60-line "Example Output" section
- Removed 40-line "Key Concepts" section duplicating main docs
- Fixed broken documentation link (/core-concepts/stacks/locals → /stacks/locals)

Locals is a minor feature with key gotchas. Documentation now appropriately sized.

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>

* update tests

* address comments

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <erik@cloudposse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l Large size PR stacked Stacked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants