OpenFn / adaptors

The new home for OpenFn adaptors; re-usable connectors for the most common DPGs and DPI building blocks.
GNU General Public License v3.0
6 stars 8 forks source link

Docs: split API into Operations and Functions list #613

Closed josephjclark closed 2 months ago

josephjclark commented 3 months ago

Summary

This PR changes the docs template so that Operations and Functions feature in two different lists.

This helps make it clear what is an Operation and what is a Plain Old Function

Details

As a bonus fix, indenting on the right hand contents menu has been fixed.

These changes do not affect the adaptor JSdoc at all. It just works out of the box.

Screenshots from a first pass:

image image image

Issues

Closes https://github.com/OpenFn/docs/issues/439

Related to #522

Further work

josephjclark commented 3 months ago

I wonder how the common API fits into this.

I don't want 4 lists - adaptor operations, adaptor functions, common functions, common operations. That's chaos.

We can't "merge" operations and functions from common, because it's confusing.

So maybe we list everything in one list, and perhaps add a* if it comes from common?

josephjclark commented 3 months ago

One of the things with the common API is that, because it's the same for all adaptors, once you know the main common functions, they just sort of get in the way.

So yes, you want to see that the common functions are there. And its critical for new users. But I do think they're second class citizens, or there should be the option to hide them, or something.

josephjclark commented 2 months ago

I wonder if just adding a tag for Operations is a better way to go here. That still leaves namespaces to work out though...