storacha / w3name

IPNS client and service for generating, updating, and tracking immutable names with signed updates
Other
45 stars 12 forks source link

chore: publish typedoc generated API docs #50

Closed yusefnapora closed 2 years ago

yusefnapora commented 2 years ago

This adds a typedoc npm script to the client package to generate API docs and also spruces up the doc comments a bit by adding @link tags and a bit of extra explanation in a few places.

Still needs:

yusefnapora commented 2 years ago

Hmm... not sure why the GH action's aren't running. Will debug this afternoon

yusefnapora commented 2 years ago

current output: https://bafybeigz5ymnlfexdbln7zwuoe4r2awgi4cw6a4fexub3c42bhrjlse2xe.ipfs.nftstorage.link/

yusefnapora commented 2 years ago

@francois-potato are we planning to automate the release process for the client npm package? That seems like a decent place to hook in the typedoc publish action.

If we're not there yet, I can add a script to manually generate the docs and check them into a gh-pages branch, or we could just always publish on merge to main (if files in the client package have changed).

yusefnapora commented 2 years ago

Heads up that I added a typedoc:publish npm script that publishes the typedoc output to github pages. It's now up here: https://web3-storage.github.io/w3name/

I also hooked it into the main client publish script, so it should update the typedocs whenever you publish the npm package (assuming you have write access to the repo).

joshJarr commented 2 years ago

Hey @yusefnapora, nice work! We do want to add the client to the automated release process, but for now we're manually releasing it using the npm run publish command - thanks for adding the typedoc publishing to this!

Happy to grant you permission to the npm package too if you like, do you have a npm user?

Thanks!

yusefnapora commented 2 years ago

Sweet, I'm sefnap on npm.

yusefnapora commented 2 years ago

Yay, I figured out / remembered how to add a status check with a preview link, so now you can click on "Details" in the API docs status check to see the current render.

2022-08-10_13-30

joshJarr commented 2 years ago

Cool, you should get an invite to collab on the npm package. Ace! Great shout on the preview link - makes it much easier to see and review docs changes, thanks!