-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathstructureddata.api-ref.html
More file actions
98 lines (96 loc) · 3.75 KB
/
structureddata.api-ref.html
File metadata and controls
98 lines (96 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{{- $pageData := .Page -}}
{{- $siteData := .Site -}}
{{- $pageUrl := printf "https://www.gooddata.com%s" $pageData.RelPermalink -}}
{{- $basePathVersionJson := partial "parseUrlBreadcrumbs.html" (dict "url" $pageUrl "variant" "before-version") -}}
{{- $basePathVersionArray := $basePathVersionJson | unmarshal -}}
{{- $basePathVersion := cond (gt (len $basePathVersionArray) 0) (index $basePathVersionArray 0) "https://www.gooddata.com/docs/python-sdk/latest/" -}}
{{- $breadcrumbsJson := partial "parseUrlBreadcrumbs.html" (dict "url" $pageUrl "variant" "after-version") -}}
{{- $breadcrumbs := $breadcrumbsJson | unmarshal -}}
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "{{ $basePathVersion }}#website",
"url": {{ $basePathVersion | jsonify }}
},
{
"@type": "Organization",
"@id": "https://www.gooddata.com/#organization",
"name": "GoodData",
"url": "https://www.gooddata.com"
},
{
"@type": "TechArticle",
"@id": "https://www.gooddata.com{{ $pageData.RelPermalink }}#article",
"headline": "{{ $pageData.Params.title }} | GoodData Python SDK",
"description": {{ if $pageData.Params.description }}{{ $pageData.Params.description | jsonify }}{{ else }}{{ $pageData.Summary | jsonify }}{{ end }},
"url": "https://www.gooddata.com{{ $pageData.RelPermalink }}",
"dateModified": {{ $pageData.Params.lastmod | jsonify }},
"author": {
"@id": "https://www.gooddata.com/#organization"
},
"publisher": {
"@id": "https://www.gooddata.com/#organization"
},
"isPartOf": {
"@id": "{{ $basePathVersion }}#website"
},
"about": {
"@id": "{{ $basePathVersion }}#software"
},
"articleSection": {{ $pageData.Parent.Title | jsonify }},
"inLanguage": "en",
"mainEntity": {
"@type": "SoftwareSourceCode",
"name": {{ $pageData.Params.title | jsonify }},
"description": {{ if $pageData.Params.description }}{{ $pageData.Params.description | jsonify }}{{ else }}{{ $pageData.Summary | jsonify }}{{ end }},
"programmingLanguage": "Python",
"codeSampleType": "full",
"codeRepository": "https://github.com/gooddata/gooddata-python-sdk",
"runtimePlatform": "Python 3.13+",
"targetProduct": {
"@id": "{{ $basePathVersion }}#software"
}
}
},
{
"@type": "WebPage",
"@id": "https://www.gooddata.com/docs/python-sdk/latest/administration/organization/update_name/#webpage",
"url": "https://www.gooddata.com/docs/python-sdk/latest/administration/organization/update_name/",
"name": "{{ $pageData.Params.title }} | GoodData Python SDK",
"isPartOf": {
"@id": "{{ $basePathVersion }}#website"
},
"breadcrumb": {
"@id": "https://www.gooddata.com{{ $pageData.RelPermalink }}#breadcrumb"
}
},
{
"@type": "BreadcrumbList",
"@id": "https://www.gooddata.com{{ $pageData.RelPermalink }}#breadcrumb",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://www.gooddata.com"
},
{
"@type": "ListItem",
"position": 2,
"name": "Documentation",
"item": "https://www.gooddata.com/docs/"
}{{- range $index, $breadcrumb := $breadcrumbs }}
{{- $segments := split (trim $breadcrumb "/") "/" }}
{{- $name := cond (eq (add $index 3) 3) "Python SDK" (index $segments (sub (len $segments) 1) | humanize) }},
{
"@type": "ListItem",
"position": {{ add $index 3 }},
"name": {{ $name | jsonify }},
"item": {{ $breadcrumb | jsonify }}
}{{- end }}
]
}
]
}