Skip to content

Module redirect link in markdown #764

@stanipetrosyan

Description

@stanipetrosyan

What problem are you facing?

Actually I have a terraform directory with main code and another directory that contains modules like this:

.
├── terraform
│   ├── DOCS.md
│   ├── main.tf
│   ├── output.tf
│   ├── provider.tf
│   └── variables.tf
├── modules
│   ├── moduleA
│   │   ├── DOCS.md
│   │   ├── main.tf
│   │   └── variables.tf
│   ├── moduleB
│   │   ├── DOCS.md
│   │   ├── main.tf
│   │   └── variables.tf

with the generated readme using terraform-docs with markdown:

## Modules
| Name | Source | Version |
|------|--------|---------|
| <a name="module_moduleA"></a> [moduleA](#module\_moduleA) | ../modules/moduleA | n/a |
| <a name="module_moduleB"></a> [moduleB](#module\_moduleB) | ../modules/moduleB | n/a |

But if I click on a module link nothing is happening.

How could terraform-docs help solve your problem?

It would be great if the link could open the readme generated of the module.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions