Skip to content

Commit

Permalink
Change of plans, focus only on navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 7, 2023
1 parent f422493 commit b01da70
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 214 deletions.
31 changes: 14 additions & 17 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,25 @@ const config = {
locales: ["en"],
},

themes: [
function customTheme() {
return {
name: "custom-theme",
getClientModules() {
return [require.resolve("./src/css/custom.css")];
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
theme: {
customCss: [require.resolve("./src/css/custom.css")],
},
};
},
docs: {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/docs",
},
blog: false,
}),
],
],

plugins: [
"./plugins/blog-plugin",
[
"@docusaurus/plugin-content-docs",
{
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/docs",
},
],
// "@docusaurus/plugin-content-blog",
"@docusaurus/plugin-content-pages",
function tailwindPlugin() {
return {
name: "tailwindcss",
Expand Down
25 changes: 23 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,29 @@
@tailwind components;
@tailwind utilities;

html {
background-color: theme("colors.dark1");
html[data-theme="dark"] {
--ifm-color-primary: #b173ff;
--ifm-color-primary-dark: #9c4eff;
--ifm-color-primary-darker: #923cff;
--ifm-color-primary-darkest: #7304ff;
--ifm-color-primary-light: #c698ff;
--ifm-color-primary-lighter: #d0aaff;
--ifm-color-primary-lightest: #efe2ff;
--ifm-background-color: theme("colors.dark1");
--ifm-navbar-background-color: transparent;
--ifm-heading-font-family: theme("fontFamily.sans");
--ifm-navbar-item-padding-horizontal: 0;
--ifm-navbar-height: theme("height.24");
--ifm-toc-border-color: transparent;
}

.theme-doc-sidebar-menu {
border-right: 1px solid rgba(255, 255, 255, 0.1);
padding-right: 20px;
}

.table-of-contents {
border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body {
Expand Down
29 changes: 0 additions & 29 deletions src/theme/BlogPostPage/Metadata/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions src/theme/BlogPostPage/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/theme/BlogPostPaginator/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/theme/DocItem/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/theme/DocPage/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/theme/ErrorPageContent.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/theme/Layout/Provider/index.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions src/theme/Layout/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/theme/Navbar/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function NavbarContent() {
const searchBarItem = items.find((item) => item.type === "search");

return (
<div className="flex text-white justify-between container mx-auto p-4 sm:p-0">
<div className="flex text-white justify-between container mx-auto p-4 sm:p-0 navbar">
<div className="flex items-center gap-6">
<NavbarMobileSidebarToggle />
<NavbarLogo />
Expand Down
1 change: 0 additions & 1 deletion src/theme/SearchBar.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions src/theme/SearchMetadata/index.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/theme/SkipToContent/index.tsx

This file was deleted.

0 comments on commit b01da70

Please sign in to comment.