mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 05:04:24 +00:00
Add docs and workflow for dep
Also rename dep to publishing for consistency with existing names
This commit is contained in:
committed by
Tienson Qin
parent
5186070248
commit
fef07fe812
@@ -1,6 +1,7 @@
|
||||
(ns logseq.tasks.dev.publishing
|
||||
"Basic script for publishing from CLI"
|
||||
(:require [logseq.graph-parser.cli :as gp-cli]
|
||||
[logseq.publish-spa :as publish-spa]
|
||||
[logseq.publishing :as publishing]
|
||||
["fs" :as fs]
|
||||
["path" :as node-path]
|
||||
[clojure.edn :as edn]))
|
||||
@@ -18,8 +19,8 @@
|
||||
;; Offset relative paths since they are run in a different directory than user is in
|
||||
(map #(if (node-path/isAbsolute %) % (node-path/resolve ".." %)) args)
|
||||
repo-config (-> (node-path/join graph-dir "logseq" "config.edn") fs/readFileSync str edn/read-string)]
|
||||
(publish-spa/export (get-db graph-dir)
|
||||
static-dir
|
||||
graph-dir
|
||||
output-path
|
||||
{:repo-config repo-config})))
|
||||
(publishing/export (get-db graph-dir)
|
||||
static-dir
|
||||
graph-dir
|
||||
output-path
|
||||
{:repo-config repo-config})))
|
||||
|
||||
Reference in New Issue
Block a user