Skip to content

Commit 63ed56d

Browse files
committed
fix: handle collapsibles
1 parent cf5141b commit 63ed56d

File tree

1 file changed

+11
-1
lines changed
  • docs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean

1 file changed

+11
-1
lines changed

docs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/github-ocean.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ When configuring the integration **using Port**, the YAML configuration is globa
8787
The `repositoryType` parameter filters which repositories are ingested. It corresponds to the `type` parameter in GitHub's [List organization repositories](https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories) API.
8888

8989
<details>
90-
<summary>Possible values:</summary>
90+
<summary><b>Possible values (Click to expand)</b></summary>
9191

9292
* `all` (default): All repositories accessible to the provided token.
9393
* `public`: Public repositories.
@@ -218,6 +218,8 @@ The following configuration fetches all `package.json` files from "MyRepo" and "
218218
The `organization` field is optional when `githubOrganization` is set in the deployment config. It is required when no deployment-level organization is provided (e.g., Classic PAT with multiple organizations defined in your Port mapping).
219219
:::
220220

221+
<details>
222+
<summary><b>Package file mapping example (click to expand)</b></summary>
221223
```yaml showLineNumbers
222224
resources:
223225
- kind: file
@@ -244,6 +246,8 @@ resources:
244246
project_version: .content.version
245247
license: .content.license
246248
```
249+
</details>
250+
247251
248252
:::tip Test your mapping
249253
After adding the `file` kind to your mapping configuration, click on the `Resync` button. When you open the mapping configuration again, you will see real examples of files fetched from your GitHub organization.
@@ -743,6 +747,8 @@ For example, say you want to track/manage a project's dependencies in Port. One
743747

744748
The following configuration fetches a `package.json` file from a specific repository, and creates an entity for each of the dependencies in the file, based on the `package` blueprint:
745749

750+
<details>
751+
<summary><b>File mapping example for mulitiple entities (click to expand)</b></summary>
746752
```yaml showLineNumbers
747753
resources:
748754
- kind: file
@@ -770,6 +776,7 @@ resources:
770776
version: .item.value
771777
relations: {}
772778
```
779+
</details>
773780

774781
#### Multi-document YAML files
775782

@@ -798,6 +805,8 @@ When `skipParsing` is set to `true`, the file content will be kept in its origin
798805

799806
Here's an example that ingests the raw content of a `values.yaml` file into the `content` property of a `file` entity:
800807

808+
<details>
809+
<summary><b>File mapping example for ingesting raw content (click to expand)</b></summary>
801810
```yaml
802811
resources:
803812
- kind: file
@@ -819,6 +828,7 @@ resources:
819828
properties:
820829
content: .content
821830
```
831+
</details>
822832

823833
#### Limitations
824834

0 commit comments

Comments
 (0)