#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: |
Description
The docs seem to have regressed and show urls like this
href="../../_static/js/dijit/themes/claro/claro.css"
in the copy/paste examples, so the content won't relocate for the user.
Change History (5)
comment:1 Changed 9 years ago by
Cc: | phiggins,nonken,klipstein → phiggins, nonken, klipstein |
---|
comment:2 Changed 9 years ago by
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 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
OK, well now they are relative to the root so I guess we can close this, right?
comment:4 Changed 9 years ago by
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 8 years ago by
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 https://github.com/phiggins42/rstwiki/issues/39 to track it.
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.