Menu

#58 Allura Code Viewer: enable viewing documentation directly from the repository

open
nobody
Allura (2)
Other/Misc
2013-02-15
2013-02-07
DRC
No

This is one of several tickets I am creating to log what I feel are shortcomings in the new (Allura) code viewer relative to the old (ViewVC) code viewer. In all of these cases, simply providing a way for users to continue using ViewVC would be an acceptable workaround.

Several of my projects rely on the ability to view static HTML and text documents directly in the repository so that different versions of these documents can easily be linked from our wiki. For instance:

http://virtualgl.svn.sourceforge.net/viewvc/virtualgl/vgl/tags/2.3.2/doc/index.html
http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo/trunk/README-turbo.txt
http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo/branches/1.2.x/doc/html/group___turbo_j_p_e_g.html

The new code viewer provides no way of doing that. The closest I can get with the new viewer is to provide a link for viewing the text files with line numbers and other decorations:

https://sourceforge.net/p/libjpeg-turbo/code/HEAD/tree/trunk/README-turbo.txt

or for downloading the file (not displaying it in the browser):

https://sourceforge.net/p/libjpeg-turbo/code/HEAD/tree/trunk/README-turbo.txt?format=raw

But nothing can be done for HTML pages.

Suggested resolution:

Add a separate "view" mode for the file, perhaps implemented similarly to how you are implementing the History view. For instance:

https://sourceforge.net/p/libjpeg-turbo/code/HEAD/view/?path=/trunk/doc/html/group___turbo_j_p_e_g.html

Unless I miss my guess, this should allow static HTML pages and text documents in the repository to be displayed directly in the browser.

Discussion

  • DRC

    DRC - 2013-02-07

    Note also that, in ViewVC, when displaying an in-tree HTML file, it will correctly link to any other HTML pages in the same repository as well as correctly display images in the same repository, provided that the links to them are all relative. Thus, the new viewer would need to do likewise.

     
  • DRC

    DRC - 2013-02-07

    Sorry, this was misfiled. It should be under
    http://sourceforge.net/p/allura/tickets
    You can delete this copy. I will repost there.

     
  • Anonymous

    Anonymous - 2013-02-07

    This is fine here. The allura team checks this ticketing system as well.

     
  • DRC

    DRC - 2013-02-07

    OK, I also posted it as http://sourceforge.net/p/allura/tickets/5772/. Sorry for the duplication.

     

Log in to post a comment.