Closed thoraxe closed 6 years ago
Yes, that is a bit more problematic then it looks like, but have added two tool to help with this on the ruby
branch.
Two new functions, you can use in the template
module_path
generates the correct path to access the modulemodule_name
returns the name of the module as defined in the yml filewith this in place, you can do something like
link:{% module_path cns-deploy %}[{% module_name cns-deploy %}]
it's a bit more verbose, but helps with abstracting the implementation detail from the content repository.
Can we close this one?
@thoraxe ?
Given a module definition:
The following asciidoc generates a link, but the resulting URL does not work:
The URL should be:
/#/workshop/ocp-admin-testdrive/module/cns-deploy
But it ends up being:
/cns-deploy
Is there a special syntax for linking directly to a module? Or is this a bug with a hyphenated module name?