Skip to content

✨ feat(section): Add section operations and examples#1283

Merged
harehare merged 1 commit intomainfrom
feat/section-ops-examples
Feb 16, 2026
Merged

✨ feat(section): Add section operations and examples#1283
harehare merged 1 commit intomainfrom
feat/section-ops-examples

Conversation

@harehare
Copy link
Copy Markdown
Owner

  • Add function for extracting sections by title
  • Add section operation examples to docs and Playground
  • Fix Homebrew install example

- Add  function for extracting sections by title
- Add section operation examples to docs and Playground
- Fix Homebrew install example
Copilot AI review requested due to automatic review settings February 16, 2026 13:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds section extraction functionality to the mq language by introducing a new section() function, adds comprehensive documentation and playground examples for section operations, and fixes the Homebrew installation command to use the simpler brew install mq instead of brew install harehare/tap/mq.

Changes:

  • Add section() function to extract sections by title pattern
  • Add flatten() function and deprecate collect() in section.mq
  • Add four new section operation examples to playground and documentation
  • Update Homebrew install command to remove tap prefix

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
crates/mq-lang/modules/section.mq Adds section() function for filtering sections by title, adds flatten() function, and deprecates collect()
docs/books/src/start/example.md Adds four section operation examples with detailed explanations
packages/mq-playground/src/examples.ts Adds corresponding playground examples for section operations
docs/books/src/start/install.md Simplifies Homebrew install command

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 16, 2026

Merging this PR will not alter performance

✅ 29 untouched benchmarks


Comparing feat/section-ops-examples (1e33286) with main (8fa735f)

Open in CodSpeed

@harehare harehare merged commit d799ed9 into main Feb 16, 2026
13 checks passed
@harehare harehare deleted the feat/section-ops-examples branch February 16, 2026 13:26
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.

2 participants