Skip to content

Commit

Permalink
Merge pull request #18 from UniMagic-VRC/feat/search
Browse files Browse the repository at this point in the history
検索機能を追加
  • Loading branch information
o-tr authored Oct 27, 2024
2 parents 0e6ccc5 + 3e0ae90 commit 33a183a
Show file tree
Hide file tree
Showing 3 changed files with 458 additions and 43 deletions.
95 changes: 52 additions & 43 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@
// 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: 'UniMagic Information Hub - for Management-Outer',
tagline: 'UniMagic',
favicon: 'img/favicon.ico',
title: "UniMagic Information Hub - for Management-Outer",
tagline: "UniMagic",
favicon: "img/favicon.ico",

// Set the production url of your site here
url: 'https://unimagic-vrc.github.io',
url: "https://unimagic-vrc.github.io",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/InformationHub-MngOuter',
baseUrl: "/InformationHub-MngOuter",

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'UniMagic', // Usually your GitHub org/user name.
projectName: 'InformationHub-MngOuter', // Usually your repo name.
organizationName: "UniMagic", // Usually your GitHub org/user name.
projectName: "InformationHub-MngOuter", // 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: 'ja',
locales: ['ja'],
defaultLocale: "ja",
locales: ["ja"],
},

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:
Expand All @@ -54,7 +54,7 @@ const config = {
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: './src/css/custom.css',
customCss: "./src/css/custom.css",
},
}),
],
Expand All @@ -64,67 +64,67 @@ 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: 'UniMagic Information Hub - 運営外郭向け',
title: "UniMagic Information Hub - 運営外郭向け",
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
alt: "My Site Logo",
src: "img/logo.svg",
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Tutorial",
},
{to: '/blog', label: 'Blog', position: 'left'},
{ to: "/blog", label: "Blog", position: "left" },
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
href: "https://github.com/facebook/docusaurus",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: 'dark',
style: "dark",
links: [
{
title: 'Docs',
title: "Docs",
items: [
{
label: 'Tutorial',
to: '/docs/intro',
label: "Tutorial",
to: "/docs/intro",
},
],
},
{
title: 'Community',
title: "Community",
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
label: "Stack Overflow",
href: "https://stackoverflow.com/questions/tagged/docusaurus",
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
label: "Discord",
href: "https://discordapp.com/invite/docusaurus",
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
label: "Twitter",
href: "https://twitter.com/docusaurus",
},
],
},
{
title: 'More',
title: "More",
items: [
{
label: 'Blog',
to: '/blog',
label: "Blog",
to: "/blog",
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
label: "GitHub",
href: "https://github.com/facebook/docusaurus",
},
],
},
Expand All @@ -136,6 +136,15 @@ const config = {
darkTheme: prismThemes.dracula,
},
}),
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
language: ["ja"],
},
],
],
};

export default config;
Loading

0 comments on commit 33a183a

Please sign in to comment.