Example #1
0
 public DocumentPublisherHtml(DocSet docs, IPublishOptions options)
     : base(docs, options)
 {
     TemplateHtmlFilename     = options.TemplateFilename ?? "template.htm";
     HtmlOutputExtension      = options.OutputExtension ?? ".htm";
     EnableHtmlTagPassThrough = options.AllowUnsafeHtmlContentInMarkdown;
 }
 public DocumentPublisherHtml(DocSet docs, IPublishOptions options) 
     : base(docs, options)
 {
     TemplateHtmlFilename =  options.TemplateFilename ?? "template.htm";
     HtmlOutputExtension = options.OutputExtension ?? ".htm";
     EnableHtmlTagPassThrough = options.AllowUnsafeHtmlContentInMarkdown;
     PageParameters = options.PageParameterDict;
 }
 public DocumentPublisherHtml(DocSet docs, IPublishOptions options)
     : base(docs, options)
 {
     TemplateHtmlFilename     = options.TemplateFilename ?? "template.htm";
     HtmlOutputExtension      = options.OutputExtension ?? ".htm";
     EnableHtmlTagPassThrough = options.AllowUnsafeHtmlContentInMarkdown;
     PageParameters           = options.PageParameterDict;
     RespectOrderedListValues = options.RespectOrderedListValues;
 }
	    protected DocumentPublisher(DocSet docset, IPublishOptions options = null)
		{
	        this.Documents = docset;
	        this.Options = options ?? new DefaultPublishOptions();

	        this.RootPath = new DirectoryInfo(docset.SourceFolderPath).FullName;
            if (!this.RootPath.EndsWith(Path.DirectorySeparatorChar.ToString()))
                this.RootPath = string.Concat(this.RootPath, Path.DirectorySeparatorChar);

	        this.SourceFileExtensions = ".md,.mdown";
	        this.SkipPaths = "\\.git;\\.gitignore;\\.gitattributes";
	        this.OutputLineEndings = LineEndings.Default;
	        this.Messages = new BindingList<ValidationError>();
		}
Example #5
0
        protected DocumentPublisher(DocSet docset, IPublishOptions options = null)
        {
            this.Documents = docset;
            this.Options   = options ?? new DefaultPublishOptions();

            this.RootPath = new DirectoryInfo(docset.SourceFolderPath).FullName;
            if (!this.RootPath.EndsWith(Path.DirectorySeparatorChar.ToString()))
            {
                this.RootPath = string.Concat(this.RootPath, Path.DirectorySeparatorChar);
            }

            this.SourceFileExtensions = ".md,.mdown";
            this.SkipPaths            = "\\.git;\\.gitignore;\\.gitattributes";
            this.OutputLineEndings    = LineEndings.Default;
            this.Messages             = new BindingList <ValidationError>();
        }
Example #6
0
        private static Dictionary <string, object> GeneratePageParameters(IPublishOptions options)
        {
            if (string.IsNullOrEmpty(options.AdditionalPageParameters))
            {
                return(null);
            }

            var data = new Dictionary <string, object>();

            var parameters = Validation.Http.HttpParser.ParseQueryString(options.AdditionalPageParameters);

            foreach (var key in parameters.AllKeys)
            {
                data[key] = parameters[key];
            }
            return(data);
        }
 public HtmlMustacheWriter(DocSet docs, IPublishOptions options) : base(docs, options)
 {
     this.CollapseTocToActiveGroup = false;
 }
Example #8
0
 public HtmlMustacheWriter(DocSet docs, IPublishOptions options) : base(docs, options)
 {
     this.CollapseTocToActiveGroup = false;
     this.PageParameters           = GeneratePageParameters(options);
 }
Example #9
0
 public DocumentPublisherHtml(DocSet docs, IPublishOptions options)
     : base(docs, options)
 {
     TemplateHtmlFilename = options.TemplateFilename ?? "template.htm";
     HtmlOutputExtension  = options.OutputExtension ?? ".htm";
 }
 public DocumentPublisherHtml(DocSet docs, IPublishOptions options) 
     : base(docs, options)
 {
     TemplateHtmlFilename =  options.TemplateFilename ?? "template.htm";
     HtmlOutputExtension = options.OutputExtension ?? ".htm";
 }