Add Drupal docs to View 2 documentation

psynaptic - October 26, 2008 - 14:08
Project:Views
Version:6.x-2.x-dev
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

I'm the maintainer of http://api.freestylesystems.co.uk and have noticed a problem with the @mainpage tag used in Views 2.x. If you take a look at http://api.freestylesystems.co.uk/api/6 you will see that the Views 2 documentation has overridden the normal front page for the 6.x branch.

#1

psynaptic - November 3, 2008 - 12:09

I have deleted the views/docs folder now so those links in the original post are not showing the symptoms of this any longer. Please see attachment instead.

AttachmentSize
views-atmainpage.png 26.94 KB

#2

bdragon - November 7, 2008 - 20:32

Breaks contrib.api.rtk0.net as well, subscribing.

#3

bdragon - November 7, 2008 - 20:35

Hmm, possible workaround: I added a command to touch my mainpage include file after every update, seemed to do the trick.

#4

Damien Tournoud - November 7, 2008 - 23:18

Well, that's by design. API only supports one @mainpage per project. What were you expecting?

#5

bdragon - November 10, 2008 - 14:55

That modules wouldn't be so rude as to include a @mainpage in their own code?

#6

drumm - December 27, 2008 - 01:57
Category:bug report» feature request

The API module does not have a concept of what modules are. It should have that above branches so we can more-effectively documents contrib modules. When that is done, a @mainpage would be a good thing in a module.

#7

drumm - December 27, 2008 - 02:00

#8

Darren Oh - January 26, 2009 - 03:05
Project:API» Views
Version:5.x-1.x-dev» 6.x-2.x-dev
Component:Code» Documentation
Category:feature request» bug report
Status:duplicate» active

#9

Darren Oh - January 26, 2009 - 03:57
Status:active» reviewed & tested by the community

See http://drupal.org/node/1354#contrib for why this needs to be changed.

AttachmentSize
docs.php-326306-9.patch 564 bytes

#10

merlinofchaos - January 26, 2009 - 07:07
Status:reviewed & tested by the community» won't fix

On the assumption that api.module was never intended to do both contrib and core simultaneously, this is not really a bug. Since I'm publishing documentation with doxygen for just Views, it needs a @mainpage.

I recommend you simply don't run Views documentation through api.module; it can't handle it, anyway, and this patch would break *my* published documentation.

#11

drumm - January 26, 2009 - 13:12
Status:won't fix» duplicate

API module really needs to know what modules are: http://drupal.org/node/218306.

#12

Darren Oh - January 29, 2009 - 22:35
Status:duplicate» needs review

I'm familiar with the Views API site, and it does not include the Drupal core API. I have also set up documentation sites for some of my contributed modules which do include the core API. See http://xmlsitemap.darren.oh.name/ for an example.

Contributed module documentation is more useful when it is integrated with the core API documentation. I agree that the current API module can't yet handle Views documentation, but does it break anything to use a group as the front page and leave Drupal's main page intact?

#13

Darren Oh - May 26, 2009 - 15:46
Title:@mainpage of views 2 breaks 6.x branch front page» Add Drupal docs to View 2 documentation
Category:bug report» feature request

Changing the title to better reflect what is being requested. If Merlin takes @mainpage out of his documentation, he'll need to get it from the Drupal docs. Then we can all be happy.

#14

merlinofchaos - June 2, 2009 - 19:48

...if I take @mainpage out, then my doxygen site won't have a frontpage. How is this acceptable?

#15

Darren Oh - June 2, 2009 - 20:15

The Drupal docs will provide a @mainpage. It may also be possible to set another page as the front page.

#16

merlinofchaos - June 30, 2009 - 19:37
Status:needs review» won't fix

My doxygen site does not have the Drupal docs, therefore won't have a @mainpage.

I am not going to continue this discussion until it is made absolutely clear that I will NOT break the site that everybody uses for a site that a small handfull of people use. api.module can NOT handle classes, therefore does not do Views documentation properly. Supporting it at the expense of a site that *does* work is not good.

 
 

Drupal is a registered trademark of Dries Buytaert.