It would be nice if we had links from the API site back to documentation:
- link http://api.drupal.org/api/drupal to http://drupal.org/developing/api
- link topics back to subpages of http://drupal.org/developing/api
I see that http://api.drupal.org/api/drupal/includes!database!database.inc/group/da... has a link to http://drupal.org/developing/api/database, but it's buried at the bottom and isn't formatted correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | documentation-add-link-to-api-doc-1750442-3.patch | 424 bytes | Unitoch |
Comments
Comment #1
jhodgdonThe first link seems like a good idea. That can be added to the index.php file in the Documentation project's git repository, which generates the Drupal landing pages (would need to be added to 6.x, 7.x, 8.x branches), and that's in subdirectory "developer".
The second one is not possible to do in a systematic way. Hopefully most topics have links, but for ones that don't, you can patch the core docs.
So this should not be an "infrastructure" issue... it should be made into specific issues for the specific places that need patches. For the moment, moving to the Documentation project to take care of the first suggested link.
Comment #2
joachim commentedOk. For the DB API link, filed #1751612: badly formatted @link in Database docs. I'll file for the others when I spot them.
Comment #3
Unitoch commentedThe Drupal 8 doc already had a link back to https://drupal.org/developing/api/8
Here's a patch for the 7.x-1.x branch
Comment #4
jhodgdonGood idea. Agreed 8.x is fixed. Thanks for the 7.x patch! Committed to the 7.x-1.x branch.
Comment #6
joachim commentedA relative link doesn't work here, because it's a different subdomain: https://api.drupal.org/developing/api is a 404.
And also, the API module can be run by anyone, anywhere.
Comment #8
jhodgdonDoh. Fixed that directly (it's a contrib repository so a bit more informal procedures can apply). Thanks for checking joachim!