Skip to content

Commit 1e0436c

Browse files
committed
update fotter css name
1 parent 7a624a6 commit 1e0436c

File tree

2 files changed

+146
-3
lines changed

2 files changed

+146
-3
lines changed

src/css/custom.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ html[data-theme="dark"] .footer-slack-link::before {
123123
background-size: contain;
124124
}
125125

126-
.footer-twitter-link {
126+
.footer-x-link {
127127
display: flex;
128128
align-items: center;
129129
gap: 8px;
130130
color: var(--ifm-footer-link-color);
131131
}
132132

133-
.footer-twitter-link::before {
133+
.footer-x-link::before {
134134
content: "";
135135
width: 24px;
136136
height: 24px;
@@ -139,7 +139,7 @@ html[data-theme="dark"] .footer-slack-link::before {
139139
background-size: contain;
140140
}
141141

142-
html[data-theme="dark"] .footer-twitter-link::before {
142+
html[data-theme="dark"] .footer-x-link::before {
143143
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;
144144
background-size: contain;
145145
}

src/css/docusaurus.config.js

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
/** @type {import('@docusaurus/types').DocusaurusConfig} */
2+
module.exports = {
3+
title: "PEcAn Project",
4+
tagline:
5+
"Ecosystem science, policy, and management informed by the best available data and models",
6+
url: "https://pecanproject.github.io",
7+
baseUrl: "/",
8+
onBrokenLinks: "ignore",
9+
onBrokenMarkdownLinks: "warn",
10+
favicon: "img/favicon.ico",
11+
organizationName: "PecanProject", // Usually your GitHub org/user name.
12+
projectName: "PecanProject.github.io", // Usually your repo name.
13+
themeConfig: {
14+
navbar: {
15+
title: "PEcAn",
16+
logo: {
17+
alt: "PEcAn Logo",
18+
src: "img/logo.jpeg",
19+
},
20+
items: [
21+
{
22+
label: "Documentation",
23+
position: "left",
24+
items: [
25+
{
26+
to: "/documentation", label: "Documentation",
27+
},
28+
{
29+
to: "/package-documentation/develop", label: "Package Documentation",
30+
},
31+
{
32+
to: "/tutorials", label: "Tutorials",
33+
},
34+
{
35+
to: "http://pecan.ncsa.illinois.edu/pecan/01-introduction.php", label: "Demo"
36+
},
37+
],
38+
},
39+
{ to: "/blog", label: "Blog", position: "left" },
40+
{
41+
label: "About",
42+
position: "left",
43+
items: [
44+
{ to: "/about", label: "About" },
45+
{ to: "/people", label: "People" },
46+
{ to: "/alumni", label: "Alumni" },
47+
{ to: "/news", label: "News" },
48+
],
49+
},
50+
{ to: "/publications", label: "Publications", position: "left" },
51+
{
52+
href: "https://github.com/PecanProject",
53+
position: "right",
54+
className: "header-github-link",
55+
"aria-label": "GitHub repository",
56+
},
57+
{
58+
label: "GSoC",
59+
position: "left",
60+
items: [
61+
{ to: "/gsoc", label: "Contributor Guidance" },
62+
{ to: "/gsoc_ideas", label: "Ideas List" }
63+
],
64+
},
65+
],
66+
},
67+
footer: {
68+
links: [
69+
{
70+
title: "Docs",
71+
items: [
72+
{
73+
label: "Tutorial",
74+
to: "/documentation/master",
75+
className: "footer-docs-link",
76+
},
77+
],
78+
},
79+
{
80+
title: "Community",
81+
items: [
82+
{
83+
label: "Slack",
84+
href: "https://join.slack.com/t/pecanproject/shared_invite/enQtMzkyODUyMjQyNTgzLWEzOTM1ZjhmYWUxNzYwYzkxMWVlODAyZWQwYjliYzA0MDA0MjE4YmMyOTFhMjYyMjYzN2FjODE4N2Y4YWFhZmQ",
85+
className: "footer-slack-link",
86+
},
87+
{
88+
label: "𝕏 (formerly Twitter)",
89+
href: "https://x.com/pecanproject",
90+
className: "footer-x-link",
91+
},
92+
],
93+
},
94+
{
95+
title: "Contribute to Code",
96+
items: [
97+
{
98+
label: "GitHub",
99+
href: "https://github.com/PecanProject",
100+
className: "footer-github-link",
101+
},
102+
],
103+
},
104+
{
105+
items: [
106+
{
107+
html: `
108+
<div class="footer-logo">
109+
<a href="/" class="footer-logo-link">
110+
<img src="/img/logo.jpeg" alt="PEcAn Logo" class="footer-logo-img"/>
111+
<span class="footer-logo-text">PEcAn</span>
112+
</a>
113+
</div>
114+
`,
115+
},
116+
],
117+
}
118+
],
119+
copyright: `Copyright © ${new Date().getFullYear()} PEcAn Project.`,
120+
},
121+
docs: {
122+
sidebar: {
123+
hideable: true
124+
},
125+
},
126+
},
127+
presets: [
128+
[
129+
"@docusaurus/preset-classic",
130+
{
131+
docs: false,
132+
blog: {
133+
showReadingTime: true,
134+
// Please change this to your repo.
135+
editUrl: "https://github.com/PecanProject/web/edit/main",
136+
},
137+
theme: {
138+
customCss: require.resolve("./src/css/custom.css"),
139+
},
140+
},
141+
],
142+
],
143+
};

0 commit comments

Comments
 (0)