-
Notifications
You must be signed in to change notification settings - Fork 10
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
WooCommerce Code Reference #6
Comments
Hi, thanks for the feedback! Can you please be more specific about what you don't like about the new documentation? |
Hi @peterfabian! I've got some improvement/fix ideas:
|
It would be also nice to display WC version since a method has been deprecated. |
I entirely agree. It is unreadable. Moreover the links to the source code simply redirect you to more documentation. You go around in circles but never actually get to the code. A big step backwards. |
I agree with @starypop # 1. There is a lack of direct visualization for implementing class / methods/ functions/ templates. Another thing is that woocommerce.js has some useful events however in the documentation they are not mentioned. |
Bumping the priority as for an open source project, having a usable and good documentation is important. |
There's already a repository for it, we should move all issues related to the code reference to it's repository. @starypop please feel free to open issues on https://github.com/woocommerce/code-reference |
@gregs-legs @starypop note that we had to move from APIGen to PHPDoc 3 RC, also APIGen stayed deprecated for almost 3 years, there's almost 2 years that we haven't updated our code reference, so all results for before was outdated, comparing both frameworks for sure there's things that we'll miss now, but we can't go backwards to APIGen again, but I'll appreciate all your help, since the code is open source and you'll can contribute in here. Thanks! |
We can't restore it, since we are using a new framework, we could try to work in some alternative. |
This not will not be possible, not without sacrificing to be mobile friendly. |
We never had any reference for |
Can you please list everything that you believe is unproductive? |
The documentation used to be really useful to understand the class hierarchy, for moving between classes, finding the function and then linking to the code. As it stands the functions list is unreadable - why give it such a narrow column ? Mobile Friendly ? Really ? How many people code on a mobile phone ? If you can find the function you are looking for, it helpfully (??) tells you where the function is - php file name and line number. But the link no longer takes you to that file and line, rather it takes you to another class reference file. You just go round in circles. What was good resource has been rendered pointless. |
@gregs-legs @starypop I just submitted a sample of the new template I'm working on, you can check it on: https://woocommerce.github.io/code-reference/v2/ (please note that the search is not set to work in that sub directory, but everything else should work). |
Disappointed to see this marked as closed - you've addresed some styling issues but a pointless document that looks nice is still pointless. By merging all class functions and inheritted class functions in to one page (plus an slightly expanded version of the same information lower down the same page) you can't see the wood for the trees. The old reference document used to be really useful for undertanding the scope of a class and seeing where it sits in the hierarchy. With this new reference document - you have to scroll through pages and pages of functions from other classes in the hope of finding something useful from the class itself. You really don't get any feel for what the class is all about or where it sits in the hierarchy. Moreover, you inevitably resort to a digital search and hope you've guess the key word correctly. But of course, if you already know what your looking for you might as well search the code itself. So what's the point of the reference document ? When it comes to a reference document - less is more. A simple list of member data and functions within the class and a separate list of inheritted functions is all that is required. With a direct link from each function to the code. Simple and useful. |
@gregs-legs sorry, but I addressed all issues listed in here. If I missed something I'm sorry. If you like we can start a new issue and we could work on those. So please don't be disappointed, I'm trying my best here, no feedback aren't getting ignored. Can you please elaborate what was better from the previous framework that's not so great on PHPDoc?
This is an screenshot from the previous page: Starts with a You can check the footer in here: So as you can see, all results get duplicated from the first page and the menu, there's also missing functions and no support for namespaces, something that we started to use and we should replace the use of Package in new code. Other thing that got improve in the new documentation is that now we can search for hooks and all items will redirect you to the source code in the code reference, and there's no more links to GitHub as used to be in the old documentation.
Please tell exactly what you don't think that plays well in the current front-page, maybe I can try to move into some sub-page. |
Note that this is a default on PHPDoc, I'm fixing several bugs on PHPDoc that isn't even fixed on their side, so I'm really trying my best in here. So please let's talk, I'm only trying to help everyone in here. |
Closing in favor of #11 |
I noticed changes in the documentation. This is horrible compared to before. Woocommerce had the best documentation for an open source project. Now everything is an unproductive mess.
The text was updated successfully, but these errors were encountered: