Opened 11 years ago

Closed 10 years ago

Last modified 9 years ago

#12102 closed defect (fixed)

relative urls in copy/paste documentation examples

Reported by: Adam Peller Owned by:
Priority: high Milestone: 1.8
Component: Documentation Version: 1.5
Keywords: Cc: phiggins, nonken, klipstein
Blocked By: Blocking:


The docs seem to have regressed and show urls like this


in the copy/paste examples, so the content won't relocate for the user.

Change History (5)

comment:1 Changed 10 years ago by bill

Cc: phiggins,nonken,klipsteinphiggins, nonken, klipstein

Now they show links like <script src='/_static/dojo/../dojo/dojo.js' data-dojo-config='parseOnLoad: true'> but is that what you want? Regardless of whatever the link is, the user will need to change it to get the example to run on their system.

comment:2 Changed 10 years ago by Adam Peller

I don't remember the details, but I thought perhaps it would be simpler if the links were relative to the dojo root, so as not to assume any directory structure beyond what Dojo provides.

comment:3 Changed 10 years ago by bill

Milestone: tbd1.8
Resolution: fixed
Status: newclosed

OK, well now they are relative to the root so I guess we can close this, right?

comment:4 Changed 10 years ago by Adam Peller

it would be better if they didn't have "_static" and were relative to the dojo directory or its parent, to eliminate the step of setting up a directory called _static on the user's machine

comment:5 Changed 9 years ago by bill

I guess so, that would let the user throw the examples in their dojo directory (i.e. the directory containing dojo/, dijit/, and dojox/). I filed to track it.

Note: See TracTickets for help on using tickets.