@rspress-theme-anatole/theme-default 0.7.19 → 0.7.21-alpha
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.js +20 -7
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -1112,7 +1112,7 @@ const H1 = (props) => (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__
|
|
|
1112
1112
|
});
|
|
1113
1113
|
const H2 = (props) => (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
1114
1114
|
...props,
|
|
1115
|
-
className: `mt-12 mb-6 pt-8 text-2xl tracking-tight border-
|
|
1115
|
+
className: `mt-12 mb-6 pt-8 text-2xl tracking-tight border-divider-light ${docComponents_index_module.title}`
|
|
1116
1116
|
});
|
|
1117
1117
|
const H3 = (props) => (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h3", {
|
|
1118
1118
|
...props,
|
|
@@ -4379,8 +4379,8 @@ function NavScreen(props) {
|
|
|
4379
4379
|
hasMultiVersion && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(NavScreenVersions, {}),
|
|
4380
4380
|
hasSocialLinks && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SocialLinks, {
|
|
4381
4381
|
socialLinks: socialLinks
|
|
4382
|
-
})
|
|
4383
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
4382
|
+
}),
|
|
4383
|
+
siteData?.auth?.enabled !== false && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
4384
4384
|
className: "ml-2",
|
|
4385
4385
|
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(UserAuth, {})
|
|
4386
4386
|
})
|
|
@@ -4740,6 +4740,9 @@ function UserAuth() {
|
|
|
4740
4740
|
const { siteData } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
|
|
4741
4741
|
const dropdownRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
4742
4742
|
|
|
4743
|
+
const authEnabled = siteData?.auth?.enabled !== false;
|
|
4744
|
+
const showSignInButton = siteData?.auth?.showSignInButton !== false;
|
|
4745
|
+
|
|
4743
4746
|
// Get sign in URL from site config
|
|
4744
4747
|
const signInUrl = siteData?.auth?.signInUrl;
|
|
4745
4748
|
|
|
@@ -4886,8 +4889,15 @@ function UserAuth() {
|
|
|
4886
4889
|
setUser(null);
|
|
4887
4890
|
setShowDropdown(false);
|
|
4888
4891
|
};
|
|
4892
|
+
|
|
4893
|
+
if (!authEnabled) {
|
|
4894
|
+
return null;
|
|
4895
|
+
}
|
|
4889
4896
|
|
|
4890
4897
|
if (!user) {
|
|
4898
|
+
if (!showSignInButton) {
|
|
4899
|
+
return null;
|
|
4900
|
+
}
|
|
4891
4901
|
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
|
|
4892
4902
|
onClick: handleSignIn,
|
|
4893
4903
|
className: "py-2 px-6 text-sm font-medium text-white hover:text-text-2 transition-colors duration-200 border border-gray-300 rounded-md hover:border-gray-400",
|
|
@@ -5037,7 +5047,7 @@ function Nav(props) {
|
|
|
5037
5047
|
hasSocialLinks && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SocialLinks, {
|
|
5038
5048
|
socialLinks: socialLinks
|
|
5039
5049
|
}),
|
|
5040
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
5050
|
+
siteData?.auth?.enabled !== false && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
5041
5051
|
className: "ml-2",
|
|
5042
5052
|
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(UserAuth, {})
|
|
5043
5053
|
})
|
|
@@ -6590,12 +6600,15 @@ function loadGiscus() {
|
|
|
6590
6600
|
script.src = 'https://giscus.app/client.js';
|
|
6591
6601
|
|
|
6592
6602
|
// script.setAttribute('data-repo', 'anatole-tong-avepoint/rspress-theme-anatole');
|
|
6593
|
-
script.setAttribute('data-repo', 'AvePoint/wiki-comments');
|
|
6603
|
+
// script.setAttribute('data-repo', 'AvePoint/wiki-comments');
|
|
6604
|
+
script.setAttribute('data-repo', 'avepoint-copilot-enterprise/aprm-server');
|
|
6594
6605
|
// script.setAttribute('data-repo-id', 'R_kgDOO69M6A');
|
|
6595
|
-
script.setAttribute('data-repo-id', 'R_kgDOO8WYwg');
|
|
6606
|
+
// script.setAttribute('data-repo-id', 'R_kgDOO8WYwg');
|
|
6607
|
+
script.setAttribute('data-repo-id', 'R_kgDOPr00TQ');
|
|
6596
6608
|
script.setAttribute('data-category', 'Announcements');
|
|
6597
6609
|
// script.setAttribute('data-category-id', 'DIC_kwDOO69M6M4CrcUp');
|
|
6598
|
-
script.setAttribute('data-category-id', 'DIC_kwDOO8WYws4CrjjN');
|
|
6610
|
+
// script.setAttribute('data-category-id', 'DIC_kwDOO8WYws4CrjjN');
|
|
6611
|
+
script.setAttribute('data-category-id', 'DIC_kwDOPr00Tc4Cv1Li');
|
|
6599
6612
|
script.setAttribute('data-mapping', 'pathname');
|
|
6600
6613
|
script.setAttribute('data-reactions-enabled', '1');
|
|
6601
6614
|
script.setAttribute('data-theme', 'https://unpkg.com/@rspress-theme-anatole/theme-default@0.5.4/dist/giscus_custom_theme.css');
|
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.21-alpha",
|
|
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.21-alpha",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.21-alpha",
|
|
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",
|