Skip to main content



      Home
Home » Eclipse Projects » Mylyn » WikiText Linking to Other Files
WikiText Linking to Other Files [message #67857] Mon, 06 April 2009 08:22 Go to next message
Eclipse UserFriend
How can I link to other files as indicated in this example:

Files:
TestFileOne.textile
TestFileThree.mediawiki
TestFileFive.mediawiki
TestyDir/TestFileFour.mediawiki
TestyDir/TestFileTwo.textile

Content of TestFileThree.mediawiki:
same level
[[TestFileFive| link to test5]]
[[TestFileFive]]
[TestFileFive]
deeper level
[[TestyDir/TestFileFour| link to test4]]
[[TestFileFour| link to test4]]
[TestyDir/TestFileFour]
[TestFileFour]

Content of TestFileOne.textile:
"link to test/test2":TestyDir/TestFileTwo

Generating HTML or Eclipse Help does not add a suffix ".html" to the link
resources. So, the links are not valid if you do not add it manually. Does
an alternate approach exist?

Thank you, Torsten
Re: WikiText Linking to Other Files [message #67899 is a reply to message #67857] Mon, 06 April 2009 13:03 Go to previous message
Eclipse UserFriend
Torsten,

Link processing in WikiText is designed to work the same as the
underlying wiki markup language. In other words, links for MediaWiki
markup should work as they do in wiki.eclipse.org, and links for Textile
should work as they do at http://textile.thresholdstate.com/

I can see that this could be problematic when exporting multiple pages
from a MediaWiki such as Eclipsepedia since in Eclipsepedia pages don't
have an extension however in the Eclipse help system they do.

For now if you want your pages to link with a .html extension, then
you'll need to add the extension yourself. It may be a simple matter of
post-processing the transformed HTML files using a regular expression.
If you think that WikiText should have a feature to better support this
kind of processing please file a bug at bugs.eclipse.org.

David

Torsten Krohn wrote:
> How can I link to other files as indicated in this example:
>
> Files:
> TestFileOne.textile
> TestFileThree.mediawiki
> TestFileFive.mediawiki
> TestyDir/TestFileFour.mediawiki
> TestyDir/TestFileTwo.textile
>
> Content of TestFileThree.mediawiki:
> same level
> [[TestFileFive| link to test5]]
> [[TestFileFive]]
> [TestFileFive]
> deeper level
> [[TestyDir/TestFileFour| link to test4]]
> [[TestFileFour| link to test4]]
> [TestyDir/TestFileFour]
> [TestFileFour]
>
> Content of TestFileOne.textile:
> "link to test/test2":TestyDir/TestFileTwo
>
> Generating HTML or Eclipse Help does not add a suffix ".html" to the
> link resources. So, the links are not valid if you do not add it
> manually. Does an alternate approach exist?
>
> Thank you, Torsten
>
Re: WikiText Linking to Other Files [message #597374 is a reply to message #67857] Mon, 06 April 2009 13:03 Go to previous message
Eclipse UserFriend
Torsten,

Link processing in WikiText is designed to work the same as the
underlying wiki markup language. In other words, links for MediaWiki
markup should work as they do in wiki.eclipse.org, and links for Textile
should work as they do at http://textile.thresholdstate.com/

I can see that this could be problematic when exporting multiple pages
from a MediaWiki such as Eclipsepedia since in Eclipsepedia pages don't
have an extension however in the Eclipse help system they do.

For now if you want your pages to link with a .html extension, then
you'll need to add the extension yourself. It may be a simple matter of
post-processing the transformed HTML files using a regular expression.
If you think that WikiText should have a feature to better support this
kind of processing please file a bug at bugs.eclipse.org.

David

Torsten Krohn wrote:
> How can I link to other files as indicated in this example:
>
> Files:
> TestFileOne.textile
> TestFileThree.mediawiki
> TestFileFive.mediawiki
> TestyDir/TestFileFour.mediawiki
> TestyDir/TestFileTwo.textile
>
> Content of TestFileThree.mediawiki:
> same level
> [[TestFileFive| link to test5]]
> [[TestFileFive]]
> [TestFileFive]
> deeper level
> [[TestyDir/TestFileFour| link to test4]]
> [[TestFileFour| link to test4]]
> [TestyDir/TestFileFour]
> [TestFileFour]
>
> Content of TestFileOne.textile:
> "link to test/test2":TestyDir/TestFileTwo
>
> Generating HTML or Eclipse Help does not add a suffix ".html" to the
> link resources. So, the links are not valid if you do not add it
> manually. Does an alternate approach exist?
>
> Thank you, Torsten
>
Previous Topic:Reopen Thread: WikiText Preview
Next Topic:[API] dealing with priorites
Goto Forum:
  


Current Time: Fri Jun 20 01:13:01 EDT 2025

Powered by FUDForum. Page generated in 0.04846 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top