Skip to content

Commit

Permalink
chore: add export-as-markdown ui
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Mar 18, 2021
1 parent d9afcd6 commit da1b863
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@
:options {:on-click (fn []
(export/export-repo-as-html! current-repo))}
:icon nil})

(when current-repo
{:title (t :export-markdown)
:options {:on-click (fn []
(export/export-repo-as-markdown! current-repo))}})

(when current-repo
{:title (t :import)
:options {:href (rfe/href :import)}
Expand Down
3 changes: 3 additions & 0 deletions src/main/frontend/dicts.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ title: How to take dummy notes?
:close "Close"
:re-index "Re-index"
:export-json "Export as JSON"
:export-markdown "Export as Markdown"
:unlink "unlink"
:search (if config/publishing?
"Search"
Expand Down Expand Up @@ -1033,6 +1034,7 @@ title: How to take dummy notes?
:cancel "取消"
:re-index "重新建立索引"
:export-json "以 JSON 格式导出"
:export-markdown "以 Markdown 格式导出"
:unlink "解除绑定"
:search (if config/publishing?
"搜索"
Expand Down Expand Up @@ -1297,6 +1299,7 @@ title: How to take dummy notes?
:cancel "取消"
:re-index "重新建立索引"
:export-json "以 JSON 格式導出"
:export-markdown "以 Markdown 格式導出"
:unlink "解除綁定"
:search (if config/publishing?
"搜索"
Expand Down

0 comments on commit da1b863

Please sign in to comment.