Skip to content

Commit

Permalink
Merge pull request openebs#259 from openebs/docChanges
Browse files Browse the repository at this point in the history
Doc changes
  • Loading branch information
satyapriyamishra222 authored Sep 3, 2021
2 parents 187fa20 + 254f327 commit 19808ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"docusaurus": "docusaurus",
"prestart": "yarn run write-translations",
"start": "docusaurus start",
"prebuild": "yarn run write-translations && yarn run get-contributors-info",
"prebuild": "yarn run write-translations",
"build": "docusaurus build",
"previewBuild": "docusaurus build --out-dir docs",
"swizzle": "docusaurus swizzle",
Expand Down
5 changes: 4 additions & 1 deletion docs/src/hooks/useViewport.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { useState, useEffect } from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";

export const useViewport = () => {
const [width, setWidth] = useState(0);
const { siteConfig } = useDocusaurusContext();
const breakpoints = siteConfig?.customFields?.breakpoints;
const [width, setWidth] = useState(breakpoints.lg);

useEffect(() => {
if(typeof window !== undefined) {
Expand Down
6 changes: 5 additions & 1 deletion docs/src/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
--color-lighter-blue: #{$blue-800};
--color-tealish-blue: #{$blue-400};
--ifm-code-background: #{$ifm-code-background};
--ifm-toc-link-color: #{$blue-500};
}

.markdown {
Expand Down Expand Up @@ -149,7 +150,10 @@
}

.docs-wrapper .table-of-contents__link {
font-size: 12px;
font-size: 13px;
&.table-of-contents__link--active{
font-weight: bold;
}
}

@media (min-width: 768px) {
Expand Down

0 comments on commit 19808ee

Please sign in to comment.