Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ copy of this content in your `content` directory.

## Ignored Content

Any file or directory beginning with `.` is ignored.
Any file or directory beginning with `.` is ignored. Also `node_modules` directory is ignored.

## Front matter

Expand Down
7 changes: 5 additions & 2 deletions src/fsdocs-tool/BuildCommand.fs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
Some x.TwoLetterISOLanguageName)
|> Array.distinct

let sourceFileOrFolderIsSkipped (input: string) =
input.StartsWith "." || input = "node_modules"

Check warning

Code scanning / Ionide.Analyzers.Cli

Verifies the correct usage of System.String.StartsWith Warning

The usage of String.StartsWith with a single string argument is discouraged. Signal your intention explicitly by calling an overload.

let makeMarkdownLinkResolver
(inputFolderAsGiven, outputFolderRelativeToRoot, fullPathFileMap: Map<(string * OutputKind), string>, outputKind)
(markdownReference: string)
Expand Down Expand Up @@ -162,7 +165,7 @@

for subInputFolderFullPath in Directory.EnumerateDirectories(inputFolderAsGiven) do
let subInputFolderName = Path.GetFileName(subInputFolderFullPath)
let subFolderIsSkipped = subInputFolderName.StartsWith '.'
let subFolderIsSkipped = sourceFileOrFolderIsSkipped subInputFolderName
let subFolderIsOutput = subFolderIsOutput subInputFolderFullPath

if not subFolderIsOutput && not subFolderIsSkipped then
Expand Down Expand Up @@ -612,7 +615,7 @@

for subInputFolderFullPath in Directory.EnumerateDirectories(inputFolderAsGiven) do
let subInputFolderName = Path.GetFileName(subInputFolderFullPath)
let subFolderIsSkipped = subInputFolderName.StartsWith '.'
let subFolderIsSkipped = sourceFileOrFolderIsSkipped subInputFolderName
let subFolderIsOutput = subFolderIsOutput subInputFolderFullPath

if subFolderIsOutput || subFolderIsSkipped then
Expand Down