FolderStructure

References
public sealed class FolderStructure
Represents the canonical folder layout for the folder in which documentation content is made.

Constructors

FolderStructure

#
Create a new canonical documentation folder structure. This constructor will throw if the base folder does not exist.
public FolderStructure(
baseFolder
The base folder. Use Folders.DocumentationAuthoringFolder if unsure.
)

Properties

Base

#
Gets the base folder for this structure.
public string Base { get; }

ExamplesFolder

#
Gets the folder in which the example file content is made.
public string ExamplesFolder { get; }

SpecsFolder

#
Gets the folder in which the component specification content is made.
public string SpecsFolder { get; }

TermsFolder

#
Gets the folder in which the glossary content is made.
public string TermsFolder { get; }

TopicsFolder

#
Gets the folder in which the in-depth topic content is made.
public string TopicsFolder { get; }

Methods

CompleteFolderStructure

#
Create a list of all the subfolders that represent a standard folder structure.
public static string[] CompleteFolderStructure(
baseFolder,
Base folder.
params ProcessState[]
states
Optional list of stated to include. If omitted, all states are included.
)

CreateExamplesFolderPath

#
Given a (presumably well-formed) directory uri, create the appropriate Examples subfolder uri.
public static string CreateExamplesFolderPath(
baseFolder
)

CreateSpecFolderPath

#
Given a (presumably well-formed) directory uri, create the appropriate Specs subfolder uri.
public static string CreateSpecFolderPath(
baseFolder,
ProcessState
state
)

CreateTermFolderPath

#
Given a (presumably well-formed) directory uri, create the appropriate Terms subfolder uri.
public static string CreateTermFolderPath(
baseFolder,
ProcessState
state
)

CreateTopicFolderPath

#
Given a (presumably well-formed) directory uri, create the appropriate Topics subfolder uri.
public static string CreateTopicFolderPath(
baseFolder,
ProcessState
state
)

ExampleFiles

#
Enumerate over all topic files in the given folder.
public IEnumerable<string> ExampleFiles(
ProcessState
folder
)

GetExampleFolder

#
Gets (and creates if need be) the specified subfolder for the example files.
public string GetExampleFolder(
ProcessState
folder
)

GetSpecFolder

#
Gets (and creates if need be) the specified subfolder for the specifications.
public string GetSpecFolder(
ProcessState
folder
)

GetTermFolder

#
Gets (and creates if need be) the specified subfolder for the terms.
public string GetTermFolder(
ProcessState
folder
)

GetTopicFolder

#
Gets (and creates if need be) the specified subfolder for the topics.
public string GetTopicFolder(
ProcessState
folder
)

PickExampleFile

#
public string PickExampleFile(
title,
prompt,
params ProcessState[]
states
)

PickSpecFile

#
public string PickSpecFile(
title,
prompt,
params ProcessState[]
states
)

PickTermFile

#
public string PickTermFile(
title,
prompt,
params ProcessState[]
states
)

PickTopicFile

#
public string PickTopicFile(
title,
prompt,
params ProcessState[]
states
)

SpecFiles

#
Enumerate over all spec files in all folders.
public IEnumerable<string> SpecFiles()

SpecFiles

#
Enumerate over all spec files in the given folder.
public IEnumerable<string> SpecFiles(
ProcessState
folder
)

TermFiles

#
Enumerate over all term files in all foldes.
public IEnumerable<string> TermFiles()

TermFiles

#
Enumerate over all term files in the given folder.
public IEnumerable<string> TermFiles(
ProcessState
folder
)

TopicFiles

#
Enumerate over all topic files in all folders.
public IEnumerable<string> TopicFiles()

TopicFiles

#
Enumerate over all topic files in the given folder.
public IEnumerable<string> TopicFiles(
ProcessState
folder
)