From 38c859b313aaade257cfd06e84776d040141cf2d Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Wed, 12 Nov 2025 16:36:14 -0500 Subject: [PATCH] add api definitions product back in --- fern/assets/styles.css | 15 ++++++++++----- fern/docs.yml | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/fern/assets/styles.css b/fern/assets/styles.css index 1e9cf7f3c..ffc085025 100644 --- a/fern/assets/styles.css +++ b/fern/assets/styles.css @@ -163,6 +163,11 @@ h1, h2, h3 { grid-row: 3; } + > a[href*="api-definitions"] { + grid-column: 2; + grid-row: 3; + } + > a[href*="openapi"]:before { content: "Supported Specs"; font-weight: 500; @@ -218,16 +223,12 @@ h1, h2, h3 { grid-column: 3; grid-row: 5; transform: translateY(-96px); - + .fern-selection-item-icon { width: 1.5rem; height: 1.5rem; } } - - > a[href="/learn/api-definitions"] { - display: none; - } } } @@ -265,6 +266,10 @@ h1, h2, h3 { content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-cliapi-dark.png") !important; } +:is(.dark) .fern-product-selector-radio-group a[href*="api-definitions"] img { + content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/openapi-definition-dark.png") !important; +} + :is(.dark) .fern-product-selector-radio-group a[href*="openapi"] img { content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/openapi-definition-dark.png") !important; } diff --git a/fern/docs.yml b/fern/docs.yml index 09c8316d5..8a1df3939 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -59,6 +59,7 @@ products: icon: fa-regular fa-book image: ./images/product-switcher/openapi-definition-light.png slug: api-definitions + subtitle: Generate docs and SDKs from your spec - display-name: OpenAPI href: /learn/api-definitions/openapi/overview