Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .azure-pipelines/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# CI pipeline for PSDocs

variables:
version: '0.8.0'
version: '0.9.0'
buildConfiguration: 'Release'
disable.coverage.autogenerate: 'true'
imageName: 'ubuntu-18.04'

# Use build number format, i.e. 0.7.0-B2004001
# Use build number format, i.e. 0.9.0-B2004001
name: $(version)-B$(date:yyMM)$(rev:rrr)

trigger:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

What's changed since v0.8.0:

- General improvements:
- Added support for document data and metadata in `end` convention blocks. [#148](https://github.com/BernieWhite/PSDocs/issues/148)

## v0.8.0

What's changed since v0.7.0:
Expand Down
7 changes: 7 additions & 0 deletions src/PSDocs/Processor/IDocumentResult.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

using System.Collections;
using System.Collections.Specialized;

namespace PSDocs.Processor
{
internal interface IDocumentResult
Expand All @@ -12,5 +15,9 @@ internal interface IDocumentResult
string OutputPath { get; }

string FullName { get; }

OrderedDictionary Metadata { get; }

Hashtable Data { get; }
}
}
8 changes: 8 additions & 0 deletions src/PSDocs/Processor/Markdown/MarkdownProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using PSDocs.Configuration;
using PSDocs.Models;
using PSDocs.Runtime;
using System.Collections;
using System.Collections.Specialized;
using System.Diagnostics;
using System.IO;

Expand All @@ -27,6 +29,8 @@ internal DocumentResult(DocumentContext documentContext, string markdown)
Culture = documentContext.Culture;
OutputPath = PSDocumentOption.GetRootedPath(documentContext.OutputPath);
FullName = GetFullName();
Metadata = documentContext.Metadata;
Data = documentContext.Data;
}

[DebuggerStepThrough]
Expand All @@ -45,6 +49,10 @@ public override string ToString()

public string FullName { get; }

public OrderedDictionary Metadata { get; }

public Hashtable Data { get; }

private string GetFullName()
{
var fileName = string.Concat(InstanceName, Extension);
Expand Down
1 change: 0 additions & 1 deletion src/PSDocs/Runtime/PSDocs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

using PSDocs.Models;
using System.Collections;
using System.Management.Automation;
using System.Threading;
Expand Down