Skip to content

Commit

Permalink
docs: update document website
Browse files Browse the repository at this point in the history
  • Loading branch information
EINDEX committed Sep 16, 2024
1 parent 8f468f9 commit f5e898b
Show file tree
Hide file tree
Showing 9 changed files with 168 additions and 126 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Logseq Copilot is a Chrome extension that allows you to access your Logseq using
## Features

- 🔍 Show Logseq content when you search on popular search engines via your keywords. Now support Google, Bing, Ecosia, Baidu, Yandex, DuckDuckGo, SearX.
- Support Logseq DB version.
- Recall your note on every page.

## Support
<p align="center">
Expand Down
135 changes: 84 additions & 51 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,49 @@
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import { themes as prismThemes } from "prism-react-renderer";
import { themes as prismThemes } from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Logseq Copilot",
tagline: "Connect browser with Logseq",
favicon: "img/favicon.png",
title: 'Logseq Copilot',
tagline: 'Connect Browser and Logseq',
favicon: 'img/favicon.png',

// Set the production url of your site here
url: "https://logseq-copilot.eindex.me",
url: 'https://logseq-copilot.eindex.me',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "eindex", // Usually your GitHub org/user name.
projectName: "logseq-copliot", // Usually your repo name.
organizationName: 'eindex', // Usually your GitHub org/user name.
projectName: 'logseq-copliot', // Usually your repo name.

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',

// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
defaultLocale: 'en',
locales: ['en'],
},

presets: [
[
"classic",
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: "./sidebars.js",
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/eindex/logseq-copilot",
editUrl: 'https://github.com/eindex/logseq-copilot',
},
theme: {
customCss: "./src/css/custom.css",
customCss: './src/css/custom.css',
},
}),
],
Expand All @@ -56,80 +56,80 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
// image: "img/docusaurus-social-card.jpg",
navbar: {
title: "Logseq Copilot",
title: 'Logseq Copilot',
logo: {
alt: "Logseq Copilot",
src: "img/favicon.png",
alt: 'Logseq Copilot',
src: 'img/favicon.png',
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Documents",
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Documents',
},
{ to: "/docs/changelogs", label: "Changelogs", position: "left" },
{ to: '/docs/changelogs', label: 'Changelogs', position: 'left' },
{
href: "https://github.com/eindex/logseq-copilot",
label: "GitHub",
position: "right",
href: 'https://github.com/eindex/logseq-copilot',
label: 'GitHub',
position: 'right',
},
{
to: "/docs/sponsor",
label: "❤️ Sponsor",
position: "right",
to: '/docs/sponsor',
label: '❤️ Sponsor',
position: 'right',
},
],
},
footer: {
style: "dark",
style: 'dark',
links: [
{
title: "Docs",
title: 'Docs',
items: [
{
label: "Introduce",
to: "/docs/intro",
label: 'Introduce',
to: '/docs/intro',
},
{
label: "Setup",
to: "/docs/setup",
label: 'Setup',
to: '/docs/setup',
},
{
label: "Changelogs",
to: "/docs/changelogs",
label: 'Changelogs',
to: '/docs/changelogs',
},
],
},
{
title: "Community",
title: 'Community',
items: [
{
label: "Github Discussions",
href: "https://github.com/EINDEX/logseq-copilot/discussions",
label: 'Github Discussions',
href: 'https://github.com/EINDEX/logseq-copilot/discussions',
},
{
label: "Twitter",
href: "https://x.com/eindex",
label: 'Twitter',
href: 'https://x.com/eindex',
},
],
},
{
title: "More",
title: 'More',
items: [
{
label: "GitHub",
href: "https://github.com/eindex/logseq-copilot",
label: 'GitHub',
href: 'https://github.com/eindex/logseq-copilot',
},
{
label: "Sponsor",
to: "/docs/sponsor",
label: 'Sponsor',
to: '/docs/sponsor',
},
{
label: "Author",
href: "https://eindex.me",
label: 'Author',
href: 'https://eindex.me',
},
],
},
Expand All @@ -141,6 +141,39 @@ const config = {
darkTheme: prismThemes.dracula,
},
}),
headTags: [
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
},
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
crossorigin: 'true',
},
},
{
tagName: 'link',
attributes: {
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap',
},
},
{
tagName: 'script',
attributes: {
'data-website-id': '6728c810-c8a8-43ae-b072-4788d1ec7cc9',
src: 'https://umami.eindex.me/script.js',
defer: 'true',
async: 'true',
},
},
],
};

export default config;
106 changes: 52 additions & 54 deletions docs/src/components/UserComments/index.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import styles from "./styles.module.css";
import styles from './styles.module.css';

