Skip to content

Commit 042a5b5

Browse files
Merge pull request #433 from OpenFn/joe-feedback
Various minor docs tweaks and sidebar restructure (aka feedback from Joe)
2 parents c34ffc8 + 970a5b1 commit 042a5b5

File tree

10 files changed

+1054
-970
lines changed

10 files changed

+1054
-970
lines changed

docs/build-for-developers/cli-intro.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,37 @@ slug: /cli
77
#### Build and test your automated workflows and integrations via the command line.
88

99
The OpenFn CLI is a developer tool to help you build, test, and manage your
10-
workflows and integration with OpenFn directly from the command line. It’s
11-
simple to install, works on macOS, Windows, and Linux, and offers a range of
12-
functionality to enhance your developer experience with OpenFn. You can use the
13-
OpenFn CLI to:
10+
workflows directly from the command line. It’s simple to install, works on
11+
macOS, Windows, and Linux, and offers a range of functionality to enhance your
12+
developer experience with OpenFn. You can use the OpenFn CLI to:
1413

1514
- Securely run OpenFn steps and workflows
1615
- Troubleshoot and debug OpenFn steps
17-
- Deployment of workflows to OpenFn
16+
- Access adaptor documentation
17+
- Deploy workflows to OpenFn
1818

1919
---
2020

2121
### Before you start
2222

23-
Before you begin with the @openfn/cli, make sure to follow these simple steps:
23+
Before you begin with the @openfn/cli, make sure to setup some key tooling:
2424

