Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@cgranade
Copy link
Contributor

@cgranade cgranade commented Apr 7, 2020

This PR creates a new %lsmagic command that lists magic commands in a discoverable fashion, extracts magic symbol resolution into a new service, and then uses this new functionality to automatically build an API reference for all existing magic commands. This PR also integrates the new functionality into CI, so that the generated magic command docs can be incorporated into an existing docset as a part of CI pipelines.

Marked as WIP for early feedback and in lieu of testing CI support. (Update: CI testing complete, this should now be ready for review.)

rmshaffer
rmshaffer previously approved these changes Apr 8, 2020
Comment on lines 174 to 176
internal static string TrimLeadingWhitespace(this string s) =>
new Regex(@"^\s+", RegexOptions.Multiline)
.Replace(s, string.Empty);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a difference between this and the built-in string.TrimStart()? Also, maybe I'm missing it but I don't see anywhere in this PR where this is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, sorry, this was accidentally included from #114. Will revert 4b8a802 and handle that in #114. Thanks!

@cgranade cgranade changed the title [WIP] Build magic docs Build magic docs Apr 8, 2020
@cgranade cgranade requested a review from rmshaffer April 8, 2020 18:33
@cgranade cgranade merged commit b47fedb into microsoft:master Apr 8, 2020
@cgranade cgranade deleted the build-magic-docs branch April 8, 2020 19:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants