Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossLink doesn't work #377

Open
twityhwan opened this issue Sep 2, 2015 · 4 comments
Open

crossLink doesn't work #377

twityhwan opened this issue Sep 2, 2015 · 4 comments

Comments

@twityhwan
Copy link

  1. There are classes 'A' and 'B'.
  2. 'B' inherited from 'A'.
  3. 'A' has a cross-link to 'B'. This cross-link works right.
  4. In document page of 'B', cross-link of 'A' doesn't work.

This is the documentation of A :

/**
  *  Parent class.
  *
  *  @class Test
  */

/**
 * {{#crossLink "Child"}}{{/crossLink}}
 *
 * @method method1
 * @example
 *     var rectangle = new Rectangle({
 *         color : 0xFF010203,
 *         width : 80,
 *         height : 35
 *     });
 */

This is the documentation of B :

/**
  *  Child class.{{#crossLink "Test/method1:method"}}{{/crossLink}}
  *
  *  @class Child
  *  @extends Test
  *  @constructor
  */

/**
 * This is method2.
 *
 *  **See also:**
 *  {{#crossLink "Test/method1:method"}}{{/crossLink}}
 *
 * @method method2
 */

a

b

@okuryu
Copy link
Member

okuryu commented Sep 2, 2015

It works for me.


2015-09-02 at 21 47

@zantinger
Copy link

zantinger commented Aug 12, 2016

Hi, I have the same problem whith crossLinks. I took the example above and test it on my code. The crosslinks for the class work, but links for methods give me only the output of the text like: Test/method1:method
I use yuidoc. 0.10.2 on Windows10

@zantinger
Copy link

Ok. It looks like that the problem is only on crome. With firefox it works correctly

@JL102
Copy link

JL102 commented Mar 1, 2022

I found that removing the " * " from the start of each line in the multiline comment fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants