Skip to content
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

update Docusaurus to the latest beta #2662

Merged
merged 4 commits into from
Jul 1, 2021
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
10 changes: 5 additions & 5 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
]
},
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.0",
"@docusaurus/plugin-pwa": "^2.0.0-beta.0",
"@docusaurus/preset-classic": "^2.0.0-beta.0",
"docusaurus-plugin-sass": "^0.2.0",
"@docusaurus/core": "^2.0.0-beta.3",
"@docusaurus/plugin-pwa": "^2.0.0-beta.3",
"@docusaurus/preset-classic": "^2.0.0-beta.3",
"docusaurus-plugin-sass": "^0.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-github-btn": "^1.2.0",
"sass": "^1.34.0"
"sass": "^1.35.1"
},
"devDependencies": {
"alex": "^9.1.0",
Expand Down
32 changes: 26 additions & 6 deletions website/src/css/customTheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ html[data-theme="dark"] {
}
}

main[class^='docMainContainer'] > .container {
padding-top: 2rem !important;
}

@media (max-width: 1416px) {
.main-wrapper {
max-width: 100%;
Expand Down Expand Up @@ -371,7 +375,7 @@ html[data-theme="dark"] .community-page {

/* Version warning */

div[class*="docItemWrapper"] .row .col {
div[class*="docs-wrapper"] .row .col {
> .alert--warning {
background-color: rgba(100, 215, 255, 0.3);
}
Expand Down Expand Up @@ -505,6 +509,10 @@ html[data-theme="dark"] .avatar__name a {
}
}

.navbar__items div[class^='searchBox'] {
padding-left: 14px;
}

.navbar-github-link {
&:after {
transition: opacity 0.2s;
Expand Down Expand Up @@ -596,7 +604,7 @@ html[data-theme="dark"] .navbar-sidebar {

/* Sidebar */

div[class^="docSidebarContainer"] {
aside[class^="docSidebarContainer"] {
margin-right: 16px;

--doc-sidebar-width: 266px;
Expand All @@ -606,15 +614,15 @@ div[class^="docSidebarContainer"] {
}

@media only screen and (min-width: 997px) {
div[class^="docSidebarContainer"] {
aside[class^="docSidebarContainer"] {
.menu {
padding: 12px;
}
}
}

@media only screen and (max-width: 996px) {
div[class^="docSidebarContainer"] {
aside[class^="docSidebarContainer"] {
width: 0 !important;
min-width: 0 !important;
margin-right: 0;
Expand All @@ -632,6 +640,7 @@ div[class^="docSidebarContainer"] {

.menu__list {
.menu__link {
line-height: 20px;
font-size: 13px;
padding: 3px 12px;
font-weight: normal;
Expand All @@ -652,7 +661,7 @@ div[class^="docSidebarContainer"] {

&:after {
background-size: 1.66rem 1.66rem;
margin-right: 6px;
margin-right: -6px;
margin-top: -1px;
}
}
Expand Down Expand Up @@ -747,8 +756,9 @@ html[data-theme="dark"] div[class^="tableOfContents"] {
}
}

small {
.lastUpdated {
font-size: 13px;
text-align: right;
}

time,
Expand Down Expand Up @@ -815,6 +825,10 @@ html[data-theme="dark"] div[class^="tableOfContents"] {
font-size: 14px;
padding: 8px 0 0;
min-height: 30px;

a:hover svg {
color: var(--brand);
}
}

.footer__title {
Expand Down Expand Up @@ -843,6 +857,12 @@ html[data-theme="dark"] div[class^="tableOfContents"] {
display: initial !important;
height: 54px;
}

svg[class^="iconExternalLink"] {
color: var(--subtle);
right: -1px;
width: 9px;
}
}

@media only screen and (max-width: 996px) {
Expand Down
10 changes: 5 additions & 5 deletions website/src/theme/DocItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ function DocItem(props) {
</article>
<DocsRating label={unversionedId} />
{(editUrl || lastUpdatedAt || lastUpdatedBy) && (
<div className="docMetadata margin-vert--xl">
<div className="row">
<div className="col">
{editUrl && <EditThisPage editUrl={editUrl} />}
</div>
<div className="docMetadata margin-vert--xl row">
<div className="col">
{editUrl && <EditThisPage editUrl={editUrl} />}
</div>
<div className="col lastUpdated">
{lastUpdatedAt && (
<LastUpdated
lastUpdatedAt={lastUpdatedAt}
Expand Down
Loading