Skip to content

Commit

Permalink
Fix and first release
Browse files Browse the repository at this point in the history
  • Loading branch information
donker committed Jul 24, 2018
1 parent 93e7bb1 commit f996d70
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ bower_components
packages/
_Packages
js/*.js
tools/

_BuildSupport
_Development
Expand Down
2 changes: 1 addition & 1 deletion Connect.DocBrowser.Core/Connect.DocBrowser.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
16 changes: 8 additions & 8 deletions Connect.DocBrowser.Core/Controllers/AppController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static void Reset(PortalSettings portalSettings, int moduleId)
private static void ParseDir(DirectoryInfo directory, string relativeDir, int moduleId)
{
var pipeline = new MarkdownPipelineBuilder().UseYamlFrontMatter().Build();
using (var cons = new StreamWriter("D:\\Webroot\\DNNAPI\\_dev\\out.txt", true, Encoding.UTF8))
{
//using (var cons = new StreamWriter("D:\\Webroot\\DNNAPI\\_dev\\out.txt", true, Encoding.UTF8))
//{
foreach (var f in directory.GetFiles("*.md"))
{
var content = "";
Expand All @@ -50,17 +50,17 @@ private static void ParseDir(DirectoryInfo directory, string relativeDir, int mo
if (!string.IsNullOrEmpty(content))
{
var block = new FrontMatterBlock();
cons.WriteLine(f.FullName);
//cons.WriteLine(f.FullName);
var md = Markdown.Parse(content, pipeline);
//md.GetData("");
cons.WriteLine(content);
//cons.WriteLine(content);
foreach (var b in md)
{
if (b is YamlFrontMatterBlock)
{
var fm = (YamlFrontMatterBlock)b;
block = fm.Parse();
cons.WriteLine(block);
//cons.WriteLine(block);
}
}
if (block.Parsed)
Expand All @@ -74,7 +74,7 @@ private static void ParseDir(DirectoryInfo directory, string relativeDir, int mo
{
return "href=\"#\" data-topic=\"" + m.Groups[1] + "\"";
});
cons.WriteLine(text);
//cons.WriteLine(text);
var itm = new Item()
{
Contents = text,
Expand All @@ -92,8 +92,8 @@ private static void ParseDir(DirectoryInfo directory, string relativeDir, int mo
}
}
}
cons.Flush();
}
//cons.Flush();
//}
foreach (var subDir in directory.GetDirectories())
{
if (!subDir.Name.StartsWith("."))
Expand Down
2 changes: 1 addition & 1 deletion Connect.DocBrowser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\..\bin\</OutputPath>
<OutputPath>.\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down

0 comments on commit f996d70

Please sign in to comment.