const Comments = [
{
source: "chrome-web-store",
lang: "en",
source: 'chrome-web-store',
lang: 'en',
score: 5,
date: "2024-03-26",
name: "Jordan G",
date: '2024-03-26',
name: 'Jordan G',
review:
"Amazing extension, looking forward to using it more and it being open-sourced is even better",
'Amazing extension, looking forward to using it more and it being open-sourced is even better',
avatar:
"https://lh3.googleusercontent.com/a-/ALV-UjUJ7omSYEBpKwrWhZBSoalAZ3ourO_eI3Yr5_aTKHaEblRcmBrm=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a-/ALV-UjUJ7omSYEBpKwrWhZBSoalAZ3ourO_eI3Yr5_aTKHaEblRcmBrm=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
{
source: "chrome-web-store",
lang: "en",
source: 'chrome-web-store',
lang: 'en',
score: 5,
date: "2024-03-24",
name: "Vitaliy Gordeev",
date: '2024-03-24',
name: 'Vitaliy Gordeev',
review:
"Possibly one of the most useful extensions. Easy to use. Open source.",
'Possibly one of the most useful extensions. Easy to use. Open source.',
avatar:
"https://lh3.googleusercontent.com/a/ACg8ocLRJJgapC95QcH8baiyJbTX2oAFhhPh9fXIZ2gTespT1T-fuA=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a/ACg8ocLRJJgapC95QcH8baiyJbTX2oAFhhPh9fXIZ2gTespT1T-fuA=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
// {
// source: "chrome-web-store",
Expand All @@ -37,75 +37,75 @@ const Comments = [
// url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
// },
{
source: "chrome-web-store",
lang: "fr",
source: 'chrome-web-store',
lang: 'fr',
score: 4,
date: "2024-01-25",
name: "Thierry Portmann",
date: '2024-01-25',
name: 'Thierry Portmann',
review:
"Presque excellent ! Manque juste la possibilité d'ajouter une note (prévue)",
avatar:
"https://lh3.googleusercontent.com/a-/ALV-UjV2hVyn_dKomnfTfX52m4r0LQ9rmxGbLUCLlFcN-GZgppWd6sSI=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a-/ALV-UjV2hVyn_dKomnfTfX52m4r0LQ9rmxGbLUCLlFcN-GZgppWd6sSI=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
{
source: "chrome-web-store",
lang: "zh",
source: 'chrome-web-store',
lang: 'zh',
score: 5,
date: "2023-05-02",
name: "Da Tou",
review: "确实是五星插件了!比印象笔记的google检索还好用!",
date: '2023-05-02',
name: 'Da Tou',
review: '确实是五星插件了!比印象笔记的google检索还好用!',
avatar:
"https://lh3.googleusercontent.com/a-/ALV-UjWIJticHrAsHO7Z7-RZGCCncBecpf0uYPrZspBQr1dxOA=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a-/ALV-UjWIJticHrAsHO7Z7-RZGCCncBecpf0uYPrZspBQr1dxOA=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
{
source: "chrome-web-store",
lang: "zh",
source: 'chrome-web-store',
lang: 'zh',
score: 5,
date: "2023-04-15",
name: "Joshua C",
review: "太好用了!本地笔记和搜索引擎无缝连接!",
date: '2023-04-15',
name: 'Joshua C',
review: '太好用了!本地笔记和搜索引擎无缝连接!',
avatar:
"https://lh3.googleusercontent.com/a/ACg8ocL7xMHaEWwjYUeU_4gL55i1dOm-YN6sCo-iQ50wxjgR=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a/ACg8ocL7xMHaEWwjYUeU_4gL55i1dOm-YN6sCo-iQ50wxjgR=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
{
source: "chrome-web-store",
lang: "en",
source: 'chrome-web-store',
lang: 'en',
score: 5,
date: "2023-03-10",
name: "Alexander Ivanov",
date: '2023-03-10',
name: 'Alexander Ivanov',
review:
"Possibly the most beautiful application I have ever put on my browser. I feel like my thought is further than me, it has become part of the web.",
'Possibly the most beautiful application I have ever put on my browser. I feel like my thought is further than me, it has become part of the web.',
avatar:
"https://lh3.googleusercontent.com/a-/ALV-UjWYFzH_8Q3vAyEpyI9W6tt5KminF4NIGoRGnM39_wV1GlAD=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a-/ALV-UjWYFzH_8Q3vAyEpyI9W6tt5KminF4NIGoRGnM39_wV1GlAD=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
{
source: "chrome-web-store",
lang: "en",
source: 'chrome-web-store',
lang: 'en',
score: 5,
date: "2023-02-18",
name: "Yurii Piskun",
date: '2023-02-18',
name: 'Yurii Piskun',
review:
'AWESOME!!!!!!! Now "Promnesia" & "fireSeqSearch" can be deleted )))',
avatar:
"https://lh3.googleusercontent.com/a-/ALV-UjXqKew0X4I9A6YFBPkMdHNDdCoww-PcTKMrUuE5LtUaOI3q=s96-w96-h96",
url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl",
'https://lh3.googleusercontent.com/a-/ALV-UjXqKew0X4I9A6YFBPkMdHNDdCoww-PcTKMrUuE5LtUaOI3q=s96-w96-h96',
url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl',
},
];

function UserComment({ source, score, name, review, avatar, url }) {
return (
<div className={`button--secondary ${styles.comment}`}>
<comment className={styles.review}>{review}</comment>
<q className={styles.review}>{review}</q>
<div className={styles.bottom}>
<span className={styles.username}>
<img className={styles.commentAvatar} src={avatar}></img>
<img className={styles.commentAvatar} alt={name+"'s avatar"} src={avatar}></img>
{name}
</span>
<span>{"⭐".repeat(score)}</span>
<span>{'⭐'.repeat(score)}</span>
</div>
</div>
);
Expand All @@ -115,9 +115,7 @@ export default function UserComments() {
return (
<section className={`${styles.comments}`}>
{Comments.map((props, idx) => (
<>
<UserComment key={idx} {...props} />
</>
<UserComment key={idx} {...props} />
))}
</section>
);
Expand Down
Loading

0 comments on commit f5e898b

Please sign in to comment.