Skip to content

docs(site): document typed task helpers in ir.mdx and extending.mdx#1069

Merged
jamesadevine merged 1 commit into
mainfrom
docs/task-helpers-reference-08ca2f1a35680b5e
Jun 17, 2026
Merged

docs(site): document typed task helpers in ir.mdx and extending.mdx#1069
jamesadevine merged 1 commit into
mainfrom
docs/task-helpers-reference-08ca2f1a35680b5e

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Changes

  • site/src/content/docs/reference/ir.mdx
    • Added tasks.rs to the Module Layout section (with anchor link to the new section)
    • Added new "Typed task helpers" section (after "Steps") covering:
      • Helper→task table: 9 entries with required parameter description
      • Concrete multi-step usage example (dot_net_core_cli_step, publish_test_results_step, powershell_inline_step)
      • Contributor guidance: how to add a new helper (4-step checklist)
      • Rationale: why raw Step::RawYaml is wrong for typed steps
  • site/src/content/docs/guides/extending.mdx
    • Rewrote "Task steps" subsection to lead with typed helpers + cross-link to the IR reference
    • Kept TaskStep::new example as the explicit fallback for tasks without a typed helper

Accuracy checks

  • All 9 helper signatures verified against src/compile/ir/tasks.rs pub fns
  • Required-parameter table verified against positional arguments in each pub fn
  • ADO task identifier strings (CopyFiles@2, DockerInstaller@0, etc.) verified from TaskStep::new(...) calls in tasks.rs
  • Usage example compiled mentally against tasks.rs + step.rs API (.with_input() chains are correct)
  • "Adding a new helper" checklist matches the pattern used by all existing helpers in tasks.rs

Validation

  • cd site && npm ci && npm run build — 36 pages built, all internal links valid

Created by the docs-writer workflow.

Generated by Docs Writer · 858.1 AIC · ⌖ 48.5 AIC · ⊞ 36K ·

- Add tasks.rs to the Module Layout section in ir.mdx
- Add new 'Typed task helpers' section to ir.mdx documenting all 9
  factory functions (CopyFiles@2, DockerInstaller@0, DotNetCoreCLI@2,
  ArchiveFiles@2, ExtractFiles@1, PublishTestResults@2, NuGetCommand@2,
  PowerShell@2 file+inline modes), including required-param table,
  usage examples, and contributor guidance for adding new helpers
- Update 'Task steps' section in extending.mdx to surface the typed
  helpers as the preferred pattern over raw TaskStep::new() calls,
  with cross-link to the ir.mdx reference

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request Jun 17, 2026
@jamesadevine jamesadevine marked this pull request as ready for review June 17, 2026 10:33
@jamesadevine jamesadevine merged commit ca0352c into main Jun 17, 2026
@jamesadevine jamesadevine deleted the docs/task-helpers-reference-08ca2f1a35680b5e branch June 17, 2026 10:33
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