Skip to content

Commit

Permalink
Search
Browse files Browse the repository at this point in the history
  • Loading branch information
thangved committed Nov 17, 2022
1 parent ec0c2a7 commit 431ab4e
Show file tree
Hide file tree
Showing 10 changed files with 495 additions and 309 deletions.
332 changes: 168 additions & 164 deletions .firebase/hosting.YnVpbGQ.cache

Large diffs are not rendered by default.

25 changes: 23 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const path = require("path");
module.exports = {
title: "CTDLCT177",
tagline: "Cấu trúc dữ liệu và giải thuật",
url: "https://your-docusaurus-test-site.com",
url: "https://ctdl.w5team.com",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
Expand All @@ -21,8 +21,29 @@ module.exports = {
locales: ["vi-VN"],
},
plugins: [
// path.resolve(__dirname, './plugins/2dlive'),
// path.resolve(__dirname, "./plugins/2dlive"),
path.resolve(__dirname, "./plugins/gads"),
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
indexDocs: true,
indexDocSidebarParentCategories: 0,

indexBlog: true,
indexPages: true,
language: "vi",
style: undefined,
maxSearchResults: 8,
lunr: {
tokenizerSeparator: /[\s\-]+/,
k1: 1.2,
titleBoost: 5,
contentBoost: 1,
tagsBoost: 3,
parentCategoriesBoost: 2, // Only used when indexDocSidebarParentCategories > 0
},
},
],
],

