-
Notifications
You must be signed in to change notification settings - Fork 30
Also write the used link-index to the filesystem and add it as part of the new CheckoutResult record #1316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Also write the used link-index to the filesystem and add it as part of the new CheckoutResult record #1316
Conversation
…f the new CheckoutResult record
var builder = new AssemblerBuilder(logger, assembleContext, navigation, htmlWriter, pathProvider, historyMapper); | ||
await builder.BuildAllAsync(assembleSources.AssembleSets, ctx); | ||
|
||
if (checkoutResult.LinkRegistrySnapshot is { } linkRegistry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a method on AssemblerRepositorySourcer
and use the read / write filesystems on AssemblerContext
.
That way it will be easier to write tests for this at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, use the filesystems on context not the System.IO.*
classes directly.
src/tooling/docs-assembler/Sourcing/RepositorySourcesFetcher.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changes
link-index.shapshot.json
file to the checkout dir while cloning repositories withclone-all
build-all
copy thelink-index.snapshot.json
to the/docs
output dir.