ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is it possible to specify a default ros version with the roswiki macros?

asked 2011-10-28 02:08:44 -0600

Adolfo Rodriguez T gravatar image

I'm writing ros-distribution-specific wiki pages as shown in the bottom of the post, and I'd like to display by default a page that does not correspond to the latest stable release (in my case i want to display diamondback instead of electric). Is this possible?, and if so, where can I find the relevant documentation?.

TIA.

<<Version()>>

{{{#!wiki version diamondback
<<Include(foo/diamondback)>>
}}}

{{{#!wiki version electric
<<Include(foo/electric)>>
}}}
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-10-28 08:50:06 -0600

kwc gravatar image

The default version is currently hardcoded in the javascript. We don't have cycles to rewrite this right now, but would happily accept a patch to the javascript and wiki macro code that would enable more customized setting.

The code for the javascript is here:

http://ros.org/_wiki/common/js/rosversion.js

The code for the version macro is here:

https://code.ros.org/svn/ros/stacks/rosorg/trunk/roswiki/macro/

edit flag offensive delete link more
1

answered 2011-10-28 03:03:50 -0600

joq gravatar image

The version is global (recently changed to Electric).

I don't know any way to override that. Maybe someone else does.

edit flag offensive delete link more

Comments

You can write you're own buttons using the seesaw macros http://www.ros.org/wiki/seesawexample but I'd recommend not doing that and just putting a clear header at the top, saying "If you want Diamondback, click below." Or you could lay the documentation out side by side and not use any macros.
tfoote gravatar image tfoote  ( 2011-10-28 08:50:11 -0600 )edit
The clear heading stating the supported version is what I had and I'll stick to that for now. Thanks all for pointing out the relevant places that enforce the current behavior.
Adolfo Rodriguez T gravatar image Adolfo Rodriguez T  ( 2011-11-01 23:33:11 -0600 )edit

Question Tools

Stats

Asked: 2011-10-28 02:08:44 -0600

Seen: 281 times

Last updated: Oct 28 '11