Skip to content
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

update md snippets #137

Closed
wants to merge 2 commits into from
Closed

update md snippets #137

wants to merge 2 commits into from

Conversation

SimonCropp
Copy link
Contributor

No description provided.

@SeanFeldman
Copy link
Owner

Copy link
Owner

@SeanFeldman SeanFeldman left a comment

Choose a reason for hiding this comment

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

Thank you @SimonCropp.
Have a couple of questions/remarks.

Source File: /README.source.md
To change this file edit the source file and then re-run the generation using either the dotnet global tool (https://github.com/SimonCropp/MarkdownSnippets#markdownsnippetstool) or using the api (https://github.com/SimonCropp/MarkdownSnippets#running-as-a-unit-test).
To change this file edit the source file and then run MarkdownSnippets.
Copy link
Owner

Choose a reason for hiding this comment

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

I still like the unit test approach more (see comment below), but wonder what's the benefit of the .NET global tool over unit test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what's the benefit of the .NET global tool over unit test.

i didnt say there was. however i think there is a benefit of using msbuild over unit tests.

@@ -591,6 +591,9 @@ II.2.12 <HandlesEvent />
<s:String x:Key="/Default/CodeStyle/Naming/XamlNaming/UserRules/=XAML_005FFIELD/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/XamlNaming/UserRules/=XAML_005FRESOURCE/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpFileLayoutPatternsUpgrade/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean>
Copy link
Owner

Choose a reason for hiding this comment

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

These should not be here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i will revert that part.

[Fact]
public void Run()
{
DirectoryMarkdownProcessor.RunForFilePath();
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure I like this option. It was very easy to run this test as a part of the test suite.
And I got it working (SimonCropp/MarkdownSnippets#66 (comment)).

@SeanFeldman
Copy link
Owner

@SimonCropp the toc should be after "nuget package" section as that one is breaking TOC.
I have implemented it 0d8ccf0 and think will keep the unit test option to generate snippets for now. While the global tool is much more powerful, I prefer simplicity 🙂

@SeanFeldman
Copy link
Owner

Thank you for showing me the toc option. That's very nice 🙇

@SimonCropp
Copy link
Contributor Author

just to be clear. this PR does not force u to use the global tool. it uses the msbuild approach https://github.com/SimonCropp/MarkdownSnippets/blob/master/docs/msbuild.md

@SeanFeldman
Copy link
Owner

Ah, sorry. Ok, then I'll review that as it might be even simpler to regenerate readme file. Perhaps less intuitive (more magic), but simpler. Thamk you again Simon 🙂

@SimonCropp
Copy link
Contributor Author

Perhaps less intuitive (more magic), but simpler

I am on the fence on that one. i like think of the rendered doco as a build output. so for me it make sense that it to be re-rendered on a build. also means if u break doco (eg missing snippet) your build breaks, which i like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants