Skip to content

Commit

Permalink
improve import git doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Sep 30, 2024
1 parent 761109a commit 133aeb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/sources/reference/config-blocks/import.git.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ title: import.git
The `import.git` block imports custom components from a Git repository and exposes them to the importer.
`import.git` blocks must be given a label that determines the namespace where custom components are exposed.

The entire repository is cloned, and the module path is accessible via the `module_path` keyword.
This enables your module to import other modules within the repository by setting relative paths in the [import.file][] blocks.

## Usage

```alloy
Expand Down Expand Up @@ -101,5 +104,6 @@ math.add "default" {
}
```

[import.file]: ../import.file/
[basic_auth]: #basic_auth-block
[ssh_key]: #ssh_key-block

0 comments on commit 133aeb0

Please sign in to comment.