Skip to content
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

RELATED: WEB-3993 Bump theme version #396

Merged
1 commit merged into from
Oct 26, 2023
Merged
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
2 changes: 1 addition & 1 deletion docs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 // indirect
github.com/gooddata/gooddata-docs-theme v0.0.0-20231020110753-c96d5d57bff5 // indirect
github.com/gooddata/gooddata-docs-theme v0.0.0-20231026115610-865757c9da13 // indirect
github.com/google/docsy v0.7.1 // indirect
github.com/google/docsy/dependencies v0.7.1 // indirect
github.com/twbs/bootstrap v5.3.1+incompatible // indirect
Expand Down
2 changes: 2 additions & 0 deletions docs/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github.com/gooddata/gooddata-docs-theme v0.0.0-20231017144305-7224c1251b71 h1:TP
github.com/gooddata/gooddata-docs-theme v0.0.0-20231017144305-7224c1251b71/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA=
github.com/gooddata/gooddata-docs-theme v0.0.0-20231020110753-c96d5d57bff5 h1:jN+ygmdMBAErl2GTH7scqopUXtRyM6HvaA2Mgx7CmtY=
github.com/gooddata/gooddata-docs-theme v0.0.0-20231020110753-c96d5d57bff5/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA=
github.com/gooddata/gooddata-docs-theme v0.0.0-20231026115610-865757c9da13 h1:s6+8+l46mnvOU0SW3LD8thIBTNpv8xMhXxdJyIk+zbk=
github.com/gooddata/gooddata-docs-theme v0.0.0-20231026115610-865757c9da13/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA=
github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY=
github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc=
github.com/google/docsy/dependencies v0.7.1 h1:NbzYKJYMin2q50xdWSUzR2c9gCp7zR/XHDBcxklEcTQ=
Expand Down
25 changes: 14 additions & 11 deletions docs/layouts/shortcodes/python.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{{ $page := .Page }}
{{ $path := split (.Get 0) "." }}
{{ $version := partial "version.html" (dict "context" $page)}}

{{ with getJSON (printf "versioned_docs/%s/data.json" (partial "version.html" (dict "context" $page)).dirpath) }}
{{ $currentData := .}}
{{ range $path }}
{{ if (eq $currentData.kind "class") }}
{{ $currentData = $currentData.functions }}
{{ if $version }}
{{ with getJSON (printf "versioned_docs/%s/data.json" $version.dirpath) }}
{{ $currentData := .}}
{{ range $path }}
{{ if (eq $currentData.kind "class") }}
{{ $currentData = $currentData.functions }}
{{ end }}
{{$currentData = index $currentData .}}
{{ end }}
{{$currentData = index $currentData .}}
{{ end }}

{{ $objData := $currentData }}
{{ $objData := $currentData }}


<div class="python-ref">
{{ partial "python-object.html" (dict "object" $objData "path" $path "context" $page) }}
</div>
<div class="python-ref">
{{ partial "python-object.html" (dict "object" $objData "path" $path "context" $page) }}
</div>
{{ end }}
{{ end }}
Loading