presets: [
Expand Down
91 changes: 91 additions & 0 deletions i18n/vi-VN/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,96 @@
"theme.Playground.liveEditor": {
"message": "Trình soạn thảo trực tuyến",
"description": "The live editor label of the live codeblocks"
},
"theme.ErrorPageContent.title": {
"message": "Trang này đã bị lỗi.",
"description": "The title of the fallback page when the page crashed"
},
"theme.ErrorPageContent.tryAgain": {
"message": "Thử lại",
"description": "The label of the button to try again when the page crashed"
},
"theme.admonition.note": {
"message": "ghi chú",
"description": "The default label used for the Note admonition (:::note)"
},
"theme.admonition.tip": {
"message": "mẹo",
"description": "The default label used for the Tip admonition (:::tip)"
},
"theme.admonition.danger": {
"message": "cảnh báo",
"description": "The default label used for the Danger admonition (:::danger)"
},
"theme.admonition.info": {
"message": "thông tin",
"description": "The default label used for the Info admonition (:::info)"
},
"theme.admonition.caution": {
"message": "cẩn thận",
"description": "The default label used for the Caution admonition (:::caution)"
},
"theme.BackToTopButton.buttonAriaLabel": {
"message": "Trở lại đầu trang",
"description": "The ARIA label for the back to top button"
},
"theme.colorToggle.ariaLabel": {
"message": "Chuyển đổi chế độ sáng và tối (hiện tại {mode})",
"description": "The ARIA label for the navbar color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "chế độ tối",
"description": "The name for the dark color mode"
},
"theme.colorToggle.ariaLabel.mode.light": {
"message": "chế độ sáng",
"description": "The name for the light color mode"
},
"theme.docs.breadcrumbs.home": {
"message": "Trang chủ",
"description": "The ARIA label for the home page in the breadcrumbs"
},
"theme.docs.breadcrumbs.navAriaLabel": {
"message": "Breadcrumbs",
"description": "The ARIA label for the breadcrumbs"
},
"theme.docs.DocCard.categoryDescription": {
"message": "{count} mục",
"description": "The default description for a category card in the generated index about how many items this category includes"
},
"theme.docs.versionBadge.label": {
"message": "Phiên bản: {versionLabel}"
},
"theme.CodeBlock.wordWrapToggle": {
"message": "Chuyển đổi văn bản xuống dòng",
"description": "The title attribute for toggle word wrapping button of code block lines"
},
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": {
"message": "Chuyển đổi danh mục thanh bên có thể thu gọn '{label}'",
"description": "The ARIA label to toggle the collapsible sidebar category"
},
"theme.navbar.mobileLanguageDropdown.label": {
"message": "Ngôn ngữ",
"description": "The label for the mobile language switcher dropdown"
},
"theme.blog.post.readMoreLabel": {
"message": "Đọc thêm về {title}",
"description": "The ARIA label for the link to full blog posts from excerpts"
},
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
"message": "Close navigation bar",
"description": "The ARIA label for close button of mobile sidebar"
},
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
"message": "Toggle navigation bar",
"description": "The ARIA label for hamburger menu button of mobile navigation"
},
"cmfcmf/d-s-l.searchBar.placeholder": {
"message": "Nhập từ khóa tìm kiếm...",
"description": "Nhập từ khóa tìm kiếm..."
},
"cmfcmf/d-s-l.searchBar.detachedCancelButtonText": {
"message": "Tìm",
"description": "Tìm"
}
}
24 changes: 12 additions & 12 deletions i18n/vi-VN/docusaurus-plugin-content-blog/options.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"title": {
"message": "Blog",
"description": "The title for the blog used in SEO"
},
"description": {
"message": "Blog",
"description": "The description for the blog used in SEO"
},
"sidebar.title": {
"message": "Recent posts",
"description": "The label for the left sidebar"
}
"title": {
"message": "Blog",
"description": "The title for the blog used in SEO"
},
"description": {
"message": "Blog",
"description": "The description for the blog used in SEO"
},
"sidebar.title": {
"message": "Recent posts",
"description": "The label for the left sidebar"
}
}
72 changes: 36 additions & 36 deletions i18n/vi-VN/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"version.label": {
"message": "Next",
"description": "The label for version current"
},
"sidebar.tutorialSidebar.category.Độ phức tạp của giải thuật": {
"message": "Độ phức tạp của giải thuật",
"description": "The label for category Độ phức tạp của giải thuật in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Danh sách đặc": {
"message": "Danh sách đặc",
"description": "The label for category Danh sách đặc in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Danh sách liên kết": {
"message": "Danh sách liên kết",
"description": "The label for category Danh sách liên kết in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Ngăn xếp": {
"message": "Ngăn xếp",
"description": "The label for category Ngăn xếp in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Hàng đợi": {
"message": "Hàng đợi",
"description": "The label for category Hàng đợi in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Git cơ bản": {
"message": "Git cơ bản",
"description": "The label for category Git cơ bản in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Cây nhị phân": {
"message": "Cây nhị phân",
"description": "The label for category Cây nhị phân in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Cây tìm kiếm nhị phân": {
"message": "Cây tìm kiếm nhị phân",
"description": "The label for category Cây tìm kiếm nhị phân in sidebar tutorialSidebar"
}
"version.label": {
"message": "Next",
"description": "The label for version current"
},
"sidebar.tutorialSidebar.category.Độ phức tạp của giải thuật": {
"message": "Độ phức tạp của giải thuật",
"description": "The label for category Độ phức tạp của giải thuật in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Danh sách đặc": {
"message": "Danh sách đặc",
"description": "The label for category Danh sách đặc in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Danh sách liên kết": {
"message": "Danh sách liên kết",
"description": "The label for category Danh sách liên kết in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Ngăn xếp": {
"message": "Ngăn xếp",
"description": "The label for category Ngăn xếp in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Hàng đợi": {
"message": "Hàng đợi",
"description": "The label for category Hàng đợi in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Git cơ bản": {
"message": "Git cơ bản",
"description": "The label for category Git cơ bản in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Cây nhị phân": {
"message": "Cây nhị phân",
"description": "The label for category Cây nhị phân in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Cây tìm kiếm nhị phân": {
"message": "Cây tìm kiếm nhị phân",
"description": "The label for category Cây tìm kiếm nhị phân in sidebar tutorialSidebar"
}
}
80 changes: 40 additions & 40 deletions i18n/vi-VN/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"link.title.Tài liệu": {
"message": "Tài liệu",
"description": "The title of the footer links column with title=Tài liệu in the footer"
},
"link.title.Kết nối": {
"message": "Kết nối",
"description": "The title of the footer links column with title=Kết nối in the footer"
},
"link.title.Thêm...": {
"message": "Thêm...",
"description": "The title of the footer links column with title=Thêm... in the footer"
},
"link.item.label.Giới thiệu": {
"message": "Giới thiệu",
"description": "The label of footer link with label=Giới thiệu linking to /docs/intro"
},
"link.item.label.Facebook": {
"message": "Facebook",
"description": "The label of footer link with label=Facebook linking to https://www.facebook.com/minhthangD/"
},
"link.item.label.Instagram": {
"message": "Instagram",
"description": "The label of footer link with label=Instagram linking to https://www.instagram.com/minhthangdev/"
},
"link.item.label.Trang web": {
"message": "Trang web",
"description": "The label of footer link with label=Trang web linking to https://w5team.web.app"
},
"link.item.label.GitHub": {
"message": "GitHub",
"description": "The label of footer link with label=GitHub linking to https://github.com/thangved/"
},
"link.item.label.Donate": {
"message": "Donate",
"description": "The label of footer link with label=Donate linking to https://www.paypal.com/paypalme/minhthangpay"
},
"copyright": {
"message": "Copyright © 2021 WS, Minh Thắng",
"description": "The footer copyright"
}
"link.title.Tài liệu": {
"message": "Tài liệu",
"description": "The title of the footer links column with title=Tài liệu in the footer"
},
"link.title.Kết nối": {
"message": "Kết nối",
"description": "The title of the footer links column with title=Kết nối in the footer"
},
"link.title.Thêm...": {
"message": "Thêm...",
"description": "The title of the footer links column with title=Thêm... in the footer"
},
"link.item.label.Giới thiệu": {
"message": "Giới thiệu",
"description": "The label of footer link with label=Giới thiệu linking to /docs/intro"
},
"link.item.label.Facebook": {
"message": "Facebook",
"description": "The label of footer link with label=Facebook linking to https://www.facebook.com/minhthangD/"
},
"link.item.label.Instagram": {
"message": "Instagram",
"description": "The label of footer link with label=Instagram linking to https://www.instagram.com/minhthangdev/"
},
"link.item.label.Trang web": {
"message": "Trang web",
"description": "The label of footer link with label=Trang web linking to https://w5team.web.app"
},
"link.item.label.GitHub": {
"message": "GitHub",
"description": "The label of footer link with label=GitHub linking to https://github.com/thangved/"
},
"link.item.label.Donate": {
"message": "Donate",
"description": "The label of footer link with label=Donate linking to https://www.paypal.com/paypalme/minhthangpay"
},
"copyright": {
"message": "Copyright © 2021 WS, Minh Thắng",
"description": "The footer copyright"
}
}

0 comments on commit 431ab4e

Please sign in to comment.