diff --git a/deps/outliner/src/logseq/outliner/db_pipeline.cljs b/deps/outliner/src/logseq/outliner/db_pipeline.cljs index 0c48ef04e1..0529153aa7 100644 --- a/deps/outliner/src/logseq/outliner/db_pipeline.cljs +++ b/deps/outliner/src/logseq/outliner/db_pipeline.cljs @@ -41,7 +41,7 @@ (when (seq block-path-refs-tx) (d/transact! conn block-path-refs-tx {:pipeline-replace? true}))))) -(defn add-listener +(defn ^:api add-listener "Adds a listener to the datascript connection to add additional changes from outliner.pipeline" [conn] (d/listen! conn :pipeline-updates (fn pipeline-updates [tx-report] diff --git a/docs/dev-practices.md b/docs/dev-practices.md index 74a0041d66..7e30b7e5fe 100644 --- a/docs/dev-practices.md +++ b/docs/dev-practices.md @@ -389,17 +389,17 @@ These tasks are specific to database graphs. For these tasks there is a one time * `dev:db-create` - Create a DB graph given a `sqlite.build` EDN file -First in Electron, create the name of the graph you want create e.g. `inferred`. -Then: + First in Electron, create the name of the graph you want create e.g. `inferred`. + Then: -```sh -bb dev:db-create inferred deps/db/script/create_graph/inferred.edn -Generating 11 pages and 0 blocks ... -Created graph inferred! -``` + ```sh + bb dev:db-create inferred deps/db/script/create_graph/inferred.edn + Generating 11 pages and 0 blocks ... + Created graph inferred! + ``` -Finally, upload this created graph with the dev command: `Replace graph with` -... Switch to the graph and you can use the created graph! + Finally, upload this created graph with the dev command: `Replace graph with` + ... Switch to the graph and you can use the created graph! * `dev:db-datoms` and `dev:diff-datoms` - Save a db's datoms to file and diff two datom files