upgrade logos docusaurus preset

This commit is contained in:
Hossein Mehrabi 2023-06-02 22:21:34 +03:30
parent 15ca4d98e9
commit 9d53eac6a5
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
6 changed files with 20 additions and 34 deletions

View File

@ -8,9 +8,8 @@ const config = {
url: 'https://codex.storage/',
baseUrl: '/',
customFields: {
ghostAPiKey: process.env.GHOST_API_KEY,
},
customFields: {},
markdown: {
mermaid: true,
},
@ -34,6 +33,13 @@ const config = {
options: {
customCss: [require.resolve('./src/css/custom.scss')],
},
docs: {
default: {
sidebar: {
hide: false,
},
},
},
},
docs: {
routeBasePath: '/',
@ -58,11 +64,8 @@ const config = {
themeConfig:
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
},
navbar: {
hideOnScroll: true,
items: [
{
type: 'search',

View File

@ -15,7 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.13",
"@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.14",
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@docusaurus/theme-mermaid": "^2.4.1",

View File

@ -1,4 +0,0 @@
<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="58" height="58" rx="29" fill="white"/>
<path d="M23 39V19H29.737C31.2013 19 32.4164 19.2669 33.3823 19.8008C34.3544 20.3346 35.0804 21.0736 35.5603 22.0176C36.0402 22.9551 36.2802 24.0391 36.2802 25.2695C36.2802 26.4935 36.0371 27.571 35.5511 28.502C35.0712 29.4264 34.3452 30.1458 33.3731 30.6602C32.4072 31.1745 31.192 31.4316 29.7278 31.4316H24.6243V28.834H29.4693C30.3922 28.834 31.1428 28.694 31.7212 28.4141C32.3056 28.1341 32.7332 27.7272 33.004 27.1934C33.2747 26.6595 33.41 26.0182 33.41 25.2695C33.41 24.5143 33.2716 23.86 32.9947 23.3066C32.724 22.7533 32.2964 22.3301 31.7119 22.0371C31.1336 21.7376 30.3738 21.5879 29.4324 21.5879H25.8517V39H23ZM32.3303 29.9766L37 39H33.7515L29.174 29.9766H32.3303Z" fill="black"/>
</svg>

Before

Width:  |  Height:  |  Size: 845 B

View File

@ -1,3 +0,0 @@
<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.6479 28.7455C30.3452 28.9358 28.2754 28.1665 24.9723 28.3573C24.1531 28.4033 23.3396 28.522 22.5412 28.7121C23.0288 22.6037 27.3519 17.2602 33.2306 16.9205C36.8381 16.7123 40.4439 18.9397 40.6394 22.5555C40.8319 26.1094 38.1221 28.487 33.6483 28.7451L33.6479 28.7455ZM24.779 41.24C21.323 41.4352 17.8692 39.3501 17.6817 35.9665C17.4972 32.6404 20.0937 30.4152 24.3794 30.1736C27.543 29.9953 29.5261 30.7157 32.6897 30.5369C33.4741 30.4939 34.2533 30.3828 35.0186 30.2048C34.5523 35.9214 30.411 40.9226 24.779 41.24ZM28.9999 1.4449C13.7812 1.44446 1.44434 13.7812 1.44434 29C1.44434 44.2189 13.7812 56.5556 28.9999 56.5556C44.2186 56.5556 56.5554 44.2184 56.5554 29C56.5554 13.7816 44.2186 1.44446 28.9999 1.44446" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 885 B

View File

@ -1,10 +0,0 @@
<svg width="57" height="58" viewBox="0 0 57 58" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_603_7836)">
<path d="M0 29C0 12.9837 12.8112 0 28.6147 0C44.4079 0 56.61 12.7424 56.9815 28.8744C56.9815 34.0217 55.2473 38.3527 50.9119 42.4328C47.2482 45.8808 41.0019 46.3874 36.4191 43.8139C33.1479 41.9015 30.627 37.8289 28.4908 34.8377L24.5268 40.9892H15.9796L24.0314 28.8739L16.2274 16.948H25.0223L28.5528 23.0996L32.0211 16.948H40.8782L32.8265 28.8744C32.8265 28.8744 36.6665 34.8377 38.7722 37.1602C40.8782 39.4828 44.7182 39.5455 47.1955 37.0346C49.9195 34.274 50.5292 32.0759 50.5403 28.8744C50.5828 16.4828 40.8709 6.52813 28.6147 6.52813C16.3687 6.52813 6.44139 16.5891 6.44139 29C6.44139 41.4108 16.3687 51.472 28.6147 51.472C30.3085 51.472 31.932 51.3277 33.5077 50.9696L34.8704 57.3096C32.6282 57.819 30.8169 58 28.6147 58C12.8112 58 0 45.0162 0 29Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_603_7836">
<rect width="57" height="58" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1015 B

View File

@ -2,13 +2,13 @@
# yarn lockfile v1
"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.13":
version "1.0.0-alpha.13"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.13.tgz#da9ef880598a48513b06d66e2b411fe732ef5f05"
integrity sha512-pGFblt957C9aYMautNO8oEEQQW7WRQ+7MGbkHbmfJHiSBIaLLrYi5B9Kkj5tud5LoFuZ3qh6Hk2L6WXU7faOCA==
"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.14":
version "1.0.0-alpha.14"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.14.tgz#1ecc424c64b2bc5bf209f32504cb7d0e56907438"
integrity sha512-eCKkCUHgcBi3/A/RUXLnQohOZxrmHVVV21dyr7D72oQJ3ca9xR550CCiiK/WRRGcowJcpumvJw3jLHx38BhlcQ==
dependencies:
"@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.0"
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.13"
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.14"
"@docusaurus/core" "^2.4.1"
"@docusaurus/module-type-aliases" "^2.4.1"
"@docusaurus/preset-classic" "^2.4.1"
@ -34,10 +34,10 @@
"@easyops-cn/docusaurus-search-local" "^0.33.6"
lodash "^4.17.21"
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.13":
version "1.0.0-alpha.13"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.13.tgz#de118574ee54f1f7569a0ffd3b3db0688e63ee5f"
integrity sha512-nqUvJ/0iKyXiu05NJXTLjmpK1XGUBGvWyStfFNXkRnFPzzaIZ/NfKO84+HKdF1B1OFmQjfBQvAaVrQL/8HYrsw==
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.14":
version "1.0.0-alpha.14"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.14.tgz#7f2e4002af45438fc4f769166af3034ef1b7829f"
integrity sha512-16XlT1fM55eZJrCKj15X3G9aUkklr8VFBLSm7nMaVlEhTLSbbrjxl+qA1xFHpBPKAAU3I3dfn9xlt12rp7qXuQ==
dependencies:
"@acid-info/lsd-react" "^0.1.0-alpha.8"
"@docusaurus/core" "^2.4.1"