2525
1. **Code Editor:** Ensure you have a code editor installed on your machine. You
2626
can use popular editors like [VS Code](https://code.visualstudio.com/) or
2727
[Sublime](https://www.sublimetext.com/).
28-
2. **Node.js Installation:** Install Node.js (version 18 or later): - For Linux,
29-
Windows, or macOS, use a version manager like
30-
[nvm](https://github.com/nvm-sh/nvm) or
31-
[asdf](https://asdf-vm.com/guide/getting-started.html). -
32-
[Install Node.js](https://kinsta.com/blog/how-to-install-node-js/) by
33-
following this guide.
34-
3. **Understand OpenFn Basics:** Have a basic understanding of OpenFn,
35-
particularly steps and adaptors. Check out the [Intro section](/documentation)
36-
on this site.
28+
2. **Node.js:** Install Node.js (version 18 or later). For Linux, Windows, or
29+
macOS, use a version manager like [nvm](https://github.com/nvm-sh/nvm) or
30+
[asdf](https://asdf-vm.com/guide/getting-started.html). Or
31+
[install Node.js directly](https://kinsta.com/blog/how-to-install-node-js/)
32+
by following this guide.
33+
34+
You should also **understand OpenFn Basic concepts**, particularly steps and
35+
adaptors. Check out the [Intro section](/documentation) on this site to get
36+
caught up.
3737

3838
---
3939

40-
### Install the OpenFn CLI
40+
### Install the CLI
4141

4242
To download the latest version of
4343
[@openfn/cli](https://www.npmjs.com/package/@openfn/cli), on the command line,
@@ -47,7 +47,7 @@ run the following command.
4747
npm install -g @openfn/cli
4848
```
4949

50-
**Make sure everything works by running the built-in test job**
50+
Make sure everything works by running the built-in test workflow:
5151

5252
```bash
5353
openfn test
@@ -127,7 +127,7 @@ openfn help
127127

128128
---
129129

130-
### Update the OpenFn CLI
130+
### Updating the CLI
131131

132132
To install a new version straight on top of your current installation, run the
133133
following command.
@@ -138,7 +138,7 @@ npm install -g @openfn/cli
138138

139139
---
140140

141-
### Troubleshoot Installation
141+
### Troubleshooting
142142

143143
If you encounter installation issues, try uninstalling the current version first
144144
and then re-installing.

docs/build-for-developers/cli-usage.md

+47-14
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@ sidebar_label: Basic usage
44
slug: /cli-usage
55
---
66

7-
#### Execute a job, run a workflow, adjust logging, maintain adaptors, and save the state.
7+
This page shows common usage examples for the CLI.
88

9-
You're probably here to run steps (expressions) or workflows, which the CLI
10-
makes easy. Keep reading for an outline of the basic usage scenarios of the CLI.
9+
Execute a job, run a workflow, adjust logging, maintain adaptors, and save the state.
10+
11+
---
12+
13+
### Get help
14+
15+
```bash
16+
openfn --help
17+
```
18+
19+
```bash
20+
openfn deploy --help
21+
```
1122

1223
---
1324

@@ -17,35 +28,39 @@ To run a single job, you must explicitly specify which adaptor to use. You can
1728
find the list of publicly available [adaptors here](/adaptors). See examples
1829
below.
1930

20-
> Adaptors are auto-installed if the specified version is not detected.
31+
Adaptors are automatically installed if the specified version is not detected.
2132

22-
**Use a shorthand (e.g., `http`):**
33+
**Run a job with the http adaptor:**
2334

2435
```bash
2536
openfn path/to/job.js -a http
2637
```
2738

28-
**Use the full package name (e.g., `@openfn/language-http`):**
39+
**Use a specific adaptor version:**
2940

3041
```bash
31-
openfn path/to/job.js -a @openfn/language-http
42+
openfn path/to/job.js -a http@2.0.0
3243
```
3344

34-
**Add a specific version:**
45+
**Pass a path to a locally installed adaptor:**
3546

3647
```bash
37-
openfn path/to/job.js -a http@2.0.0
48+
openfn path/to/job.js -a http=/repo/openfn/adaptors/my-http-build
3849
```
3950

40-
**Pass a path to a locally installed adaptor:**
51+
**Use the build in the adaptors monoreo:**
4152

4253
```bash
43-
openfn path/to/job.js -a http=/repo/openfn/adaptors/my-http-build
54+
openfn path/to/job.js -ma http
4455
```
4556

57+
Set a path to the monorepo with the env var OPENFN_REPO_DIR (eg, `OPENFN_REPO_DIR=~/openfn/repo openfn job.js -ma http`).
58+
59+
Remember to rebuild the adaptor before using it!
60+
4661
---
4762

48-
### Write resulting state to disk
63+
### Handle output state
4964

5065
After the job finishes, the CLI writes the resulting state to disk. By default,
5166
it creates an `output.json` next to the job file.
@@ -56,8 +71,6 @@ it creates an `output.json` next to the job file.
5671
openfn path/to/job.js -a adaptor-name -o path/to/output.json -s path/to/state.json
5772
```
5873

59-
### Return resulting state through stdout
60-
6174
**Use `-O` to return the output through stdout:**
6275

6376
```bash
@@ -153,3 +166,23 @@ openfn path/to/workflow.json -o tmp/output.json
153166

154167
Check out this detailed [tutorial](cli-walkthrough#7-running-workflows) on
155168
running workflows via the CLI.
169+
170+
---
171+
172+
### Load adaptor documentation
173+
174+
The CLI can list adaptor documentation in the terminal. Note that it has to download
175+
the adaptor to the repo (if it's not already there), which can take a moment.
176+
177+
**Print a list of adaptor functions**
178+
179+
```bash
180+
openfn docs http
181+
```
182+
183+
184+
**Show docs for a specific function**
185+
186+
```bash
187+
openfn docs http post
188+
```

docs/get-help/support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Support for OpenFn Implementations
3-
sidebar_label: Support
3+
sidebar_label: Get Help
44
---
55

66
## Ask the Community!

docs/get-started/glossary.md

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
---
2-
sidebar_label: Glossary for Integration
2+
sidebar_label: Glossary
33
title: A glossary for data integration
44
---
55

6-
Now that we've got a basic understanding of what an integration is, it's
7-
important to establish some of the foundational concepts we need to press
8-
forward. This doesn't mean you can't use OpenFn if you don't know what any of
9-
these words mean prior to reading our documentation, but it does mean that some
10-
of the most important tasks along the OpenFn journey will assume at least a
11-
basic understanding of each of these terms. In some cases, we also link to
12-
further reading if you want a better understanding of some part of your data
13-
integration picture.
6+
This glossary establishes some of the foundational concepts and terms used while
7+
talking about data integration and workflow automation.
148

15-
Note: This glossary is meant to be OpenFn-agnostic. The rest of the docs and
9+
This doesn't mean you can't use OpenFn if you don't know what any of these words
10+
mean prior to reading our documentation - but it does mean that some of the most
11+
important tasks along the OpenFn journey will assume at least a basic
12+
understanding of each of these terms.
13+
14+
This glossary is meant to be OpenFn-agnostic. The rest of the docs and
1615
[Key Concepts page](/documentation/get-started/terminology) help you to get a
17-
picture of the parts of OpenFn, what we call them, and why, but this glossary is
18-
really meant as a prerequisite to all those other things to aid users with no
16+
picture of the parts of OpenFn, what we call them, and why - but this glossary
17+
is really meant as a prerequisite to all those other things to aid users with no
1918
experience in this area.
2019

2120
:::tip Something missing?
@@ -133,8 +132,8 @@ data to a destination system.
133132

134133
## Webhook
135134

136-
A [webhook](/documentation/build/triggers#webhook-event-triggers) (also
137-
called a web callback or HTTP push API — thanks
135+
A [webhook](/documentation/build/triggers#webhook-event-triggers) (also called a
136+
web callback or HTTP push API — thanks
138137
[SendGrid](https://sendgrid.com/blog/whats-webhook/)!) is a feature of an
139138
application that allows <i>pushing</i>. It's often configured to notify some
140139
external URL when an event occurs. A system administrator might create a

docs/get-started/home.md

+33-31
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
---
2-
title: About
2+
title: What is Openfn?
33
id: home
44
sidebar_label: What is OpenFn?
55
slug: /
66
---
77

8-
:::tip Automation, integration, & interoperability
9-
10-
OpenFn is open source software that makes it easier for governments and NGOs to
11-
_connect_ the different technologies they use, automate critical business
12-
processes, and scale their interventions. OpenFn enables automation,
13-
integration, and data interoperability for the worlds most impactful
14-
organizations.
15-
16-
:::
17-
18-
## What is OpenFn?
19-
208
**OpenFn is the leading
219
[Digital Public Good](https://digitalpublicgoods.net/digital-public-goods/) for
22-
workflow automation**–a platform that's been used by 70+ NGOs and government
23-
ministries to automate and integrate critical business processes and information
24-
systems.
10+
workflow automation**.
11+
12+
It is a platform that's been used by 70+ NGOs and government ministries to
13+
automate and integrate critical business processes and information systems.
2514

2615
**Connect any app** with OpenFn's library of open-source [Adaptors](/adaptors/)
2716
(i.e., connectors). From last-mile services to national-level reporting, OpenFn
@@ -30,15 +19,25 @@ interoperability at all levels.
3019

3120
OpenFn can be deployed locally or on the secure
3221
[cloud-hosted platform](https://openfn.org/pricing). See the
33-
[Deploy docs](/documentation/deploy/options) for more on deployment options and
34-
requirements.
22+
[Deployment docs](/documentation/deploy/options) for more on deployment options
23+
and requirements.
3524

3625
To support implementers, OpenFn has an online
3726
[community](https://community.openfn.org), documentation, and
3827
[support](mailto://[email protected]). Contact
3928
[[email protected]](mailto://[email protected]) to learn about
4029
OpenFn implementation partners and the OpenFn Partner Program.
4130

31+
:::tip Automation, integration, & interoperability
32+
33+
OpenFn is open source software that makes it easier for governments and NGOs to
34+
_connect_ the different technologies they use, automate critical business
35+
processes, and scale their interventions. OpenFn enables automation,
36+
integration, and data interoperability for the worlds most impactful
37+
organizations.
38+
39+
:::
40+
4241
## Our products
4342

4443
OpenFn has a suite of products, which are all fully interoperable. This gives
@@ -52,12 +51,15 @@ open-source `OpenFn Integration Toolkit`, which is a **Digital Public Good** (a
5251

5352
The core OpenFn products include:
5453

55-
- **[OpenFn/lightning](https://github.com/OpenFn/lightning): the "v2"** open
56-
source platform - current version
57-
- OpenFn/platform v1: replaced by the v2; soon to be sunsetted in 2025
54+
- **[OpenFn/lightning](https://github.com/OpenFn/lightning)**: our open source
55+
data integration & workflow automation platform. This is the "v2" version
56+
currently in use.
57+
- OpenFn/platform: the first version of our platform. Replaced by v2 and due to
58+
be sunsetted in 2025
5859
- [**OpenFn/adaptors**](https://github.com/OpenFn/adaptors): source code for
5960
adaptors
60-
- [**OpenFn/kit**](https://github.com/OpenFn/kit): developer tooling & CLI
61+
- [**OpenFn/kit**](https://github.com/OpenFn/kit): CLI, developer tools and
62+
Javascript runtimes
6163
- [**OpenFn/docs**](https://github.com/OpenFn/docs): documentation & source for
6264
docs.openfn.org
6365

@@ -66,15 +68,15 @@ See all products and code at [Github.com/OpenFn](https://github.com/OpenFn).
6668
### OpenFn v2: Lightning ⚡
6769

6870
When you hear "OpenFn", think
69-
[OpenFn/lightning](https://github.com/OpenFn/lightning/)--**the OpenFn "v2"**.
70-
It is a _fully open source_ workflow automation web application which can be
71-
deployed and run anywhere. It is designed for governments and NGOs who want
72-
state-of-the-art workflow automation and data integration/interoperability
73-
capabilities with fully-fledged user management and auditing capabilities
74-
through a managed _or_ entirely self-hosted platform.
71+
[OpenFn/lightning](https://github.com/OpenFn/lightning/). v2 is a _fully open
72+
source_ workflow automation web application which can be deployed and run
73+
anywhere. It is designed for governments and NGOs who want state-of-the-art
74+
workflow automation and data integration/interoperability capabilities with
75+
fully-fledged user management and auditing capabilities through a managed _or_
76+
entirely self-hosted platform.
7577

76-
The v2 leverages the same tried-and-trusted core technology as the OpenFn v1 and
77-
comes with an improved, visual interface for building integrations.
78+
Version 2 leverages the same tried-and-trusted core technology as the OpenFn v1
79+
and comes with an improved, visual interface for building integrations.
7880

7981
![OpenFn Workflow Canvas](/img/case_referral_workflow.png)
8082

@@ -83,7 +85,7 @@ comes with an improved, visual interface for building integrations.
8385
on Youtube to watch videos that will help you get started quickly, or check out
8486
the other docs pages on the site.
8587

86-
:::info OpenFn v2 replaces the v1
88+
:::info OpenFn v2 replaces v1
8789

8890
OpenFn v2 is available to any new users. All organizations currently using the
8991
legacy OpenFn v1 platform will be migrated to OpenFn v2 by the end of 2024.

docs/get-started/standards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sidebar_label: Standards
33
title: Standards & OpenFn
44
---
55

6-
OpenFn’s software follows global standards for open source software and for workflow engine solutions. Read on to learn how OpenFn complies with specific standards.
6+
OpenFn follows global standards for open source software and for workflow engine solutions. Read on to learn how OpenFn complies with specific standards.
77

88

99
## Digital Public Good

docs/get-started/terminology.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ find some OpenFn-specific terminology that's important to understand. This page
77
is your reference guide—a glossary of the most important _OpenFn-specific_ words
88
and what they mean.
99

10-
:::note Something missing?
10+
:::tip Something missing?
1111

1212
If you've come across a word, phrase, or concept that you think is missing from
1313
this page, open an issue on [OpenFn/docs](https://github.com/OpenFn/docs),

docs/get-started/try-out.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ without limits. See our Github repo for developer docs:
4949

5050
:::info Questions?
5151

52-
Don't forget to check out the new docs on specific featurs (see menu sidebar),
53-
browse the [main docs page](./home.md), or post questions on
54-
[Community](https://community.openfn.org) if you have any questions.
52+
Check out these docs for more details on specific features (see menu sidebar),
53+
browse the [main docs page](./home.md), or post your questions on
54+
[Community](https://community.openfn.org).
5555

5656
:::

0 commit comments

Comments
 (0)