Skip to content

Commit

Permalink
Hide gallery section if no exhibits are configured (#2549)
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski authored Jul 23, 2024
1 parent 4f8fc54 commit cdd7cf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/_nebari/stages/kubernetes_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ class JupyterLabGallerySettings(schema.Base):
title: str = "Examples"
destination: str = "examples"
exhibits: List[JupyterLabGalleryExhibit] = []
hide_gallery_without_exhibits: bool = True


class JupyterLab(schema.Base):
Expand Down
5 changes: 3 additions & 2 deletions src/_nebari/stages/kubernetes_services/template/jupyterhub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ variable "jupyterlab-default-settings" {
variable "jupyterlab-gallery-settings" {
description = "Server-side settings for jupyterlab-gallery extension"
type = object({
title = optional(string)
destination = optional(string)
title = optional(string)
destination = optional(string)
hide_gallery_without_exhibits = optional(bool)
exhibits = list(object({
git = string
title = string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ variable "jupyterlab-default-settings" {
variable "jupyterlab-gallery-settings" {
description = "Server-side settings for jupyterlab-gallery extension"
type = object({
title = optional(string)
destination = optional(string)
title = optional(string)
destination = optional(string)
hide_gallery_without_exhibits = optional(bool)
exhibits = list(object({
git = string
title = string
Expand Down

0 comments on commit cdd7cf9

Please sign in to comment.