-
Notifications
You must be signed in to change notification settings - Fork 26
Add crosslinks to toc: in docset.yml #1615
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
base: main
Are you sure you want to change the base?
Conversation
🔍 Preview links for changed docs |
@Mpdreamz @bmorelli25 Wanted to give this one a try. Seems to work (check the Testing section, last two items). If the code is ugly, please feel free to salvage whatever looks useful in this PR, or commit directly. |
// Log the error but don't fail the build | ||
Context.EmitError(Context.ConfigurationPath, $"Error validating cross-links in navigation: {e.Message}"); | ||
} | ||
|
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.
Move this routine to Resolve()
which could be made async.
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.
Which Resolve()? Tree.Resolve?
src/Elastic.Markdown/IO/Navigation/NavigationCrossLinkValidator.cs
Outdated
Show resolved
Hide resolved
src/Elastic.Markdown/IO/Navigation/NavigationCrossLinkValidator.cs
Outdated
Show resolved
Hide resolved
@Mpdreamz Anything missing for this one? Minus the remaining comment. |
Not sure @theletterf, I need some time to get to this PR still :) |
No probs! |
This PR adds crosslinks as accepted item types in docset.yml toc directives.
For example: