Skip to content

Commit

Permalink
[DOCS] Fix interactions with versioning dropdown (#9493)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessSaavedra committed Feb 22, 2024
1 parent 2d4b8b4 commit d9c7a5d
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 8 deletions.
1 change: 0 additions & 1 deletion docs/docusaurus/docs/resources/get_support.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
sidebar_label: 'Get support'
title: 'Get support'
hide_table_of_contents: true
description: Learn what resources are available to help you resolve issues with GX Cloud and GX OSS.
---

Expand Down
8 changes: 4 additions & 4 deletions docs/docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ module.exports = {
repository: 'great_expectations',
},
{
type: 'doc',
label: 'Home',
docId: 'gx_welcome',
to: '/docs/home',
position: 'right',
className: 'non-versioned-section',
},
{
type: 'doc',
label: 'GX Cloud',
docId: 'cloud/gx_cloud_lp',
to: 'docs/cloud',
position: 'right',
className: 'non-versioned-section',
},
{
type: 'doc',
Expand Down
11 changes: 11 additions & 0 deletions docs/docusaurus/src/css/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
box-shadow: unset;
height: unset;
padding: 0;

&:has(.non-versioned-section.navbar__link--active) {
.navbar__items .dropdown {
visibility: hidden;
}
}
}

.navbar__item {
Expand Down Expand Up @@ -86,6 +92,11 @@

.navbar__link--active {
border-bottom: 2px solid var(--ifm-color-primary);

&[href*="0.17"] {
border-bottom: none;
color: var(--ifm-navbar-link-color);
}
}

.header-cloud-link {
Expand Down
10 changes: 10 additions & 0 deletions docs/docusaurus/src/theme/NavbarItem/DropdownNavbarItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import DropdownNavbarItem from '@theme-original/NavbarItem/DropdownNavbarItem';

export default function DropdownNavbarItemWrapper(props) {
return (
// The href is overwritten to prevent default redirect when clicking on the label of the dropdown
// With the new href the user will stay in the current page even if they click it
<DropdownNavbarItem {...props} href={'#'} />
);
}
36 changes: 36 additions & 0 deletions docs/docusaurus/versioned_docs/version-0.17/oss/oss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: 'GX OSS'
description: Get started with GX OSS and learn more about GX OSS features and functionality.
hide_table_of_contents: true
pagination_next: null
pagination_prev: null
displayed_sidebar: docs
---

import LinkCardGrid from '@site/src/components/LinkCardGrid';
import LinkCard from '@site/src/components/LinkCard';

<p class="DocItem__header-description">Test and validate your Data Assets with our open source offering.</p>

### Prepare

<LinkCardGrid>
<LinkCard topIcon label="Get started with GX OSS" description="This is a great place to start if you're unfamiliar with GX OSS, or you want to use GX OSS with Databricks or a SQL Data Source in a production environment." to="/guides/setup/get_started_lp" icon="/img/small_gx_logo.png" />
<LinkCard topIcon label="Configure your GX OSS environment" description="Set up GX OSS in your specific environment." to="/guides/setup/setup_overview_lp" icon="/img/small_gx_logo.png" />
<LinkCard topIcon label="Connect to source data" description="Connect to source data stored on databases and local filesystems, request data from a Data Source, organize Batches in a file-based Data Asset, and connect GX OSS to SQL tables and data returned by SQL database queries." to="/guides/connecting_to_your_data/connect_to_data_lp" icon="/img/small_gx_logo.png" />
<LinkCard topIcon label="Review the changelog" description="View a summary of all changes released to GX Cloud and GX OSS." to="/changelog" icon="/img/release_notes_icon.svg" />
</LinkCardGrid>

### Identify, validate, and integrate

<LinkCardGrid>
<LinkCard topIcon label="Create Expectations" description="Create and manage Expectations and Expectation Suites." to="/guides/expectations/expectations_lp" icon="/img/small_gx_logo.png" />
<LinkCard topIcon label="Validate Data" description="Validate Data, save Validation Results, run Actions, and create Data Docs." to="/guides/validation/validate_data_lp" icon="/img/small_gx_logo.png" />
<LinkCard topIcon label="Integrations" description="Integrate GX OSS with commonly used data engineering tools." to="/category/integrations" icon="/img/small_gx_logo.png" />
</LinkCardGrid>

### Contribute

<LinkCardGrid>
<LinkCard topIcon label="Contribute" description="Contribute to GX OSS documentation or code." to="/contributing/contributing" icon="/img/small_gx_logo.png" />
</LinkCardGrid>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_label: 'Reference'
title: 'Reference'
id: reference_overview
description: Supplemental information that will help you get the most out of Great Expectations.
displayed_sidebar: docs
---

import LinkCardGrid from '@site/src/components/LinkCardGrid';
import LinkCard from '@site/src/components/LinkCard';

<p class="DocItem__header-description">This is where you'll find supplemental information that will help you get the most out of Great Expectations (GX).</p>

<LinkCardGrid>
<LinkCard topIcon label="Feature and code readiness" description="The readiness levels for GX features and code" to="/contributing/contributing_maturity" icon="/img/code_readiness_icon.svg" />
<LinkCard topIcon label="Usage statistics" description="Learn what usage statistics are collected and how they are used" to="/reference/usage_statistics" icon="/img/statistics_icon.svg" />
<LinkCard topIcon label="Expectation classes" description="An overview of the available Expectation classes, why they are helpful, and when they should be used" to="/conceptual_guides/expectation_classes" icon="/img/overview_icon.svg" />
<LinkCard topIcon label="API documentation" description="The GX API reference" to="/reference/api_reference" icon="/img/api_icon.svg" />
<LinkCard topIcon label="Glossary" description="An alphabetical list of GX terms and words with definitions" to="/glossary" icon="/img/glossary_icon.svg" />
</LinkCardGrid>
3 changes: 0 additions & 3 deletions docs/docusaurus/versioned_sidebars/version-0.18-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,5 @@
"reference/learn/terms/validation_result"
]
}
],
"resources": [
"resources/get_support"
]
}

0 comments on commit d9c7a5d

Please sign in to comment.