#5540: search_doc produces incorrect URLs
--------------------+-------------------------------------------------------
 Reporter:  ddrake  |       Owner:  jhpalmieri                       
     Type:  defect  |      Status:  assigned                         
 Priority:  major   |   Milestone:  sage-3.4.1                       
Component:  misc    |    Keywords:  sphinx, documentation, search_doc
--------------------+-------------------------------------------------------
Changes (by jhpalmieri):

  * owner:  tba => jhpalmieri
  * status:  new => assigned
  * component:  documentation => misc


Comment:

 The attached patch fixes the problem for me.  I fixed the URLs by getting
 rid of the first two components of the path (replacing 'F', the filename,
 with {{{F.split('/', 2)[2]}}}).  I found another issue: for some reason,
 probably to get rid of the Sage banner which used to be part of the search
 output, the raw results 'r' of the search were processed using
 {{{r.splitlines()[4:]}}}.  Since the Sage banner is no longer part of the
 search output, this now discards the first four results.  (Therefore it's
 probably my fault: see #4832.) I fixed that, too.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5540#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to