-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest Documentation? #72
Comments
Check the right side of the main repository page: https://github.com/pytroll/aggdraw That is the closest to effbot's old docs with some improvements. I don't think there is anything necessarily missing compared to effbots stuff but yeah it needs usage examples. There aren't many new features right now except the master branch has a new version of libagg BUT it doesn't produce the exact same output which is why it hasn't been released. See the existing issues in this repository for examples of these issues and other plans for this project. |
The docs are also the first result on google: 😜 |
Oops, i guess i was a little too quick there :P I saw the doc folder but couldn't see any of the html output, only the scripts to dynamically build the docs which I assume are excluded in gitignore. I guess that partly answers my question, if I wanted to help with any docs, I would simply go in aggdraw.cxx and edit the related docstrings, as these are the basis for the doc generation. Some questions remain however:
Let me know if there's any particular ways I can help with these. |
The main started document for the documentation is https://github.com/pytroll/aggdraw/blob/master/doc/source/index.rst The Dib class is only included on Windows systems: Lines 2564 to 2575 in 4c7594d
Readthedocs is generating the docs on an Ubuntu system (iirc) so aggdraw never presents this function/class. We'd have to update the Dib code to be importable but not runnable on non-Windows (maybe raise a RuntimeError or OSError if used on non-Windows). My guess on the Draw methods missing is due to the poor design of aggdraw.cxx. The classes aren't actually classes, they are functions that produce instantiated objects. So when the sphinx generation runs and looks for the docstrings it can't find these "methods on a class" because there isn't actually any class. There are various issues on this repository about rewriting aggdraw to do this the right way (probably use Cython). I could see a small workaround being to append the method docs to the main Draw docstring, but I'm not sure how ugly this would get code wise and is asking for mistakes in the future. Any helps on the docs is appreciated. Most important to this project as a whole is to figure out what happened in newer versions of agg (the C/C++ library) to make the output not the same. Once we can make a release of aggdraw that produces the same results (or near the same) then we can rip it apart and rewrite it with modern best practices/standards. |
Thanks, this is all good info. Until the cxx can be reworked sometime in the future, I think it would be good to find a makeshift way to get the full complete documentation, maybe by stringing together the various docstring constants as you suggested. Some food for thought, I'll see if I can throw together a PR at some point. |
Oh yeah if at the C++ level the docstrings could just be appended strings that might be the least amount of duplicated code/documentation. |
the original effbot docs are down full doc; https://web.archive.org/web/20200719080546/https://effbot.org/zone/pythondoc-aggdraw.htm |
I haven't been following the latest developments on this project, but I see there's been a lot of new activity + bugfixes + new features. I hope to be using the latest version going forward however, so am in need of the latest documentation describing the latest API, especially now that the original effbot docs are down. I was trying to browse the code repo but couldn't seem to find anything, and reading the actual code is not as easy as it seems to be hidden in the various .cxx files which I'm not fully sure how to navigate.
Otherwise, loving all the progress and work to keep aggdraw alive, and especially excited about potentially exposing new agg features like gradients or fillpatterns etc.
The text was updated successfully, but these errors were encountered: