Skip to content

Commit

Permalink
Merge pull request #219 from desci-labs/m0ar/nodelib-doc-tuning
Browse files Browse the repository at this point in the history
nodes-lib doc tuning + workflow cache
  • Loading branch information
m0ar authored Feb 22, 2024
2 parents f0e3485 + 9cbf0e7 commit d6f459e
Show file tree
Hide file tree
Showing 68 changed files with 8 additions and 1,878 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/nodes-lib-docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: Generate nodes-lib docs and deploy to github pages
on:
push:
branches:
Expand All @@ -23,6 +22,10 @@ jobs:
uses: actions/configure-pages@v3

- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: nodes-lib/package-lock.json

- name: Generate docs
run: |
Expand Down
1 change: 1 addition & 0 deletions nodes-lib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
demo.ts
dist
.env
docs
4 changes: 3 additions & 1 deletion nodes-lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ This package allows programmatic interaction with the backend of [DeSci Nodes](h

> **Note**
> If you are just eager to get started, do heed the instructions under the Configuration section first.
> API docs are available at [desci-labs.github.io/nodes](https://desci-labs.github.io/nodes).
> There is a starter project for building an integration project available [here](https://github.com/desci-labs/nodes-integration-template).
## Core concepts
Some terms are regularly referred to in the code documentation. When programmatically creating nodes, it's important to understand what these things are for the end results to make sense. The corresponding types for these data structures are available in [desci-models](https://github.com/desci-labs/nodes/blob/develop/desci-models/src/ResearchObject.ts).
Expand Down Expand Up @@ -87,7 +89,7 @@ Publishing to the dPID registry and/or Codex requires a private key. Publishing

### Documentation
This section outlines the major functionality the library provides. It's not a complete rundown of all capabilities, but should be enough to get some inutition for the workflow.
More detailed docs generated from the code is available in [docs](./docs/index.html)!
More detailed docs generated from the code is available at the [doc site](https://desci-labs.github.io/nodes)!

#### Node operations
- `createDraftNode`: initializes a new, empty, private node.
Expand Down
1 change: 0 additions & 1 deletion nodes-lib/docs/.nojekyll

This file was deleted.

50 changes: 0 additions & 50 deletions nodes-lib/docs/assets/highlight.css

This file was deleted.

59 changes: 0 additions & 59 deletions nodes-lib/docs/assets/main.js

This file was deleted.

1 change: 0 additions & 1 deletion nodes-lib/docs/assets/navigation.js

This file was deleted.

1 change: 0 additions & 1 deletion nodes-lib/docs/assets/search.js

This file was deleted.

Loading

0 comments on commit d6f459e

Please sign in to comment.