Skip to content

Commit

Permalink
added DirectoryName IFileNameFactory implementation (closes #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraku committed Oct 23, 2024
1 parent fb67f6b commit 5c4a6b4
Show file tree
Hide file tree
Showing 821 changed files with 10,360 additions and 8,291 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dotnet tool
[![Coverage Status](https://coveralls.io/repos/github/Doraku/DefaultDocumentation/badge.svg?branch=master)](https://coveralls.io/github/Doraku/DefaultDocumentation?branch=master)

- [Api documentation](./documentation/api/index.md 'Api documentation')
- [Markdown documentation](./documentation/markdown/index.md 'Markdown documentation')
<a/>

- [Requirement](#Requirement)
Expand Down Expand Up @@ -420,6 +421,7 @@ The different `DocItem` types are:
- `Name` or `DefaultDocumentation.Markdown.FileNameFactories.NameFactory DefaultDocumentation.Markdown` removes the namespace (collisions can happen if there is multiple types with the same name in different namespaces)
- `Md5` or `DefaultDocumentation.Markdown.FileNameFactories.Md5Factory DefaultDocumentation.Markdown` uses a Md5 of the full name of each member to produce shorter name, collisions can happen
- `NameAndMd5Mix` or `DefaultDocumentation.Markdown.FileNameFactories.NameAndMd5MixFactory DefaultDocumentation.Markdown` removes the namespace and use a Md5 for parameters
- `DirectoryName` or `DefaultDocumentation.Markdown.FileNameFactories.DirectoryNameFactory DefaultDocumentation.Markdown` use a directory hierarchy
The default value is `FullName`. All those implementations *WILL* delete any `.md` file *EXCEPT* a file named `readme.md`.

<a name='DocItemConfiguration_Sections'></a>
Expand Down
336 changes: 180 additions & 156 deletions documentation/DefaultDocumentation.Api.txt

Large diffs are not rendered by default.

552 changes: 309 additions & 243 deletions documentation/DefaultDocumentation.Markdown.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions documentation/NEXT_RELEASENOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- added OverloadsGenerator to put constructor and method overloads in the same page (closes #139)
- added ExcludeGenerator to exclude DocItem from the documentation generation based on regex (closes #160)
- list code and note elements now display a placeholder value `...` when displayed as a single line
- added DirectoryName IFileNameFactory implementation (closes #104)

## Bug fixes

Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions documentation/api/AssemblyDocItem.md

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions documentation/api/ClassDocItem.md

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions documentation/api/ConstructorDocItem.Method.md

This file was deleted.

15 changes: 0 additions & 15 deletions documentation/api/ConstructorDocItem.Parameters.md

This file was deleted.

24 changes: 0 additions & 24 deletions documentation/api/ConstructorDocItem.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#### [DefaultDocumentation\.Api](../../../index.md 'index')
### [DefaultDocumentation\.Api](../../../index.md#DefaultDocumentation.Api 'DefaultDocumentation\.Api').[IDocItemGenerator](index.md 'DefaultDocumentation\.Api\.IDocItemGenerator')

## IDocItemGenerator\.Generate\(IDocItemsContext\) Method

Modified the known [DocItem](../../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') of the [IDocItemsContext](../../IDocItemsContext/index.md 'DefaultDocumentation\.IDocItemsContext')\.

```csharp
void Generate(DefaultDocumentation.IDocItemsContext context);
```
#### Parameters

<a name='DefaultDocumentation.Api.IDocItemGenerator.Generate(DefaultDocumentation.IDocItemsContext).context'></a>

`context` [IDocItemsContext](../../IDocItemsContext/index.md 'DefaultDocumentation\.IDocItemsContext')

The [IDocItemsContext](../../IDocItemsContext/index.md 'DefaultDocumentation\.IDocItemsContext') of the documentation generation\.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#### [DefaultDocumentation\.Api](../../../index.md 'index')
### [DefaultDocumentation\.Api](../../../index.md#DefaultDocumentation.Api 'DefaultDocumentation\.Api').[IDocItemGenerator](index.md 'DefaultDocumentation\.Api\.IDocItemGenerator')

## IDocItemGenerator\.Name Property

Gets the name of the generator, used to identify it at the configuration level\.

```csharp
string Name { get; }
```

#### Property Value
[System\.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System\.String')
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#### [DefaultDocumentation\.Api](../../../index.md 'index')
### [DefaultDocumentation\.Api](../../../index.md#DefaultDocumentation.Api 'DefaultDocumentation\.Api')

## IDocItemGenerator Interface

Exposes a method to generate the known [DocItem](../../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') of the documentation\.

```csharp
public interface IDocItemGenerator
```

| Properties | |
| :--- | :--- |
| [Name](Name.md 'DefaultDocumentation\.Api\.IDocItemGenerator\.Name') | Gets the name of the generator, used to identify it at the configuration level\. |

| Methods | |
| :--- | :--- |
| [Generate\(IDocItemsContext\)](Generate(IDocItemsContext).md 'DefaultDocumentation\.Api\.IDocItemGenerator\.Generate\(DefaultDocumentation\.IDocItemsContext\)') | Modified the known [DocItem](../../Models/DocItem/index.md 'DefaultDocumentation\.Models\.DocItem') of the [IDocItemsContext](../../IDocItemsContext/index.md 'DefaultDocumentation\.IDocItemsContext')\. |
13 changes: 13 additions & 0 deletions documentation/api/DefaultDocumentation/Api/IElement/Name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#### [DefaultDocumentation\.Api](../../../index.md 'index')
### [DefaultDocumentation\.Api](../../../index.md#DefaultDocumentation.Api 'DefaultDocumentation\.Api').[IElement](index.md 'DefaultDocumentation\.Api\.IElement')

## IElement\.Name Property

Gets the name of the [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement') this type handle\.

```csharp
string Name { get; }
```

#### Property Value
[System\.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System\.String')
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#### [DefaultDocumentation\.Api](../../../index.md 'index')
### [DefaultDocumentation\.Api](../../../index.md#DefaultDocumentation.Api 'DefaultDocumentation\.Api').[IElement](index.md 'DefaultDocumentation\.Api\.IElement')

## IElement\.Write\(IWriter, XElement\) Method

Writes to a [IWriter](../IWriter/index.md 'DefaultDocumentation\.Api\.IWriter') the provided [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement')\.

```csharp
void Write(DefaultDocumentation.Api.IWriter writer, System.Xml.Linq.XElement element);
```
#### Parameters

<a name='DefaultDocumentation.Api.IElement.Write(DefaultDocumentation.Api.IWriter,System.Xml.Linq.XElement).writer'></a>

`writer` [IWriter](../IWriter/index.md 'DefaultDocumentation\.Api\.IWriter')

The [IWriter](../IWriter/index.md 'DefaultDocumentation\.Api\.IWriter') to write to\.

<a name='DefaultDocumentation.Api.IElement.Write(DefaultDocumentation.Api.IWriter,System.Xml.Linq.XElement).element'></a>

`element` [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement')

The [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement') to write\.
18 changes: 18 additions & 0 deletions documentation/api/DefaultDocumentation/Api/IElement/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#### [DefaultDocumentation\.Api](../../../index.md 'index')
### [DefaultDocumentation\.Api](../../../index.md#DefaultDocumentation.Api 'DefaultDocumentation\.Api')

## IElement Interface

Exposes a method to handle a specific kind of [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement') when writing documentation\.

```csharp
public interface IElement
```

| Properties | |
| :--- | :--- |
| [Name](Name.md 'DefaultDocumentation\.Api\.IElement\.Name') | Gets the name of the [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement') this type handle\. |

| Methods | |
| :--- | :--- |
| [Write\(IWriter, XElement\)](Write(IWriter,XElement).md 'DefaultDocumentation\.Api\.IElement\.Write\(DefaultDocumentation\.Api\.IWriter, System\.Xml\.Linq\.XElement\)') | Writes to a [IWriter](../IWriter/index.md 'DefaultDocumentation\.Api\.IWriter') the provided [System\.Xml\.Linq\.XElement](https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XElement 'System\.Xml\.Linq\.XElement')\. |
Loading

0 comments on commit 5c4a6b4

Please sign in to comment.