Пример #1
0
        public static BuildConfig CreateDefault(string outdir, long inlineSize)
        {
            var config = new BuildConfig();

            if (!string.IsNullOrEmpty(outdir))
            {
                config.OutPutDirectory = outdir;
            }

            config.ImageOptions.InlineImageSizeLimit = inlineSize;

            return(config);
        }
Пример #2
0
 public Config()
 {
     TargetWeb        = BuildConfig.CreateDefault("output/web", 64 * 1024);
     TargetEpub       = BuildConfig.CreateDefault("output/epub", long.MaxValue);
     TargetPrint      = BuildConfig.CreateDefault("output/print", 0);
     TargetWordpress  = BuildConfig.CreateDefault("output/wordpress", long.MaxValue);
     Translations     = Translations.CreateDefault();
     Metadata         = new Metadata();
     ImageDir         = string.Empty;
     Index            = string.Empty;
     TOCFile          = string.Empty;
     HostName         = string.Empty;
     ScriptsDirectory = string.Empty;
     StopwordsFile    = string.Empty;
 }