@rspress-theme-anatole/theme-default 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.css +98 -2
- package/dist/bundle.js +131 -5
- package/package.json +3 -3
package/dist/bundle.css
CHANGED
|
@@ -3590,7 +3590,8 @@ p {
|
|
|
3590
3590
|
|
|
3591
3591
|
.topics-grid {
|
|
3592
3592
|
display: grid;
|
|
3593
|
-
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
3593
|
+
/* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); */
|
|
3594
|
+
grid-template-columns: repeat(4, 1fr);
|
|
3594
3595
|
gap: 24px;
|
|
3595
3596
|
margin-top: 24px;
|
|
3596
3597
|
}
|
|
@@ -3652,12 +3653,14 @@ p {
|
|
|
3652
3653
|
.topics-item {
|
|
3653
3654
|
width: 100%;
|
|
3654
3655
|
min-width: 0;
|
|
3655
|
-
height: 184;
|
|
3656
|
+
/* height: 184; */
|
|
3656
3657
|
border-radius: 8px;
|
|
3657
3658
|
border-width: 1px;
|
|
3658
3659
|
padding: 24px;
|
|
3659
3660
|
background-color: #FFFFFF;
|
|
3660
3661
|
border: 1px solid var(--Colors-Neutral-3, #D2D5DA);
|
|
3662
|
+
justify-content: space-between;
|
|
3663
|
+
height: 100%;
|
|
3661
3664
|
}
|
|
3662
3665
|
|
|
3663
3666
|
.topics-item-text {
|
|
@@ -3678,6 +3681,9 @@ p {
|
|
|
3678
3681
|
vertical-align: middle;
|
|
3679
3682
|
color: #494F5A;
|
|
3680
3683
|
margin-top: 10px;
|
|
3684
|
+
word-wrap: break-word;
|
|
3685
|
+
overflow-wrap: break-word;
|
|
3686
|
+
white-space: normal;
|
|
3681
3687
|
}
|
|
3682
3688
|
|
|
3683
3689
|
.topics-item-icon {
|
|
@@ -3709,6 +3715,21 @@ p {
|
|
|
3709
3715
|
margin: 45px 40px 72px 40px;
|
|
3710
3716
|
}
|
|
3711
3717
|
|
|
3718
|
+
.topics-item-labels {
|
|
3719
|
+
margin-top: 8px;
|
|
3720
|
+
display: flex;
|
|
3721
|
+
gap: 8px;
|
|
3722
|
+
flex-wrap: wrap;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
.topics-label {
|
|
3726
|
+
background-color: #f1f1f1;
|
|
3727
|
+
border-radius: 12px;
|
|
3728
|
+
padding: 2px 8px;
|
|
3729
|
+
font-size: 12px;
|
|
3730
|
+
color: #555;
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3712
3733
|
.faqs-div {
|
|
3713
3734
|
background-color: #F1F2F4;
|
|
3714
3735
|
}
|
|
@@ -3802,4 +3823,79 @@ p {
|
|
|
3802
3823
|
|
|
3803
3824
|
.rspress-nav-search-button {
|
|
3804
3825
|
display: none;
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3828
|
+
.whatsnew-div {
|
|
3829
|
+
margin: 45px 40px;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
.whatsnew-title {
|
|
3833
|
+
margin-bottom: 16px;
|
|
3834
|
+
font-size: 24px;
|
|
3835
|
+
font-weight: 700;
|
|
3836
|
+
color: #32363E;
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3839
|
+
.whatsnew-cards {
|
|
3840
|
+
display: grid;
|
|
3841
|
+
grid-template-columns: repeat(2, 1fr);
|
|
3842
|
+
gap: 24px;
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
.whatsnew-card {
|
|
3846
|
+
border: 1px solid #e5e7eb;
|
|
3847
|
+
border-radius: 8px;
|
|
3848
|
+
padding: 16px;
|
|
3849
|
+
background: #fff;
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
.whatsnew-label {
|
|
3853
|
+
display: inline-block;
|
|
3854
|
+
background: #ff6a00;
|
|
3855
|
+
color: #fff;
|
|
3856
|
+
font-size: 14px;
|
|
3857
|
+
font-weight: 600;
|
|
3858
|
+
padding: 2px 8px;
|
|
3859
|
+
border-radius: 12px;
|
|
3860
|
+
margin-bottom: 8px;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
.whatsnew-card-title {
|
|
3864
|
+
font-size: 20px;
|
|
3865
|
+
font-weight: 700;
|
|
3866
|
+
margin: 4px 0;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
.whatsnew-date {
|
|
3870
|
+
font-size: 16px;
|
|
3871
|
+
color: #6b7280;
|
|
3872
|
+
margin-bottom: 12px;
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3875
|
+
.whatsnew-link {
|
|
3876
|
+
font-weight: 600;
|
|
3877
|
+
color: #111;
|
|
3878
|
+
text-decoration: none;
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
.features-tabs {
|
|
3882
|
+
display: flex;
|
|
3883
|
+
gap: 24px;
|
|
3884
|
+
border-bottom: 2px solid #eee;
|
|
3885
|
+
margin-bottom: 16px;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
.features-tab {
|
|
3889
|
+
background: none;
|
|
3890
|
+
border: none;
|
|
3891
|
+
font-size: 18px;
|
|
3892
|
+
font-weight: 600;
|
|
3893
|
+
cursor: pointer;
|
|
3894
|
+
padding: 8px 0;
|
|
3895
|
+
color: #444;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
.features-tab.active {
|
|
3899
|
+
color: #e60023;
|
|
3900
|
+
border-bottom: 2px solid #e60023;
|
|
3805
3901
|
}
|
package/dist/bundle.js
CHANGED
|
@@ -1443,7 +1443,7 @@ function HomepageLayout(props) {
|
|
|
1443
1443
|
frontmatter: frontmatter,
|
|
1444
1444
|
routePath: routePath
|
|
1445
1445
|
}),
|
|
1446
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
1446
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFeaturesTabs, {
|
|
1447
1447
|
frontmatter: frontmatter,
|
|
1448
1448
|
routePath: routePath
|
|
1449
1449
|
}),
|
|
@@ -1478,6 +1478,10 @@ function GettingStartLayout(props) {
|
|
|
1478
1478
|
frontmatter: frontmatter,
|
|
1479
1479
|
routePath: routePath
|
|
1480
1480
|
}),
|
|
1481
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(WhatsNew, {
|
|
1482
|
+
frontmatter: frontmatter,
|
|
1483
|
+
routePath: routePath
|
|
1484
|
+
}),
|
|
1481
1485
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFeatures, {
|
|
1482
1486
|
frontmatter: frontmatter,
|
|
1483
1487
|
routePath: routePath
|
|
@@ -2924,27 +2928,108 @@ function HomepageFeatures({ frontmatter, routePath }) {
|
|
|
2924
2928
|
className: "topics-item-desc",
|
|
2925
2929
|
children: featureItem.desc
|
|
2926
2930
|
}),
|
|
2931
|
+
featureItem.labels && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2932
|
+
className: "topics-item-labels",
|
|
2933
|
+
children: featureItem.labels.map((label) =>
|
|
2934
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
2935
|
+
className: "topics-label",
|
|
2936
|
+
children: label
|
|
2937
|
+
}, label)
|
|
2938
|
+
)
|
|
2939
|
+
}),
|
|
2927
2940
|
]
|
|
2928
2941
|
}, featureItem.text);
|
|
2929
2942
|
}),
|
|
2930
2943
|
|
|
2931
2944
|
style: {
|
|
2932
2945
|
display: 'grid',
|
|
2933
|
-
gridTemplateColumns: 'repeat(
|
|
2946
|
+
gridTemplateColumns: 'repeat(4, 1fr)',
|
|
2934
2947
|
gap: '24px',
|
|
2935
2948
|
marginTop: '24px',
|
|
2936
2949
|
marginBottom: '24px',
|
|
2950
|
+
alignItems: 'stretch',
|
|
2937
2951
|
}
|
|
2938
2952
|
}, featuresRow.items[0].text);
|
|
2939
2953
|
}),
|
|
2940
|
-
style: {
|
|
2941
|
-
}
|
|
2942
2954
|
}),
|
|
2943
2955
|
],
|
|
2944
2956
|
className: "features-div",
|
|
2945
2957
|
});
|
|
2946
2958
|
}
|
|
2947
2959
|
|
|
2960
|
+
function HomepageFeaturesTabs({ frontmatter, routePath }) {
|
|
2961
|
+
const [activeTab, setActiveTab] = __WEBPACK_EXTERNAL_MODULE_react__.useState(0);
|
|
2962
|
+
const features = frontmatter?.features;
|
|
2963
|
+
|
|
2964
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2965
|
+
className: "features-div",
|
|
2966
|
+
children: [
|
|
2967
|
+
//Tabs
|
|
2968
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2969
|
+
className: "features-tabs",
|
|
2970
|
+
children: features.tabs.map((tab, idx) =>
|
|
2971
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
|
|
2972
|
+
className: "features-tab" + (idx === activeTab ? " active" : ""),
|
|
2973
|
+
onClick: () => setActiveTab(idx),
|
|
2974
|
+
children: tab.name
|
|
2975
|
+
}, tab.name)
|
|
2976
|
+
)
|
|
2977
|
+
}),
|
|
2978
|
+
|
|
2979
|
+
// Tab content
|
|
2980
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2981
|
+
children: features.tabs[activeTab].rows.map((featuresRow) => {
|
|
2982
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2983
|
+
style: {
|
|
2984
|
+
display: 'grid',
|
|
2985
|
+
gridTemplateColumns: 'repeat(4, 1fr)',
|
|
2986
|
+
gap: '24px',
|
|
2987
|
+
marginTop: '24px',
|
|
2988
|
+
marginBottom: '24px',
|
|
2989
|
+
alignItems: 'stretch',
|
|
2990
|
+
},
|
|
2991
|
+
children: featuresRow.items.map((featureItem) =>
|
|
2992
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2993
|
+
className: "topics-item",
|
|
2994
|
+
children: [
|
|
2995
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2996
|
+
className: "features-item-icon-div",
|
|
2997
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("i", {
|
|
2998
|
+
className: featureItem.icon + " features-item-icon",
|
|
2999
|
+
})
|
|
3000
|
+
}),
|
|
3001
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
3002
|
+
className: "topics-item-text",
|
|
3003
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
3004
|
+
href: featureItem.link,
|
|
3005
|
+
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
3006
|
+
children: featureItem.text
|
|
3007
|
+
})
|
|
3008
|
+
})
|
|
3009
|
+
}),
|
|
3010
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
3011
|
+
className: "topics-item-desc",
|
|
3012
|
+
children: featureItem.desc
|
|
3013
|
+
}),
|
|
3014
|
+
featureItem.labels && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3015
|
+
className: "topics-item-labels",
|
|
3016
|
+
children: featureItem.labels.map((label) =>
|
|
3017
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
3018
|
+
className: "topics-label",
|
|
3019
|
+
children: label
|
|
3020
|
+
}, label)
|
|
3021
|
+
)
|
|
3022
|
+
}),
|
|
3023
|
+
]
|
|
3024
|
+
}, featureItem.text)
|
|
3025
|
+
)
|
|
3026
|
+
}, featuresRow.items[0].text);
|
|
3027
|
+
})
|
|
3028
|
+
})
|
|
3029
|
+
]
|
|
3030
|
+
});
|
|
3031
|
+
}
|
|
3032
|
+
|
|
2948
3033
|
function HomepageFaqs({ frontmatter, routePath }) {
|
|
2949
3034
|
const tabs = frontmatter?.faqTabs || [];
|
|
2950
3035
|
const [activeTab, setActiveTab] = __WEBPACK_EXTERNAL_MODULE_react__.useState(tabs[0]?.title || '');
|
|
@@ -3079,6 +3164,47 @@ function NeedHelpSection({ frontmatter, routePath }) {
|
|
|
3079
3164
|
});
|
|
3080
3165
|
}
|
|
3081
3166
|
|
|
3167
|
+
function WhatsNew({ frontmatter }) {
|
|
3168
|
+
const whatsNew = frontmatter?.whatsNew;
|
|
3169
|
+
|
|
3170
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3171
|
+
className: "whatsnew-div",
|
|
3172
|
+
children: [
|
|
3173
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
3174
|
+
className: "whatsnew-title",
|
|
3175
|
+
children: whatsNew.title ?? "What's New"
|
|
3176
|
+
}),
|
|
3177
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3178
|
+
className: "whatsnew-cards",
|
|
3179
|
+
children: whatsNew.items.map((item) => {
|
|
3180
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3181
|
+
className: "whatsnew-card",
|
|
3182
|
+
children: [
|
|
3183
|
+
item.label && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
3184
|
+
className: "whatsnew-label",
|
|
3185
|
+
children: item.label
|
|
3186
|
+
}),
|
|
3187
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h3", {
|
|
3188
|
+
className: "whatsnew-card-title",
|
|
3189
|
+
children: item.title
|
|
3190
|
+
}),
|
|
3191
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
3192
|
+
className: "whatsnew-date",
|
|
3193
|
+
children: item.date
|
|
3194
|
+
}),
|
|
3195
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
3196
|
+
href: item.link,
|
|
3197
|
+
className: "whatsnew-link",
|
|
3198
|
+
children: "View Details →"
|
|
3199
|
+
}),
|
|
3200
|
+
]
|
|
3201
|
+
}, item.title);
|
|
3202
|
+
})
|
|
3203
|
+
})
|
|
3204
|
+
]
|
|
3205
|
+
});
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3082
3208
|
function HomeFooter() {
|
|
3083
3209
|
const { siteData } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
|
|
3084
3210
|
const { group, message, links, social } = siteData.themeConfig.footer || {};
|
|
@@ -5797,4 +5923,4 @@ async function exportContentToPDF() {
|
|
|
5797
5923
|
});
|
|
5798
5924
|
}
|
|
5799
5925
|
|
|
5800
|
-
export { Aside, Badge, Button, Card, DocFooter, DocLayout, EditLink, HomeFeature, HomeFooter, HomeLayout, HomepageLayout, GettingStartLayout, HomepageTopSearch, IntroBanner, HomepageTopics, HomepageFeatures, HomepageFaqs, LastUpdated, Layout, Link, LinkCard, Nav, NotFoundLayout, Overview, PackageManagerTabs, PrevNextPage, types_RenderType as RenderType, ScrollToTop, Search, SearchPanel, Sidebar, SidebarList, SocialLinks, SourceCode, Steps, SwitchAppearance, Tab, Tabs, Tag, Toc, bindingAsideScroll, src_rslib_entry_ as default, getCustomMDXComponent, isMobileDevice, parseInlineMarkdownText, renderHtmlOrText, renderInlineMarkdown, scrollToTarget, setup, useEditLink, useEnableNav, useFullTextSearch, useHiddenNav, useLocaleSiteData, usePathUtils, usePrevNextPage, useRedirect4FirstVisit, useSidebarData, useThemeState };
|
|
5926
|
+
export { Aside, Badge, Button, Card, DocFooter, DocLayout, EditLink, HomeFeature, HomeFooter, HomeLayout, HomepageLayout, GettingStartLayout, HomepageTopSearch, IntroBanner, HomepageTopics, HomepageFeatures, HomepageFeaturesTabs, WhatsNew, HomepageFaqs, LastUpdated, Layout, Link, LinkCard, Nav, NotFoundLayout, Overview, PackageManagerTabs, PrevNextPage, types_RenderType as RenderType, ScrollToTop, Search, SearchPanel, Sidebar, SidebarList, SocialLinks, SourceCode, Steps, SwitchAppearance, Tab, Tabs, Tag, Toc, bindingAsideScroll, src_rslib_entry_ as default, getCustomMDXComponent, isMobileDevice, parseInlineMarkdownText, renderHtmlOrText, renderInlineMarkdown, scrollToTarget, setup, useEditLink, useEnableNav, useFullTextSearch, useHiddenNav, useLocaleSiteData, usePathUtils, usePrevNextPage, useRedirect4FirstVisit, useSidebarData, useThemeState };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress-theme-anatole/theme-default",
|
|
3
3
|
"author": "Anatole Tong",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"types": "./dist/bundle.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mdx-js/react": "2.3.0",
|
|
24
|
-
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.
|
|
25
|
-
"@rspress-theme-anatole/shared": "0.7.
|
|
24
|
+
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.3",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.3",
|
|
26
26
|
"@rspress/runtime": "1.43.8",
|
|
27
27
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|