[GRASS-dev] trac Wiki macro to link to manual page (G7:modulename)

Hi devs,

in this change
https://trac.osgeo.org/grass/wiki/Release/7.0.0beta-News?action=diff&version=7
I introduced the convenient G7:modulename macro which expands to the
respective manual page URL.
(in context: https://trac.osgeo.org/grass/timeline?from=2014-03-30T13%3A16%3A38-07%3A00&precision=second
)

So far so nice.

But now I wanted to add a new G72: macro for the same purpose.
Unfortunately I cannot find back nor recall how I implemented this
thing :slight_smile:

Anyone with an idea?

Markus

On Wed, Jun 1, 2016 at 4:19 PM, Markus Neteler <neteler@osgeo.org> wrote:

But now I wanted to add a new G72: macro for the same purpose.
Unfortunately I cannot find back nor recall how I implemented this
thing :slight_smile:

Anyone with an idea?

My guess is that they are not macros but some custom link syntax or perhaps
an extension (Trac plugin or some custom Python code). Here is what I found:

https://trac.edgewall.org/wiki/TracDev/IWikiSyntaxProviderExample
http://stackoverflow.com/questions/6002390/how-to-modify-trac-to-create-own-custom-link-format-traclinks
https://trac.edgewall.org/wiki/InterMapTxt
https://trac.edgewall.org/wiki/InterWiki

Do you plan to have G70 for the old release and always switch G7 to recent
release or perhaps trunk?

On Wed, Jun 1, 2016 at 11:02 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

My guess is that they are not macros but some custom link syntax or perhaps
an extension (Trac plugin or some custom Python code). Here is what I found:

https://trac.edgewall.org/wiki/InterMapTxt

Bingo :slight_smile:

https://trac.osgeo.org/grass/wiki/InterMapTxt?action=diff&version=6

Do you plan to have G70 for the old release and always switch G7 to recent
release or perhaps trunk?

Plan yes... it is just some work. I wonder about the risk to break links?

Markus

On Thu, Jun 2, 2016 at 1:16 AM, Markus Neteler <neteler@osgeo.org> wrote:
...

Do you plan to have G70 for the old release and always switch G7 to recent
release or perhaps trunk?

Plan yes... it is just some work. I wonder about the risk to break links?

ok done in InterMapTxt.

Then I have checked all trac pages and edited those of relevance:

https://trac.osgeo.org/grass/wiki/Release
- Release/7.2.0-News (unreleased, please update)
- Release/7.0.4-News
- Release/7.0.3-News
- Release/7.0.2-News
- Release/7.0.1-News
- Release/7.0.1RC-News
- Release/7.0.0-News
- Release/7.0.0RC-News
- Release/7.0.0beta-News

cheers,
Markus

--
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog

On Wed, Jun 1, 2016 at 7:37 PM, Markus Neteler <neteler@osgeo.org> wrote:

I wonder about the risk to break links?

ok done in InterMapTxt.

Nice, thanks. That looks good. So, now we are using G70 and G72 for
respective branches and releases and G7 for trunk till G8?

Then I have checked all trac pages and edited those of relevance:

https://trac.osgeo.org/grass/wiki/Release
- Release/7.2.0-News (unreleased, please update)
- Release/7.0.4-News
- Release/7.0.3-News
- Release/7.0.2-News
- Release/7.0.1-News
- Release/7.0.1RC-News
- Release/7.0.0-News
- Release/7.0.0RC-News
- Release/7.0.0beta-News

On Thu, Jun 2, 2016 at 2:27 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

Nice, thanks. That looks good. So, now we are using G70 and G72 for
respective branches and releases and G7 for trunk till G8?

(If no objections, then) yes.

Markus