From 18148546275491450b9feac71749e2a2f1edda46 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Tue, 7 Oct 2025 20:51:36 +0530 Subject: [PATCH 1/6] =?UTF-8?q?Rename=20'Twitter'=20label=20to=20'?= =?UTF-8?q?=F0=9D=95=8F'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index e2a3e5c..b9acd6e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -85,7 +85,7 @@ module.exports = { className: "footer-slack-link", }, { - label: "Twitter", + label: "𝕏", href: "https://twitter.com/pecanproject", className: "footer-twitter-link", }, From 014343525dd095a5106728480764243c1d76a0f7 Mon Sep 17 00:00:00 2001 From: allgandalf Date: Tue, 7 Oct 2025 20:58:33 +0530 Subject: [PATCH 2/6] update text --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index b9acd6e..a9e47e3 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -85,7 +85,7 @@ module.exports = { className: "footer-slack-link", }, { - label: "𝕏", + label: "𝕏 (formerly Twitter)", href: "https://twitter.com/pecanproject", className: "footer-twitter-link", }, From 7a624a63dab1f39cdbe49dcb6103d654fd8bdf7d Mon Sep 17 00:00:00 2001 From: allgandalf Date: Tue, 7 Oct 2025 21:03:28 +0530 Subject: [PATCH 3/6] use x.com as link to pecanproject twi --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index a9e47e3..479fdb5 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -86,7 +86,7 @@ module.exports = { }, { label: "𝕏 (formerly Twitter)", - href: "https://twitter.com/pecanproject", + href: "https://x.com/pecanproject", className: "footer-twitter-link", }, ], From 1e0436cc6be4f4103b276b58bbee65f8f28723b8 Mon Sep 17 00:00:00 2001 From: allgandalf Date: Wed, 8 Oct 2025 12:33:23 +0530 Subject: [PATCH 4/6] update fotter css name --- src/css/custom.css | 6 +- src/css/docusaurus.config.js | 143 +++++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+), 3 deletions(-) create mode 100644 src/css/docusaurus.config.js diff --git a/src/css/custom.css b/src/css/custom.css index 4e47d23..35b4fb0 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -123,14 +123,14 @@ html[data-theme="dark"] .footer-slack-link::before { background-size: contain; } -.footer-twitter-link { +.footer-x-link { display: flex; align-items: center; gap: 8px; color: var(--ifm-footer-link-color); } -.footer-twitter-link::before { +.footer-x-link::before { content: ""; width: 24px; height: 24px; @@ -139,7 +139,7 @@ html[data-theme="dark"] .footer-slack-link::before { background-size: contain; } -html[data-theme="dark"] .footer-twitter-link::before { +html[data-theme="dark"] .footer-x-link::before { background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.053,7.988l5.631,8.024h-1.497L8.566,7.988H10.053z M21,21H3V3h18V21z M17.538,17l-4.186-5.99L16.774,7h-1.311l-2.704,3.16L10.552,7H6.702l3.941,5.633L6.906,17h1.333l3.001-3.516L13.698,17H17.538z'/%3E%3C/svg%3E") no-repeat center; background-size: contain; } diff --git a/src/css/docusaurus.config.js b/src/css/docusaurus.config.js new file mode 100644 index 0000000..f7c3723 --- /dev/null +++ b/src/css/docusaurus.config.js @@ -0,0 +1,143 @@ +/** @type {import('@docusaurus/types').DocusaurusConfig} */ +module.exports = { + title: "PEcAn Project", + tagline: + "Ecosystem science, policy, and management informed by the best available data and models", + url: "https://pecanproject.github.io", + baseUrl: "/", + onBrokenLinks: "ignore", + onBrokenMarkdownLinks: "warn", + favicon: "img/favicon.ico", + organizationName: "PecanProject", // Usually your GitHub org/user name. + projectName: "PecanProject.github.io", // Usually your repo name. + themeConfig: { + navbar: { + title: "PEcAn", + logo: { + alt: "PEcAn Logo", + src: "img/logo.jpeg", + }, + items: [ + { + label: "Documentation", + position: "left", + items: [ + { + to: "/documentation", label: "Documentation", + }, + { + to: "/package-documentation/develop", label: "Package Documentation", + }, + { + to: "/tutorials", label: "Tutorials", + }, + { + to: "http://pecan.ncsa.illinois.edu/pecan/01-introduction.php", label: "Demo" + }, + ], + }, + { to: "/blog", label: "Blog", position: "left" }, + { + label: "About", + position: "left", + items: [ + { to: "/about", label: "About" }, + { to: "/people", label: "People" }, + { to: "/alumni", label: "Alumni" }, + { to: "/news", label: "News" }, + ], + }, + { to: "/publications", label: "Publications", position: "left" }, + { + href: "https://github.com/PecanProject", + position: "right", + className: "header-github-link", + "aria-label": "GitHub repository", + }, + { + label: "GSoC", + position: "left", + items: [ + { to: "/gsoc", label: "Contributor Guidance" }, + { to: "/gsoc_ideas", label: "Ideas List" } + ], + }, + ], + }, + footer: { + links: [ + { + title: "Docs", + items: [ + { + label: "Tutorial", + to: "/documentation/master", + className: "footer-docs-link", + }, + ], + }, + { + title: "Community", + items: [ + { + label: "Slack", + href: "https://join.slack.com/t/pecanproject/shared_invite/enQtMzkyODUyMjQyNTgzLWEzOTM1ZjhmYWUxNzYwYzkxMWVlODAyZWQwYjliYzA0MDA0MjE4YmMyOTFhMjYyMjYzN2FjODE4N2Y4YWFhZmQ", + className: "footer-slack-link", + }, + { + label: "𝕏 (formerly Twitter)", + href: "https://x.com/pecanproject", + className: "footer-x-link", + }, + ], + }, + { + title: "Contribute to Code", + items: [ + { + label: "GitHub", + href: "https://github.com/PecanProject", + className: "footer-github-link", + }, + ], + }, + { + items: [ + { + html: ` + + `, + }, + ], + } + ], + copyright: `Copyright © ${new Date().getFullYear()} PEcAn Project.`, + }, + docs: { + sidebar: { + hideable: true + }, + }, + }, + presets: [ + [ + "@docusaurus/preset-classic", + { + docs: false, + blog: { + showReadingTime: true, + // Please change this to your repo. + editUrl: "https://github.com/PecanProject/web/edit/main", + }, + theme: { + customCss: require.resolve("./src/css/custom.css"), + }, + }, + ], + ], +}; From 816a700b75e18991bbd99386fccd39e437d76f5d Mon Sep 17 00:00:00 2001 From: Gandalf Date: Wed, 8 Oct 2025 12:33:48 +0530 Subject: [PATCH 5/6] Delete src/css/docusaurus.config.js --- src/css/docusaurus.config.js | 143 ----------------------------------- 1 file changed, 143 deletions(-) delete mode 100644 src/css/docusaurus.config.js diff --git a/src/css/docusaurus.config.js b/src/css/docusaurus.config.js deleted file mode 100644 index f7c3723..0000000 --- a/src/css/docusaurus.config.js +++ /dev/null @@ -1,143 +0,0 @@ -/** @type {import('@docusaurus/types').DocusaurusConfig} */ -module.exports = { - title: "PEcAn Project", - tagline: - "Ecosystem science, policy, and management informed by the best available data and models", - url: "https://pecanproject.github.io", - baseUrl: "/", - onBrokenLinks: "ignore", - onBrokenMarkdownLinks: "warn", - favicon: "img/favicon.ico", - organizationName: "PecanProject", // Usually your GitHub org/user name. - projectName: "PecanProject.github.io", // Usually your repo name. - themeConfig: { - navbar: { - title: "PEcAn", - logo: { - alt: "PEcAn Logo", - src: "img/logo.jpeg", - }, - items: [ - { - label: "Documentation", - position: "left", - items: [ - { - to: "/documentation", label: "Documentation", - }, - { - to: "/package-documentation/develop", label: "Package Documentation", - }, - { - to: "/tutorials", label: "Tutorials", - }, - { - to: "http://pecan.ncsa.illinois.edu/pecan/01-introduction.php", label: "Demo" - }, - ], - }, - { to: "/blog", label: "Blog", position: "left" }, - { - label: "About", - position: "left", - items: [ - { to: "/about", label: "About" }, - { to: "/people", label: "People" }, - { to: "/alumni", label: "Alumni" }, - { to: "/news", label: "News" }, - ], - }, - { to: "/publications", label: "Publications", position: "left" }, - { - href: "https://github.com/PecanProject", - position: "right", - className: "header-github-link", - "aria-label": "GitHub repository", - }, - { - label: "GSoC", - position: "left", - items: [ - { to: "/gsoc", label: "Contributor Guidance" }, - { to: "/gsoc_ideas", label: "Ideas List" } - ], - }, - ], - }, - footer: { - links: [ - { - title: "Docs", - items: [ - { - label: "Tutorial", - to: "/documentation/master", - className: "footer-docs-link", - }, - ], - }, - { - title: "Community", - items: [ - { - label: "Slack", - href: "https://join.slack.com/t/pecanproject/shared_invite/enQtMzkyODUyMjQyNTgzLWEzOTM1ZjhmYWUxNzYwYzkxMWVlODAyZWQwYjliYzA0MDA0MjE4YmMyOTFhMjYyMjYzN2FjODE4N2Y4YWFhZmQ", - className: "footer-slack-link", - }, - { - label: "𝕏 (formerly Twitter)", - href: "https://x.com/pecanproject", - className: "footer-x-link", - }, - ], - }, - { - title: "Contribute to Code", - items: [ - { - label: "GitHub", - href: "https://github.com/PecanProject", - className: "footer-github-link", - }, - ], - }, - { - items: [ - { - html: ` - - `, - }, - ], - } - ], - copyright: `Copyright © ${new Date().getFullYear()} PEcAn Project.`, - }, - docs: { - sidebar: { - hideable: true - }, - }, - }, - presets: [ - [ - "@docusaurus/preset-classic", - { - docs: false, - blog: { - showReadingTime: true, - // Please change this to your repo. - editUrl: "https://github.com/PecanProject/web/edit/main", - }, - theme: { - customCss: require.resolve("./src/css/custom.css"), - }, - }, - ], - ], -}; From b3eeeb620fb04311a63781d0c482f74d048fc7a8 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Wed, 8 Oct 2025 12:34:13 +0530 Subject: [PATCH 6/6] Apply suggestion from @allgandalf --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 479fdb5..f7c3723 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -87,7 +87,7 @@ module.exports = { { label: "𝕏 (formerly Twitter)", href: "https://x.com/pecanproject", - className: "footer-twitter-link", + className: "footer-x-link", }, ], },