Skip to content

Commit

Permalink
doco
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 26, 2019
1 parent e21548b commit 3206456
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var snippetExtractor = new DirectorySnippetExtractor(
!dirPath.EndsWith("obj"));
var snippets = snippetExtractor.ReadSnippets(@"C:\path");
```
<sup><a href='/src/Tests/Snippets/Usage.cs#L30-L39' title='File snippet `readingdirectorysimple` was extracted from'>snippet source</a> | <a href='#snippet-readingdirectorysimple' title='Navigate to start of snippet `readingdirectorysimple`'>anchor</a></sup>
<sup><a href='/src/Tests/Snippets/Usage.cs#L40-L49' title='File snippet `readingdirectorysimple` was extracted from'>snippet source</a> | <a href='#snippet-readingdirectorysimple' title='Navigate to start of snippet `readingdirectorysimple`'>anchor</a></sup>
<!-- endsnippet -->


Expand Down Expand Up @@ -77,7 +77,7 @@ var missingSnippets = result.MissingSnippets;
// snippets that the markdown file used
var usedSnippets = result.UsedSnippets;
```
<sup><a href='/src/Tests/Snippets/Usage.cs#L44-L76' title='File snippet `markdownprocessingsimple` was extracted from'>snippet source</a> | <a href='#snippet-markdownprocessingsimple' title='Navigate to start of snippet `markdownprocessingsimple`'>anchor</a></sup>
<sup><a href='/src/Tests/Snippets/Usage.cs#L54-L86' title='File snippet `markdownprocessingsimple` was extracted from'>snippet source</a> | <a href='#snippet-markdownprocessingsimple' title='Navigate to start of snippet `markdownprocessingsimple`'>anchor</a></sup>
<!-- endsnippet -->


Expand Down
19 changes: 19 additions & 0 deletions docs/max-width.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ The Max Width setting is used to control the maximum characters per line of a sn
```


## Command Line

```
--max-width 80
```


## Code Api

<!-- snippet: DirectoryMarkdownProcessorRunMaxWidth -->
<a id='snippet-directorymarkdownprocessorrunmaxwidth'/></a>
```cs
var processor = new DirectoryMarkdownProcessor("targetDirectory", maxWidth: 80);
processor.Run();
```
<sup><a href='/src/Tests/Snippets/Usage.cs#L30-L35' title='File snippet `directorymarkdownprocessorrunmaxwidth` was extracted from'>snippet source</a> | <a href='#snippet-directorymarkdownprocessorrunmaxwidth' title='Navigate to start of snippet `directorymarkdownprocessorrunmaxwidth`'>anchor</a></sup>
<!-- endsnippet -->


## References

https://en.wikipedia.org/wiki/Line_length#Electronic_text
Expand Down
12 changes: 12 additions & 0 deletions docs/mdsource/max-width.source.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ The Max Width setting is used to control the maximum characters per line of a sn
```


## Command Line

```
--max-width 80
```


## Code Api

snippet: DirectoryMarkdownProcessorRunMaxWidth


## References

https://en.wikipedia.org/wiki/Line_length#Electronic_text
Expand Down
10 changes: 10 additions & 0 deletions src/Tests/Snippets/Usage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ void DirectoryMarkdownProcessorRun()
#endregion
}

void DirectoryMarkdownProcessorRunMaxWidth()
{
#region DirectoryMarkdownProcessorRunMaxWidth

var processor = new DirectoryMarkdownProcessor("targetDirectory", maxWidth: 80);
processor.Run();

#endregion
}

void ReadingDirectory()
{
#region ReadingDirectorySimple
Expand Down

0 comments on commit 3206456

Please sign in to comment.