impl. Kroki, compile path, and code-editor feature
This commit is contained in:
1 parent
c1bc8f0c03
commit
94d56f9a8f
49 files changed
+40652
-389
No files matched your search
@@ -91,6 +91,18 @@ func (s *Server) registerStaticRoutes() {
|
||||
staticFS,
|
||||
),
|
||||
)
|
||||
|
||||
themeFS := http.FileServer(
|
||||
http.Dir("/data/themes"),
|
||||
)
|
||||
|
||||
s.mux.Handle(
|
||||
"/-/theme/",
|
||||
http.StripPrefix(
|
||||
"/-/theme/",
|
||||
themeFS,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
func (s *Server) mustLoadTemplates() {
|
||||
@@ -164,15 +176,21 @@ func (s *Server) registerRoutes() {
|
||||
routespkg.RegisterUIRoutes(
|
||||
s.mux,
|
||||
routespkg.UIHandlers{
|
||||
Home: s.handleHome,
|
||||
NewPage: s.handleNewPage,
|
||||
SemanticEditor: s.handleSemanticEditor,
|
||||
SemanticPage: s.handleSemanticRoute,
|
||||
RawView: s.handleRawView,
|
||||
LinkManager: s.handleLinkManager,
|
||||
Health: s.handleHealth,
|
||||
Tree: s.handleTree,
|
||||
Config: s.handleConfig,
|
||||
Home: s.handleHome,
|
||||
NewPage: s.handleNewPage,
|
||||
SemanticEditor: s.handleEditorRoute,
|
||||
SemanticPage: s.handleSemanticRoute,
|
||||
RawView: s.handleRawView,
|
||||
LinkManager: s.handleLinkManager,
|
||||
Health: s.handleHealth,
|
||||
Tree: s.handleTree,
|
||||
Browser: s.handleBrowser,
|
||||
Preview: s.handlePreview,
|
||||
PlainView: s.handlePlainView,
|
||||
MarkdownView: s.handleMarkdownView,
|
||||
CompileMarkdown: s.handleCompileMarkdown,
|
||||
CompileDiagram: s.handleCompileDiagram,
|
||||
Config: s.handleConfig,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user