diff --git a/docs/assets/scss/_styles_project.scss b/docs/assets/scss/_styles_project.scss index 0ae5ae964..f4347f7eb 100644 --- a/docs/assets/scss/_styles_project.scss +++ b/docs/assets/scss/_styles_project.scss @@ -20,6 +20,7 @@ @import "tooltip"; @import "homepage"; @import "tables"; +@import "heading-anchor"; @import "content-select"; @import "embedded-image"; @import "api-reference"; @@ -28,7 +29,6 @@ @import "404"; @import "parameters-block"; @import "parameter"; -@import "heading-anchor"; #print { display: none; // Hide print functionality for now diff --git a/docs/assets/scss/menu.scss b/docs/assets/scss/menu.scss deleted file mode 100644 index d41f2fd6b..000000000 --- a/docs/assets/scss/menu.scss +++ /dev/null @@ -1,227 +0,0 @@ -@import "variables/variables"; - -.td-sidebar { - position: relative; - display: flex; - flex-direction: column; - padding-top: $header-height; - padding-left: 0; - padding-bottom: 0; - border: none; - background: none; -} - -.gd-docs-menu { - position: fixed; - top: $header-first-nav-height + 1px; - bottom: 0; - left: -100%; - z-index: 33; - overflow: auto; - width: calc(100% - 55px); - flex: 1 1 auto; - padding: 32px 40px; - background: #f8f8f8; - transition: $transition; - - @include mq(medium) { - position: absolute; - top: $header-height; - left: 0; - right: 0; - bottom: 0; - z-index: 0; - width: 100%; - max-width: 380px; - - @supports(position: sticky) { - position: sticky; - bottom: auto; - max-height: calc(100vh - #{$header-height}); - } - } - - &.init { - opacity: 0; - } - - &__mobile-trigger { - display: none; - } - - &__mobile-icon { - position: fixed; - top: $header-first-nav-height; - display: flex; - justify-content: center; - align-items: center; - width: 55px; - height: $header-second-nav-height; - left: 10px; - z-index: 32; - transition: $transition; - - &::before { - content: url("../img/burger.svg"); - display: block; - width: 26px; - height: 22px; - } - - &::after { - content: ""; - display: none; - width: 31px; - height: 31px; - background-image: url("../img/close.svg"); - background-repeat: no-repeat; - background-size: contain; - } - - @include mq(medium) { - display: none; - } - } - - &__mobile-trigger:checked ~ & { - left: 0; - } - - &__mobile-trigger:checked ~ &__mobile-icon { - left: calc(100% - 55px); - - &::before { - display: none; - } - - &::after { - display: block; - } - } - - & > &-section { - padding-left: 0; - } - - &-section { - padding-left: 12px; - list-style-type: none; - - & + & { - padding-top: 1rem; - border-top: 1px solid $color-dove-gray; - } - - &__root { - margin-bottom: 0; - } - - &__root + & { - padding-top: 0; - border-top: 0; - } - } - - &-page__label ~ &-section { - padding-left: 0; - } - - // PETR: Menu styling is here - - &-page { - &__separator { - margin-top: 1rem; - margin-bottom: 1rem; - padding-top: 1rem; - border-top: 1px solid $color-dove-gray; - } - - &__title { - display: flex; - } - - &__link { - position: relative; - display: inline-block; - flex: 1 1 auto; - margin: 2px 20px 2px 0; // orig values -> 8px 20px 3px 0; - padding: 0 0 5px; - max-width: 100%; - font-size: 15px; - //font-family: "Lucida Console", "Courier New", monospace; - line-height: 1.5; - - &, - &:hover, - &:active, - &:focus { - color: $color-deep-purple; - } - - &:hover, - &:active, - &:focus { - text-decoration: underline; - } - } - - &.active > &__title &__link { - font-family: $gdfont-demibold; - color: $color-shocking-pink; - - &, - &:hover, - &:active, - &:focus { - text-decoration: none; - } - } - - &__toggle { - display: none; - } - - &__chevron { - margin: 4px 0 0; - cursor: pointer; - - svg { - transform: rotate(180deg); - } - } - - &__toggle:checked ~ &__title &__chevron { - svg { - transform: rotate(0deg); - } - } - - &__label { - display: block; - flex: 0 0 auto; - margin: 16px 0 16px -12px; - color: rgba($color-deep-purple, 0.4); - font-family: $gdfont-demibold; - font-size: 12px; - text-transform: uppercase; - } - } - - &-page__toggle ~ &-section { - display: none; - } - - &-page__toggle:checked ~ &-section { - display: block; - } - - h4 { - margin-top: 0; - margin-bottom: 1rem; - padding-bottom: 1rem; - border-bottom: 1px solid $color-dove-gray; - font-family: $gdfont-demibold; - font-size: 21px; - line-height: 1.25; - } -} diff --git a/docs/go.mod b/docs/go.mod index 6046f8e31..c12085e4e 100644 --- a/docs/go.mod +++ b/docs/go.mod @@ -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-20250724141246-310dd7684e82 // indirect + github.com/gooddata/gooddata-docs-theme v0.0.0-20250728083840-04b9dbaa193b // 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 diff --git a/docs/go.sum b/docs/go.sum index 2daa06ae2..a17d11fb6 100644 --- a/docs/go.sum +++ b/docs/go.sum @@ -28,6 +28,8 @@ github.com/gooddata/gooddata-docs-theme v0.0.0-20250724110042-81655c31f00b h1:w2 github.com/gooddata/gooddata-docs-theme v0.0.0-20250724110042-81655c31f00b/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA= github.com/gooddata/gooddata-docs-theme v0.0.0-20250724141246-310dd7684e82 h1:vetjOF/JcH99uBeMDV22JvRoPB+5rps03c72na5LMi4= github.com/gooddata/gooddata-docs-theme v0.0.0-20250724141246-310dd7684e82/go.mod h1:VVNP6Cmo+vC37RD3T/YHjyU/QdqftGY5z4G513LYyrA= +github.com/gooddata/gooddata-docs-theme v0.0.0-20250728083840-04b9dbaa193b h1:W9rFVkzudqvKQnHwQqy4HKgh+le78DHXqY+JVvcQIHc= +github.com/gooddata/gooddata-docs-theme v0.0.0-20250728083840-04b9dbaa193b/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= diff --git a/docs/layouts/docs/baseof.html b/docs/layouts/docs/baseof.html index 3a9e9af84..7268a14c5 100644 --- a/docs/layouts/docs/baseof.html +++ b/docs/layouts/docs/baseof.html @@ -22,7 +22,7 @@
{{ partial "toc.html" . }}
-
+
{{ partial "version-banner.html" . }} {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} {{ if .Draft }} diff --git a/docs/layouts/partials/sidebar-tree.html b/docs/layouts/partials/sidebar-tree.html index a50bad78d..b01da0d9a 100644 --- a/docs/layouts/partials/sidebar-tree.html +++ b/docs/layouts/partials/sidebar-tree.html @@ -1,6 +1,7 @@ +