Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions layouts/schema/single.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{{ define "main" }}
{{- $dot := . -}}
<!-- Grab all files from the custom_rules directory-->
{{ $filepath := printf "content/en/infrastructure/resource_catalog/" }}
{{ $files := readDir $filepath }}
<!-- check to ensure file exist-->
{{ if (fileExists $filepath)}}
<!-- Grab all resource pages from the current section (mounted from _vendor: content/en/infrastructure/resource_catalog/) -->
{{ $files := .CurrentSection.RegularPages }}
<!-- check to ensure pages exist-->
{{ if $files }}
<div class="row">
<div class="col-12 order-1">
<h1 id="pagetitle">{{ .Title }}</h1>
Expand All @@ -31,12 +30,12 @@ <h2 id="{{ $key | anchorize }}">{{ $key | upper }}</h2>
<div class="whatsnext mb-3">
<!-- For each section, loop over and display the links that include the key. ex: AWS, GCP... -->
{{ range $files }}
{{ if (findRE $lowerKey .Name) }}
{{ if (findRE $lowerKey .File.BaseFileName) }}
<div class="list-group">
<a class="list-group-item list-group-item-action list-group-item-white d-flex justify-content-between align-items-center" href='/infrastructure/resource_catalog/{{ strings.TrimSuffix ".md" .Name }}/'>
<a class="list-group-item list-group-item-action list-group-item-white d-flex justify-content-between align-items-center" href='{{ .RelPermalink }}'>
<span class="w-100 d-flex justify-content-between">
<span class="text">
<code>{{ strings.TrimSuffix ".md" .Name }}</code>
<code>{{ .File.BaseFileName }}</code>
</span>
</span>
{{- partial "img.html" (dict "root" $dot "src" "icons/list-group-whats-next-arrow-1.png" "class" "img-fluid static" "alt" "more") -}}
Expand Down
13 changes: 0 additions & 13 deletions local/bin/py/build/configurations/pull_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,19 +390,6 @@
options:
dest_path: '/security/default_rules/'

- repo_name: infrastructure-resources
contents:
- action: pull-and-push-folder
branch: prod
globs:
- "generated/md/external/*.md"
options:
dest_dir: '/infrastructure/resource_catalog/'
path_to_remove: 'generated/md/external/'
front_matters:
disable_edit: true
exclude_headers_from_search: true

- repo_name: datadog-agent
contents:
- action: pull-and-push-file
Expand Down
13 changes: 0 additions & 13 deletions local/bin/py/build/configurations/pull_config_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,6 @@
options:
dest_path: '/security/default_rules/'

- repo_name: infrastructure-resources
contents:
- action: pull-and-push-folder
branch: prod
globs:
- "generated/md/external/*.md"
options:
dest_dir: '/infrastructure/resource_catalog/'
path_to_remove: 'generated/md/external/'
front_matters:
disable_edit: true
exclude_headers_from_search: true

- repo_name: datadog-agent
contents:
- action: pull-and-push-file
Expand Down
Loading