Skip to content

Add documentation for extends configuration option#84

Open
eiriksm wants to merge 4 commits intomainfrom
codex/create-documentation-for-extends
Open

Add documentation for extends configuration option#84
eiriksm wants to merge 4 commits intomainfrom
codex/create-documentation-for-extends

Conversation

@eiriksm
Copy link
Copy Markdown
Member

@eiriksm eiriksm commented Sep 27, 2025

Summary

  • add a configuration page that documents the new extends option for Violinist
  • explain how to inherit shared configuration blocks and layer multiple sources

Testing

  • not run

https://chatgpt.com/codex/tasks/task_b_68d77e52b108832a885091fc001ff224

@netlify
Copy link
Copy Markdown

netlify bot commented Sep 27, 2025

Deploy Preview for violinist-docs ready!

Name Link
🔨 Latest commit 01e814f
🔍 Latest deploy log https://app.netlify.com/projects/violinist-docs/deploys/68d81c74da0b230008ba781f
😎 Deploy Preview https://deploy-preview-84--violinist-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for violinist-docs ready!

Name Link
🔨 Latest commit 004628f
🔍 Latest deploy log https://app.netlify.com/projects/violinist-docs/deploys/69dddae7ba4bb10007a8e393
😎 Deploy Preview https://deploy-preview-84--violinist-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@eiriksm eiriksm marked this pull request as ready for review April 14, 2026 06:25
@eiriksm eiriksm requested a review from Copilot April 14, 2026 06:25
Copy link
Copy Markdown

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 a new documentation page describing Violinist’s extends configuration option, focusing on inheriting shared configuration and layering multiple sources.

Changes:

  • Adds a new docs/configuration/extends.mdx page documenting the extends option.
  • Provides examples for extending from a repo-local JSON file and from a Composer package.
  • Describes precedence/override behavior when chaining multiple sources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +30 to +31
Each entry in the array can either reference a Composer package that exposes a Violinist configuration file or point to a relative path inside the repository. Violinist will fetch the configuration snippets in the order you list them, merge the keys they contain, and finally apply whatever options are defined directly inside the local `extra.violinist` block. Later entries, including the local configuration, always override values defined earlier in the list, allowing every project to keep its unique tweaks while inheriting the defaults that come from your shared templates.

Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

The description of what a Composer package provides is internally inconsistent: here it says the package exposes a “Violinist configuration file”, but later the doc says Violinist reads the dependency’s extra.violinist block from its composer.json. Please align the wording and (if applicable) document the expected file name/path vs composer.json semantics explicitly so users know what to publish.

Copilot uses AI. Check for mistakes.
}
```

In this example the project inherits the `automerge` value from the shared document, overrides the merge method to "merge", and adds an extra label next to the defaults that were defined globally.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

This sentence says the local config “adds an extra label next to the defaults”, but earlier the doc states later entries “always override values defined earlier”. Please clarify how merging works for array values like labels (replace vs append/union), and adjust the example/explanation to match the actual behavior.

Copilot uses AI. Check for mistakes.

## Explanation

When you have many repositories that should behave the same way, copying the full Violinist configuration to every `composer.json` quickly becomes hard to maintain. The `extends` option lets you centralise your shared settings in one or more remote JSON documents and ask Violinist to import them before applying the project specific overrides that live in the repository.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

Hyphenation: “project specific” should be “project-specific” when used as a compound modifier.

Suggested change
When you have many repositories that should behave the same way, copying the full Violinist configuration to every `composer.json` quickly becomes hard to maintain. The `extends` option lets you centralise your shared settings in one or more remote JSON documents and ask Violinist to import them before applying the project specific overrides that live in the repository.
When you have many repositories that should behave the same way, copying the full Violinist configuration to every `composer.json` quickly becomes hard to maintain. The `extends` option lets you centralise your shared settings in one or more remote JSON documents and ask Violinist to import them before applying the project-specific overrides that live in the repository.

Copilot uses AI. Check for mistakes.

Each entry in the array can either reference a Composer package that exposes a Violinist configuration file or point to a relative path inside the repository. Violinist will fetch the configuration snippets in the order you list them, merge the keys they contain, and finally apply whatever options are defined directly inside the local `extra.violinist` block. Later entries, including the local configuration, always override values defined earlier in the list, allowing every project to keep its unique tweaks while inheriting the defaults that come from your shared templates.

Because extended configuration is resolved at run time, you can update a central document and have every repository inherit the change the next time Violinist runs. When you share configuration through a Composer package, each project still needs to receive an updated version of that package—usually by running an automated dependency update such as a Violinist pull request—before the new settings take effect. This keeps large organisations aligned without requiring the same change to be repeated in dozens of composer files.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

Wording: “run time” is typically written as “runtime” in this context.

Suggested change
Because extended configuration is resolved at run time, you can update a central document and have every repository inherit the change the next time Violinist runs. When you share configuration through a Composer package, each project still needs to receive an updated version of that package—usually by running an automated dependency update such as a Violinist pull request—before the new settings take effect. This keeps large organisations aligned without requiring the same change to be repeated in dozens of composer files.
Because extended configuration is resolved at runtime, you can update a central document and have every repository inherit the change the next time Violinist runs. When you share configuration through a Composer package, each project still needs to receive an updated version of that package—usually by running an automated dependency update such as a Violinist pull request—before the new settings take effect. This keeps large organisations aligned without requiring the same change to be repeated in dozens of composer files.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants