lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Improve Documentation

Open acywatson opened this issue 2 years ago • 10 comments

Generic Issue for Documentation Improvement.

Others?

Working with API Docs

We use typedoc to autogenerate API docs.

Check out what I did here. If you go in and add similar comments to the functions in other files, they'll show up on the website. You can watch for changes and see them live by doing

npm run start:website

The changes will show up in the section you get to by clicking "API" in the site navigation.

Here are the typedoc docs: https://typedoc.org/guides/declaration-references/

acywatson avatar Aug 17 '22 14:08 acywatson

I'd add an example with initializing, updating, and persisting state (this should be most common use case)

fantactuka avatar Aug 17 '22 15:08 fantactuka

Ideally I'd like to see JSdoc comments in all exported objects, functions, etc. Using @example and adding links to documentation is great too for IDE experience.

DaniGuardiola avatar Aug 18 '22 16:08 DaniGuardiola

I would like to see for commands a description of the different priority levels. As a newcomer, it might avoid some confusion. (see #2868 as an example)

signalwerk avatar Aug 22 '22 16:08 signalwerk

I found this file that explains the idea and usage of decorator nodes way better than the documentation. Is there a reason for not having this file integrated in the documentation? Or could I try to merge them with a PR, so we see the information on the documentation?

signalwerk avatar Aug 24 '22 04:08 signalwerk

I found this file that explains the idea and usage of decorator nodes way better than the documentation. Is there a reason for not having this file integrated in the documentation? Or could I try to merge them with a PR, so we see the information on the documentation?

Yea, this is a good idea! I think we just overlooked it.

My idea would be to have a separate subheading under Concepts called "Decorators" that contains this content. Let me know if you need help doing that a PR would be welcome!

acywatson avatar Aug 24 '22 22:08 acywatson

um... I know where I write description about API Docs. But I dont know where I write example.

youngkyo0504 avatar Mar 09 '23 17:03 youngkyo0504

I'm trying npm run start:website and getting 'TYPEDOC_WATCH' is not recognized as an internal or external command, operable program or batch file. Any idea how to fix this? I've npm i to install all dependencies to no avail.

HarrySIV avatar Mar 09 '23 21:03 HarrySIV

Oh are you running windows? Easiest fix is to go into that script in the package.json and just locally delete TYPEDOC_WATCH. I will try to fix it to run on windows later

acywatson avatar Mar 09 '23 22:03 acywatson

um... I know where I write description about API Docs. But I dont know where I write example.

@youngkyo0504 hmmm - I guess there really isn't a place yet. Which example were you thinking of writing?

acywatson avatar Mar 10 '23 23:03 acywatson

um... I know where I write description about API Docs. But I dont know where I write example.

@youngkyo0504 hmmm - I guess there really isn't a place yet. Which example were you thinking of writing?

I'd like to write example:how to set initial editor state

youngkyo0504 avatar Mar 11 '23 01:03 youngkyo0504