Skip to content

Adding Footer and Front-End Improvements #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 68 additions & 68 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const config = {
},
gtag: {
trackingID: 'G-NY80BVQV8L',
},
},
googleAnalytics: {
trackingID: 'UA-119822493-4',
},
Expand Down Expand Up @@ -86,27 +86,27 @@ const config = {
// },
items: [
{
label: '📚 Tutorials',
html: '<span class="nav-emoji">📚</span> Tutorials',
to: '/tutorials/category/basic-topics',
activeBaseRegex: `/tutorials/`,
},
{
label: '📖 Solutions',
html: '<span class="nav-emoji">📖</span> Solutions',
to: '/solutions/category/0000---0099',
activeBaseRegex: `/solutions/`,
},
{
label: '🏷️ Tags',
html: '<span class="nav-emoji">🏷️</span> Tags',
to: '/solutions/tags/',
activeBaseRegex: `/solutions/tags/`,
},
{
label: '🏛️ Roadmap',
html: '<span class="nav-emoji">🏛️</span> Roadmap',
to: '/roadmap/',
activeBaseRegex: `/roadmap/`,
},
{
label: '🖥️ Templates',
html: '<span class="nav-emoji">🖥️</span> Templates',
to: '/templates/',
activeBaseRegex: `/templates/`,
},
Expand Down Expand Up @@ -211,70 +211,70 @@ const config = {
},
}),

plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'solutions',
path: 'solutions',
routeBasePath: 'solutions',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'tutorials',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'roadmap',
path: 'roadmap',
routeBasePath: 'roadmap',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'solutions',
path: 'solutions',
routeBasePath: 'solutions',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'tutorials',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'roadmap',
path: 'roadmap',
routeBasePath: 'roadmap',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],

[
'@docusaurus/plugin-content-docs',
{
id: 'templates',
path: 'templates',
routeBasePath: 'templates',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'templates',
path: 'templates',
routeBasePath: 'templates',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
],

};

module.exports = config;
12 changes: 10 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
background: var(--ifm-color-emphasis-200);
color: inherit;
}
.nav-emoji{
display: none;
}
}

.header-github-link:hover {
Expand All @@ -99,8 +102,7 @@ div[class^='announcementBar_'] {
border-bottom: 1px dotted #eeeeee;
font-weight: bold;
font-size: 18px;
height: 35px;
padding: 10px;
height: auto;
}

div[class^='announcementBar_'] a {
Expand Down Expand Up @@ -225,4 +227,10 @@ table, tr, td, th {

.hard {
color: rgb(255 45 85);
}

@media screen and (min-width: 1120px) {
.nav-emoji {
display: inline-block;
}
}
3 changes: 2 additions & 1 deletion src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@
.gitHubButtonWrapper {
display: none;
}
}
}