1
0
Эх сурвалжийг харах

fix: outliner lint and doc formatting

Gabriel Horner 1 жил өмнө
parent
commit
03f797fde3

+ 1 - 1
deps/outliner/src/logseq/outliner/db_pipeline.cljs

@@ -41,7 +41,7 @@
       (when (seq block-path-refs-tx)
       (when (seq block-path-refs-tx)
         (d/transact! conn block-path-refs-tx {:pipeline-replace? true})))))
         (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"
   "Adds a listener to the datascript connection to add additional changes from outliner.pipeline"
   [conn]
   [conn]
   (d/listen! conn :pipeline-updates (fn pipeline-updates [tx-report]
   (d/listen! conn :pipeline-updates (fn pipeline-updates [tx-report]

+ 9 - 9
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
 * `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
 * `dev:db-datoms` and `dev:diff-datoms` - Save a db's datoms to file and diff two datom files