Skip to content

Commit

Permalink
RELATED: WEB-3993 Bump theme version
Browse files Browse the repository at this point in the history
  • Loading branch information
czechian committed Oct 26, 2023
1 parent 0a238cd commit 484c54d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
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 }}

0 comments on commit 484c54d

Please sign in to comment.