-
Notifications
You must be signed in to change notification settings - Fork 174
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
References to submodules with backticks and @{tag} #58
Comments
I think the latest push should sort out the issue. It came as a surprise to me, but |
Actually, the latest push indeed fixed some odds. And that's perfect. Huge thanks for that. --- Returns a `core.log` instance.
-- @treturn log a `core.log` instance
function lib.newLog() ... end |
It is a little hard to tell since the MWE repository has been removed, but it seems to me that needing the fully qualified module name is expected. If the only remaining thing here is a request for a shortcut way of reaching submodules, I think I'm going to suggest that's not a great idea for long term maintainability. I would be too easy to get things cross-wired if the module was ever refactored and not notice the problem. If there is something else I'm missing feel free to comment for re-evaluation. Alternatively if anybody has a PR they think is an improvement that doesn't break anything else I'd definitely consider the use case. |
Hi Steve,
I am actually facing to some (quite frustrating) issues with inline reference using @{tag} or backticks. Let's say that I have this layout for the code:
File
log.lua
implements a class (classlog
). Top level filelib.lua
also implements a class.Normally, without using explicitely the @module tag in any file header, LDoc would infer the module name. What will result, in the HTML output the following modules : Module
lib
, Modulecore.log
. What is absolutely perfect.(I have to mention here that, in each file, to declare the class being documented, I am using the tag @type).
Since the exact submodule name is
core.log
, LDOc assumes that inlininglog
(with backticks) would refer to some piece of code that exists within filecore.log.lua
.So, is there a possible workaround this ? So that I can write
log
(with backticks) or @{log} inlib.lua
and still have a reference to the very modulecore.log
?Best regards,
Roland
The text was updated successfully, but these errors were encountered: