diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 8f30476e..105bd70d 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -46,7 +46,8 @@ const config = { sidebarPath: require.resolve("./sidebars.js"), // Please change this to your repo. // Remove this to remove the "edit this page" links. - sidebarCollapsed: false, + // Do not automatically expand the menu + sidebarCollapsed: true, /*editUrl: 'https://github.com/longtai-cn',*/ }, blog: { @@ -94,8 +95,13 @@ const config = { id: "announcementBar-1", // Increment on change // content: `⭐️ If you like hippo4j, give it a star on Gitee, thanks.`, // content: `⭐️ 如果您喜欢 hippo4j,请在 GiteeGitHub 上给它一个 star,谢谢!`, - content: `⭐️ 开源不易,如果 Hippo4j 对您有帮助,请在 GitHub 上给它一个 Star 🌟`, + // content: `⭐️ 开源不易,如果 Hippo4j 对您有帮助,请在 GitHub 上给它一个 Star 🌟`, // content: `👉 《小马哥的代码实战课》官方知识星球来啦!!!`, + content: + '⭐️ If you like hippo4j, give it a star on GitHub ⭐️', + backgroundColor: "#fafbfc", + textColor: "#091E42", + isCloseable: false, }, navbar: { title: "", diff --git a/docs/src/components/LandingPage/Hero.jsx b/docs/src/components/LandingPage/Hero.jsx index ec730c3b..b3cdedca 100644 --- a/docs/src/components/LandingPage/Hero.jsx +++ b/docs/src/components/LandingPage/Hero.jsx @@ -12,9 +12,9 @@ const Hero = () => {
-
+ {/*
*/}
{/* */} diff --git a/docs/src/components/LandingPage/Introduction.jsx b/docs/src/components/LandingPage/Introduction.jsx index 5ff03882..eeb78368 100644 --- a/docs/src/components/LandingPage/Introduction.jsx +++ b/docs/src/components/LandingPage/Introduction.jsx @@ -23,15 +23,15 @@ const Introduction = () => { What can Hippo4j do? -

+ {/*

Hippo4j is a Java thread pool framework. -

-

+

*/} +

li > a.menu__link--active { + border-right: 1px solid var(--ifm-color-primary); +} + +nav.menu { + padding-right: 0px; + scrollbar-gutter: auto; +} + +.menu__link { + border-radius: 4px 0 0 4px; + --ifm-menu-color-background-active: var(--docs-color-primary-tint); +} + +::selection { + --tw-text-opacity: 1; + background-color: rgb(var(--docs-color-primary-200, 33 96 253) / 0.8); + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + +div[class^="announcementBar_"] { + font-size: 14px; + background: none; + background-color: #fafbfc; + padding: 8px 0; + display: flex; + justify-content: center; + font-weight: inherit; +} +div[class^="announcementBar_"] a { + text-decoration: underline; + color: #091e42; +} diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 39dd3f3a..0ed6df93 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -1,4 +1,5 @@ import React from "react"; +import { useEffect } from "react"; import clsx from "clsx"; import Link from "@docusaurus/Link"; // import Translate from "@docusaurus/Translate"; @@ -43,6 +44,14 @@ function HomepageHeader() { export default function Home() { const { siteConfig } = useDocusaurusContext(); + // useEffect(() => { + // // Set the content of the banner based on the URL. + // let inner = location.href.includes("3000") + // ? '⭐️ If you like hippo4j, give it a star on   GitHub  ⭐️ ' + // : '⭐️ 源不易,如果 Hippo4j 对您有帮助,请在 GitHub 上给它一个 Star 🌟'; + // let el = document.querySelector('[class^="announcementBar_"]'); + // el.innerHTML = inner; + // }, []); return (