Skip to content

updates #31128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft

updates #31128

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
35 changes: 30 additions & 5 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,30 @@ pygmentsCodeFences: true
enableRobotsTXT: true

# don't publish cdocs source files
ignoreFiles: ["\\.mdoc\\.md$"]
ignoreFiles:
- "\\.mdoc\\.md$"
- "integrations_data"
- "hugpython"
- "examples"
- "local"
- "logs"
- "\\.(txt|log|zip|tar\\.gz|bak)$"

disableKinds:
- "RSS" # Major memory saver
- "taxonomy"
- "taxonomyTerm"

rss:
limit: 10 # Only recent items

publishDir: "./public"

# taxonomies
taxonomies:
#tag: "tags"
#category: "categories"
"video-category": "video-categories"
#taxonomies:
# #tag: "tags"
# #category: "categories"
# "video-category": "video-categories"

# language
defaultContentLanguage: "en"
Expand All @@ -26,12 +41,22 @@ defaultContentLanguageInSubdir: false
# Prevent autogeneration of jsconfig.json file
# See: https://gohugo.io/hugo-pipes/js/#import-js-code-from-assets
build:
writeStats: false
noJSConfigInAssets: true
# When to use the resource file cache, one of never, fallback, or always.
# Applicable when transpiling Sass to CSS. Default is fallback.
useResourceCacheWhen: "fallback"

caches:
getjson:
dir: :cacheDir/:project
maxAge: '1h'
images:
dir: :resourceDir/_gen
maxAge: '24h' # Cache images longer
assets:
dir: :resourceDir/_gen
maxAge: '24h'

# enableGitInfo so lastmod in sitemap.xml is based off git
enableGitInfo: true
Expand Down
10 changes: 5 additions & 5 deletions layouts/api/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,20 +161,20 @@ <h3 class="mt-2">{{ i18n "overview" }}</h3>
<p>
{{ $translate_action.description | default $endpoint.action.description | $dot.Page.RenderString }}
<!-- required permissions and scopes -->
{{ partial "api/permissions.html" (dict "context" $dot "endpoint" $endpoint "securitySchemes" $adat.components.securitySchemes "tag" $tag) }}
{{/* partial "api/permissions.html" (dict "context" $dot "endpoint" $endpoint "securitySchemes" $adat.components.securitySchemes "tag" $tag) */}}
</p>

<!-- querystring, path params, header params -->
{{ partial "api/arguments.html" (dict "context" $dot "endpoint" $endpoint) }}
{{/* partial "api/arguments.html" (dict "context" $dot "endpoint" $endpoint) */}}

<!-- request body -->
{{ partial "api/request-body.html" (dict "context" $dot "body" $endpoint.action.requestBody "resourcePage" $resourcePage "operationid" $endpoint.action.operationId "translate_action" $translate_action "version" $versionNum) }}
{{/* partial "api/request-body.html" (dict "context" $dot "body" $endpoint.action.requestBody "resourcePage" $resourcePage "operationid" $endpoint.action.operationId "translate_action" $translate_action "version" $versionNum) */}}

<!-- response -->
{{ partial "api/response.html" (dict "responses" $endpoint.action.responses "resourcePage" $resourcePage "operationid" $endpoint.action.operationId "translate_action" $translate_action "version" $versionNum) }}
{{/* partial "api/response.html" (dict "responses" $endpoint.action.responses "resourcePage" $resourcePage "operationid" $endpoint.action.operationId "translate_action" $translate_action "version" $versionNum) */}}

<!-- code example -->
{{ partial "api/code-example.html" (dict "context" $dot "resourcePage" $resourcePage "operationid" $endpoint.action.operationId "securitySchemes" $adat.components.securitySchemes "endpoint" $endpoint "version" $versionNum) }}
{{/* partial "api/code-example.html" (dict "context" $dot "resourcePage" $resourcePage "operationid" $endpoint.action.operationId "securitySchemes" $adat.components.securitySchemes "endpoint" $endpoint "version" $versionNum) */}}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/shortcodes/integration-items.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $integrations := where (where .Site.Pages "Params.custom_kind" "=" "integration") ".Params.beta" "!=" "true" }}
{{ $integrations := where (where .Site.RegularPages "Params.custom_kind" "=" "integration") ".Params.beta" "!=" "true" }}

{{ $lower := sort $integrations "Params.integration_title" }}

Expand All @@ -22,4 +22,4 @@

{{ end }}

{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion layouts/shortcodes/integrations.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $dot := . }}

<!-- From data file -->
{{ $integration_list := site.Pages }}
{{ $integration_list := site.RegularPages }}
{{ $integration_list := $integration_list | intersect (where $integration_list ".Section" "=" "integrations") }}
{{ $integration_list := $integration_list | intersect (where $integration_list ".File.Dir" "=" "integrations/") }}
{{ $integration_list := $integration_list | intersect (where $integration_list ".Params.beta" "!=" true) }}
Expand Down
Loading