diff --git a/.nvmrc b/.nvmrc index af9754bc4..0f35649c8 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.8.1 +v20.19.3 diff --git a/README.md b/README.md index 46622e02b..39b0e4350 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,6 @@ If you know the answer to a Streamlit user's pain point and want to add it to th 1. Decide which of the above sections your article belongs to 2. Navigate to the relevant section's folder in `kb/` and 3. Create a `.md` file in the above specified format containing your article - - Make sure the title in the front matter and the file header in Markdown are identical. E.g. ```markdown diff --git a/components/blocks/autofunction.js b/components/blocks/autofunction.js index 338680fd5..aa47a94a2 100644 --- a/components/blocks/autofunction.js +++ b/components/blocks/autofunction.js @@ -17,7 +17,7 @@ import getConfig from "next/config"; const { publicRuntimeConfig } = getConfig(); import styles from "./autofunction.module.css"; -import { looksLikeVersionAndPlatformString } from "../../context/VersionContext"; +import { looksLikeVersionAndPlatformString } from "../../lib/next/utils"; const LATEST_VERSION = publicRuntimeConfig.LATEST_VERSION; const DEFAULT_VERSION = publicRuntimeConfig.DEFAULT_VERSION; diff --git a/components/navigation/mobileNav.js b/components/navigation/mobileNav.js index 2e5c1f97e..8a83910a2 100644 --- a/components/navigation/mobileNav.js +++ b/components/navigation/mobileNav.js @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import bus from "../../lib/bus"; +import bus from "../../lib/node/bus"; import router from "next/router"; import styles from "./mobileNav.module.css"; diff --git a/components/navigation/navChild.js b/components/navigation/navChild.js index 3b1831bbf..795ec1e25 100644 --- a/components/navigation/navChild.js +++ b/components/navigation/navChild.js @@ -3,7 +3,7 @@ import Link from "next/link"; import classNames from "classnames"; import styles from "./navChild.module.css"; -import { looksLikeVersionAndPlatformString } from "../../context/VersionContext"; +import { looksLikeVersionAndPlatformString } from "../../lib/next/utils"; const NavChild = ({ slug, page, color, className }) => { const [manualState, setManualState] = useState(null); diff --git a/components/navigation/navItem.js b/components/navigation/navItem.js index 91526e1b4..85a19d291 100644 --- a/components/navigation/navItem.js +++ b/components/navigation/navItem.js @@ -2,7 +2,7 @@ import React from "react"; import Link from "next/link"; import classNames from "classnames"; -import { urlInChildren } from "../../lib/utils.js"; +import { urlInChildren } from "../../lib/purejs/breadcrumbHelpers"; import NavChild from "./navChild"; import styles from "./navItem.module.css"; diff --git a/components/navigation/sideBar.js b/components/navigation/sideBar.js index e1829b6ec..625d1531d 100644 --- a/components/navigation/sideBar.js +++ b/components/navigation/sideBar.js @@ -2,7 +2,7 @@ import { debounce } from "lodash"; import React, { useState, useEffect } from "react"; import classNames from "classnames"; -import bus from "../../lib/bus"; +import bus from "../../lib/node/bus"; import NavItem from "../navigation/navItem"; import styles from "./sideBar.module.css"; @@ -94,7 +94,7 @@ const SideBar = ({ menu, slug }) => { styles.Container, isOpen ? styles.OpenNav : styles.ClosedNav, isOver ? styles.OverNav : styles.CollapsedNav, - isSticky === "window" && styles.WindowStickyNav + isSticky === "window" && styles.WindowStickyNav, )} onScroll={(e) => handleScroll(e)} > @@ -104,8 +104,8 @@ const SideBar = ({ menu, slug }) => { isSticky === "window" ? styles.WindowStickyGradient : isSticky === "scrollbar" - ? styles.ScrollBarStickyGradient - : styles.StandardGradient + ? styles.ScrollBarStickyGradient + : styles.StandardGradient, )} />