catalpa-cl / inceptalytics

An easy-to-use API for analyzing INCEpTION annotation projects.
16 stars 7 forks source link

add documentation. #8

Closed simulacrum6 closed 12 months ago

simulacrum6 commented 2 years ago

Currently there is no external documentation for the package api. All api functions have a docstring though. There are plenty of automatic documentation tools to create a documentation from those.

Docstrings should probably be extended to also include usage examples.

zahertalab commented 2 years ago

Hi

Let me make a try.

simulacrum6 commented 2 years ago

Hey, thanks for your offer! What did you have in mind? The automatic documentation tool or working on the docstrings?

zahertalab commented 2 years ago

I'm thinking of automatic documentation tools right now. Have you some of them?

simulacrum6 commented 2 years ago

Okay, cool.

There are some out there. Sphinx is pretty common. It generates documentation from docstrings and the output can be integrated with readthedocs and setuptools (which we use for building the project).

So if you want to integrate Sphinx, you are more than welcome.

zahertalab commented 2 years ago

Ok, this is my first time to corporate. I'm just seeing how to use Github. For your issue, where I can start? setuptools give me 404!

simulacrum6 commented 2 years ago

Fork the repository and read up on how to set up Sphinx and then generate the Documentation using that tool. When you have a working solution, create a pull request. Don't worry about the rest for now.

zahertalab commented 2 years ago

Yes, thank you. I'm learning about them for the last few days. And I hope to start soon. Thanks for your patience!

AbuTuraab commented 2 years ago

Hi there, let me help you with your documentation.

zahertalab commented 2 years ago

OK. Now, where to find the package api?

zesch commented 2 years ago

What do you mean?

zahertalab commented 2 years ago

Currently there is no external documentation for the package api. All api functions have a docstring though. There are plenty of automatic documentation tools to create a documentation from those.

I mean this

zesch commented 2 years ago

https://github.com/ltl-ude/inceptalytics/blob/main/inceptalytics/analytics.py