Open
Conversation
e2fbb3a to
f297bf1
Compare
| var repoPath = NormalizePath(repository ?? "."); | ||
| var docsPath = NormalizePath(docs ?? Path.Combine(repoPath, "docs")); | ||
| var configPath = NormalizePath(config ?? Path.Combine(docsPath, "changelog.yml")); | ||
| var defaultChangelogPath = Path.Combine(docsPath, "changelog"); |
| var docsPath = NormalizePath(docs ?? Path.Combine(repoPath, "docs")); | ||
| var configPath = NormalizePath(config ?? Path.Combine(docsPath, "changelog.yml")); | ||
| var defaultChangelogPath = Path.Combine(docsPath, "changelog"); | ||
| var defaultBundlesPath = Path.Combine(docsPath, "releases"); |
| if (stream == null) | ||
| { | ||
| // Fallback: try config relative to current directory (for development) | ||
| var localConfigPath = Path.Combine(Directory.GetCurrentDirectory(), "config", "changelog.example.yml"); |
| ) | ||
| { | ||
| var repoPath = NormalizePath(repository ?? "."); | ||
| var docsPath = NormalizePath(docs ?? Path.Combine(repoPath, "docs")); |
| { | ||
| var repoPath = NormalizePath(repository ?? "."); | ||
| var docsPath = NormalizePath(docs ?? Path.Combine(repoPath, "docs")); | ||
| var configPath = NormalizePath(config ?? Path.Combine(docsPath, "changelog.yml")); |
🔍 Preview links for changed docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a
docs-builder changelog initcommand that scaffolds changelog configuration and directory structure for a repository.What it does
docs/changelog.ymlfrom the built-inchangelog.example.ymltemplate (if it doesn't already exist)docs/changeloganddocs/releasesdirectories (if they don't already exist)--changelog-diror--bundles-diroverride the defaults, updatesbundle.directoryandbundle.output_directoryin the createdchangelog.ymlOptions
--repository--docs{repository}/docs--config{docs}/changelog.yml--changelog-dir{docs}/changelog--bundles-dir{docs}/releasesUsage examples
Files changed
src/tooling/docs-builder/docs-builder.csprojchangelog.example.ymlas a resourcesrc/tooling/docs-builder/Commands/ChangelogCommand.csinitsubcommand,GetPathForConfighelper, update help textdocs/cli/release/changelog-init.mddocs/cli/release/index.mdchangelog initdocs/_docset.ymlchangelog-init.mdto table of contentsdocs/contribute/changelog.mdchangelog initin configuration sectionGenerative AI disclosure
Tool(s) and model(s) used: composer 1.5, claude-4.6-opus-high