From 1001ace3e5abfedb52cef61079ce25008a4621e1 Mon Sep 17 00:00:00 2001 From: Shaun Lawrence Date: Mon, 1 Mar 2021 21:23:41 +0000 Subject: [PATCH] Basic test on automating - snippet/documentation generation --- .../Functions/Conversion/DateFunction.cs | 10 +++++++++ Source/test.md | 21 +++++++++++++++++++ Source/test.source.md | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 Source/test.md create mode 100644 Source/test.source.md diff --git a/Source/Expressive/Functions/Conversion/DateFunction.cs b/Source/Expressive/Functions/Conversion/DateFunction.cs index f188223..dc539c8 100644 --- a/Source/Expressive/Functions/Conversion/DateFunction.cs +++ b/Source/Expressive/Functions/Conversion/DateFunction.cs @@ -4,6 +4,16 @@ namespace Expressive.Functions.Conversion { + // begin-snippet: DateFunction + //Converts and returns the parameter as a DateTime. + + //Date(value) + + //or + + //Date(value, format) + // end-snippet + internal sealed class DateFunction : FunctionBase { #region FunctionBase Members diff --git a/Source/test.md b/Source/test.md new file mode 100644 index 0000000..188620c --- /dev/null +++ b/Source/test.md @@ -0,0 +1,21 @@ + + +Some blurb about the below snippet + + +```cs +//Converts and returns the parameter as a DateTime. + +//Date(value) + +//or + +//Date(value, format) +``` +snippet source | anchor + diff --git a/Source/test.source.md b/Source/test.source.md new file mode 100644 index 0000000..fc11da9 --- /dev/null +++ b/Source/test.source.md @@ -0,0 +1,2 @@ +Some blurb about the below snippet +snippet: DateFunction \ No newline at end of file