public IActionResult Index(string document)
        {
            ViewData["Title"]      = document;
            ViewBag.KnowledgeBases = _knowledgeBaseService.GetKnowledgeBases($"{_hostingEnvironment.WebRootPath}\\Docs");
            ViewBag.MarkdownFiles  = _knowledgeBaseService.GetMdFilesFromDirectory($"{_hostingEnvironment.WebRootPath}\\Docs\\{document}");
            ViewBag.Document       = document;

            Folder rootFolder = new Folder($"{_hostingEnvironment.WebRootPath}\\Docs\\{document}");

            ViewBag.RootFolder = rootFolder;

            return(View());
        }
Exemple #2
0
        public IActionResult Index()
        {
            ViewBag.KnowledgeBases = _knowledgeBaseService.GetKnowledgeBases($"{_hostingEnvironment.WebRootPath}\\Docs");

            return(View());
        }