chore(v2): upgrade Infima and remark-admonitions (#2372)

* chore(v2): upgrade Infima and remark-admonitions

* Update algolia.css
This commit is contained in:
Alexey Pyltsyn 2020-03-07 19:10:13 +03:00 committed by GitHub
parent 6b75aafd5a
commit 31b0ce6e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 11 deletions

View file

@ -12,12 +12,12 @@
"@mdx-js/react": "^1.5.1", "@mdx-js/react": "^1.5.1",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"infima": "0.2.0-alpha.4", "infima": "0.2.0-alpha.5",
"parse-numeric-range": "^0.0.2", "parse-numeric-range": "^0.0.2",
"prism-react-renderer": "^1.0.2", "prism-react-renderer": "^1.0.2",
"react-router-dom": "^5.1.2", "react-router-dom": "^5.1.2",
"react-toggle": "^4.1.1", "react-toggle": "^4.1.1",
"remark-admonitions": "^1.1.0" "remark-admonitions": "^1.2.0"
}, },
"peerDependencies": { "peerDependencies": {
"@docusaurus/core": "^2.0.0", "@docusaurus/core": "^2.0.0",

View file

@ -15,13 +15,12 @@ body {
transition: var(--ifm-transition-fast) ease color; transition: var(--ifm-transition-fast) ease color;
} }
body > #__docusaurus { #__docusaurus {
height: 100%; min-height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.main-wrapper { .main-wrapper {
flex: 1 0 auto; flex: 1 0 auto;
margin-top: var(--ifm-navbar-height);
} }

View file

@ -137,7 +137,9 @@ function Navbar() {
)} )}
{title != null && ( {title != null && (
<strong <strong
className={isSearchBarExpanded ? styles.hideLogoText : ''}> className={classnames('navbar__title', {
[styles.hideLogoText]: isSearchBarExpanded,
})}>
{title} {title}
</strong> </strong>
)} )}
@ -188,7 +190,9 @@ function Navbar() {
alt={logo.alt} alt={logo.alt}
/> />
)} )}
{title != null && <strong>{title}</strong>} {title != null && (
<strong className="navbar__title">{title}</strong>
)}
</Link> </Link>
{!disableDarkMode && sidebarShown && ( {!disableDarkMode && sidebarShown && (
<Toggle <Toggle

View file

@ -234,6 +234,11 @@
} }
} }
.algolia-autocomplete pre {
padding: 0;
right: 0;
}
.algolia-autocomplete .ds-dropdown-menu:before { .algolia-autocomplete .ds-dropdown-menu:before {
display: block; display: block;
position: absolute; position: absolute;

View file

@ -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" resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A== integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==
infima@0.2.0-alpha.4: infima@0.2.0-alpha.5:
version "0.2.0-alpha.4" version "0.2.0-alpha.5"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.4.tgz#0817cd5e74ff45aa5c3ba7b6352dfcb088f07143" resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.5.tgz#1b5c9c63b90c4b5449c481c6e12a72c0cbe64585"
integrity sha512-b2uwUMI40IAyGRG0IHZpQOPPEKB41y5U+ZKHZxhtLjLJ90FCCcUiMYUbNAf7gRXvNSmotymTeydLj10Et+X3sQ== integrity sha512-kG8ivgCIlV4aFU7kaq1IlSybLETN2dkQaFNwcJIr2uOY6ojz7qgc9RT+TRVx6a48VYNJTz821wHVtj22XukVYw==
inflight@^1.0.4: inflight@^1.0.4:
version "1.0.6" version "1.0.6"
@ -13847,6 +13847,15 @@ remark-admonitions@^1.1.0:
unified "^8.4.2" unified "^8.4.2"
unist-util-visit "^2.0.1" 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: remark-emoji@^2.0.2:
version "2.0.2" version "2.0.2"
resolved "https://registry.yarnpkg.com/remark-emoji/-/remark-emoji-2.0.2.tgz#49c134021132c192ee4cceed1988ec9b8ced7eb8" resolved "https://registry.yarnpkg.com/remark-emoji/-/remark-emoji-2.0.2.tgz#49c134021132c192ee4cceed1988ec9b8ced7eb8"