Skip to content

Commit

Permalink
chore(v2): upgrade Infima and remark-admonitions (#2372)
Browse files Browse the repository at this point in the history
* chore(v2): upgrade Infima and remark-admonitions

* Update algolia.css
  • Loading branch information
lex111 authored Mar 7, 2020
1 parent 6b75aaf commit 31b0ce6
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"@mdx-js/react": "^1.5.1",
"classnames": "^2.2.6",
"clipboard": "^2.0.4",
"infima": "0.2.0-alpha.4",
"infima": "0.2.0-alpha.5",
"parse-numeric-range": "^0.0.2",
"prism-react-renderer": "^1.0.2",
"react-router-dom": "^5.1.2",
"react-toggle": "^4.1.1",
"remark-admonitions": "^1.1.0"
"remark-admonitions": "^1.2.0"
},
"peerDependencies": {
"@docusaurus/core": "^2.0.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/docusaurus-theme-classic/src/theme/Layout/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ body {
transition: var(--ifm-transition-fast) ease color;
}

body > #__docusaurus {
height: 100%;
#__docusaurus {
min-height: 100%;
display: flex;
flex-direction: column;
}

.main-wrapper {
flex: 1 0 auto;
margin-top: var(--ifm-navbar-height);
}
8 changes: 6 additions & 2 deletions packages/docusaurus-theme-classic/src/theme/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ function Navbar() {
)}
{title != null && (
<strong
className={isSearchBarExpanded ? styles.hideLogoText : ''}>
className={classnames('navbar__title', {
[styles.hideLogoText]: isSearchBarExpanded,
})}>
{title}
</strong>
)}
Expand Down Expand Up @@ -188,7 +190,9 @@ function Navbar() {
alt={logo.alt}
/>
)}
{title != null && <strong>{title}</strong>}
{title != null && (
<strong className="navbar__title">{title}</strong>
)}
</Link>
{!disableDarkMode && sidebarShown && (
<Toggle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@
}
}

.algolia-autocomplete pre {
padding: 0;
right: 0;
}

.algolia-autocomplete .ds-dropdown-menu:before {
display: block;
position: absolute;
Expand Down
17 changes: 13 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8391,10 +8391,10 @@ infer-owner@^1.0.3, infer-owner@^1.0.4:
resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==

[email protected].4:
version "0.2.0-alpha.4"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.4.tgz#0817cd5e74ff45aa5c3ba7b6352dfcb088f07143"
integrity sha512-b2uwUMI40IAyGRG0IHZpQOPPEKB41y5U+ZKHZxhtLjLJ90FCCcUiMYUbNAf7gRXvNSmotymTeydLj10Et+X3sQ==
[email protected].5:
version "0.2.0-alpha.5"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.5.tgz#1b5c9c63b90c4b5449c481c6e12a72c0cbe64585"
integrity sha512-kG8ivgCIlV4aFU7kaq1IlSybLETN2dkQaFNwcJIr2uOY6ojz7qgc9RT+TRVx6a48VYNJTz821wHVtj22XukVYw==

inflight@^1.0.4:
version "1.0.6"
Expand Down Expand Up @@ -13847,6 +13847,15 @@ remark-admonitions@^1.1.0:
unified "^8.4.2"
unist-util-visit "^2.0.1"

remark-admonitions@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/remark-admonitions/-/remark-admonitions-1.2.0.tgz#0c8ba565c018357afb5f4f89efe4e543d71bd216"
integrity sha512-h7P99HNMuSeA3HBw+RIF4PoTEI2knjPqBIfmYSgavXvA5PHgP3oHo0XKfDmmPpUZY6vBWKzcLXRZcYHNnNcJaw==
dependencies:
rehype-parse "^6.0.2"
unified "^8.4.2"
unist-util-visit "^2.0.1"

remark-emoji@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/remark-emoji/-/remark-emoji-2.0.2.tgz#49c134021132c192ee4cceed1988ec9b8ced7eb8"
Expand Down

0 comments on commit 31b0ce6

Please sign in to comment.