diff --git a/docusaurus.config.js b/docusaurus.config.js
index 7927c3f..efba934 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -82,6 +82,10 @@ module.exports = {
{
type: 'custom-back-to-top',
position: 'right'
+ },
+ {
+ type: 'custom-qa-button',
+ position: 'right'
}
],
},
diff --git a/src/components/QAButtonNavbarItem.js b/src/components/QAButtonNavbarItem.js
new file mode 100644
index 0000000..cdc231d
--- /dev/null
+++ b/src/components/QAButtonNavbarItem.js
@@ -0,0 +1,35 @@
+import React from 'react';
+import BrowserOnly from '@docusaurus/BrowserOnly';
+
+export default function QAButtonNavbarItem() {
+ return (
+
+ {() => {
+ const history = require('@docusaurus/router').useHistory();
+ return (
+
+
+
+ );
+ }}
+
+ );
+}
\ No newline at end of file
diff --git a/src/pages/qa.js b/src/pages/qa.js
new file mode 100644
index 0000000..bbd4830
--- /dev/null
+++ b/src/pages/qa.js
@@ -0,0 +1,86 @@
+import React from 'react';
+
+const wechatGroups = [
+ { img: '/img/question/wechat1.png', label: '微信技术交流答疑群1' },
+ { img: '/img/question/wechat2.png', label: '微信技术交流答疑群2' },
+];
+
+const qqGroups = [
+ { img: '/img/question/qq1.png', label: 'QQ技术交流答疑群1' },
+ { img: '/img/question/qq2.png', label: 'QQ技术交流答疑群2' },
+];
+
+export default function QA() {
+ return (
+
+
+
疑问解答与交流群
+
+
+
微信交流群
+
+ {wechatGroups.map((g, i) => (
+
+

+
{g.label}
+
+ ))}
+
+
+
+
QQ交流群
+
+ {qqGroups.map((g, i) => (
+
+

+
{g.label}
+
+ ))}
+
+
+
+
+
+

+
+
+
+ );
+}
\ No newline at end of file
diff --git a/src/theme/NavbarItem/index.js b/src/theme/NavbarItem/index.js
index 0c0246f..5684553 100644
--- a/src/theme/NavbarItem/index.js
+++ b/src/theme/NavbarItem/index.js
@@ -2,6 +2,7 @@ import React from 'react';
import NavbarItem from '@theme-original/NavbarItem';
import PdfExportNavbarItem from '../../components/PdfExportNavbarItem';
import PdfBackToTopNavbarItem from '../../components/PdfBackToTopNavbarItem';
+import QAButtonNavbarItem from '../../components/QAButtonNavbarItem';
export default function NavbarItemWrapper(props) {
if (props.type === 'custom-pdf-export') {
@@ -10,5 +11,8 @@ export default function NavbarItemWrapper(props) {
if (props.type === 'custom-back-to-top') {
return ;
}
+ if (props.type === 'custom-qa-button') {
+ return ;
+ }
return ;
-}
\ No newline at end of file
+}
diff --git a/static/img/question/qq1.png b/static/img/question/qq1.png
new file mode 100644
index 0000000..7cda7c3
Binary files /dev/null and b/static/img/question/qq1.png differ
diff --git a/static/img/question/qq2.png b/static/img/question/qq2.png
new file mode 100644
index 0000000..7cda7c3
Binary files /dev/null and b/static/img/question/qq2.png differ
diff --git a/static/img/question/wechat1.png b/static/img/question/wechat1.png
new file mode 100644
index 0000000..b2c12f0
Binary files /dev/null and b/static/img/question/wechat1.png differ
diff --git a/static/img/question/wechat2.png b/static/img/question/wechat2.png
new file mode 100644
index 0000000..b2c12f0
Binary files /dev/null and b/static/img/question/wechat2.png differ