Open jimkring opened 4 years ago
Indeed, why not. Would you like to document it?
Yes! I’d be happy to learn how to contribute to the use case docs. I’ll see if I can figure it out, and please let me know if you have any directions you’d like to give me.
Sounds good!
The docs are built with Sphinx. I also install sphinx-rtd-theme and sphinx-autobuild.
With those packages I cd in the docs/
directory and run sphinx-autobuild -p 1025 . _build/
to have sphinx watching the files and reloading the browser with the changes. That command runs a small http server in port 1025.
Regarding the use cases in the docs, for every use case, I create a file in the docs/usecases/
directory and add an entry to point to it in the docs/usecases.rst
file.
To write the new use case, fork the repository and work on the changes in your copy of the repository. Whenever you are ready to get a review of them simply file a Pull Request against this repository and I will see them right away.
It would be great to document the use case of how to delete all comments associated with an object, when the object is deleted. I asked this question and got a great answer by @danirus here: https://github.com/danirus/django-comments-xtd/issues/193#issuecomment-672658623
I tested the following code, inside of my
models.py
formyapp
and it works great!