oceanprotocol / docs

🐬 Ocean Protocol documentation
https://docs.oceanprotocol.com
Apache License 2.0
61 stars 41 forks source link

ocean.py: not testable -> leads to bugs -> leads to high friction. And, DRY violation #1299

Closed trentmc closed 10 months ago

trentmc commented 1 year ago

The problem

In ocean.py repo, after great effort, we have CI infrastructure to auto-test the READMEs. This ensures that they are always working. So when we make changes, we'll know immediately if a mistake was made. And then people looking to use ocean.py aren't subjected to README bugs.

The docs repo, ocean.py section replicates the READMEs. The idea was to "reduce friction". But the opposite happens: it adds great risk of bugs, which therefore adds way more friction.

Put another way: status quo tried to reduce friction, but the result greatly increases it (because bugs)

Relevant datapoints

Candidate solutions

  1. Leave as-is. Do try to keep docs up-to-date with ocean.py. Pro: little up-front effort. Con: not sustainable if big changes to ocean.py
  2. Docs pass-through. Have just a single ocean.py page in docs, as a fat pass-through to the READMEs in ocean.py repo.
  3. Docs using ocean.py README code. In gitbook docs, find a way to auto-import key README code from ocean.py
  4. ocean.py has its own docs. Move gitbook functionality into ocean.py; move all the existing docs content there. Reconcile that content with ocean.py READMEs to (a) remove DRY violations (b) ensure it's all tested. In main docs repo, have a fat-pass through to the ocean.py repo's docs.
  5. other ideas?

Discussion

trentmc commented 10 months ago

Closing this, since it's not gonna happen anytime soon. Can revisit when we do.