-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from nemuvski/update/docs
ドキュメントサイト: docusaurus v3 アップグレード
- Loading branch information
Showing
26 changed files
with
3,073 additions
and
3,507 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
import type { Config } from '@docusaurus/types' | ||
import type * as Preset from '@docusaurus/preset-classic' | ||
import { themes } from 'prism-react-renderer' | ||
|
||
const config: Config = { | ||
title: '@itsumono', | ||
url: 'https://itsumono.netlify.app', | ||
baseUrl: '/', | ||
tagline: 'サクッといつものを導入', | ||
titleDelimiter: '—', | ||
onBrokenLinks: 'throw', | ||
onBrokenMarkdownLinks: 'throw', | ||
favicon: 'img/logo.png', | ||
projectName: 'itsumono', | ||
i18n: { | ||
defaultLocale: 'ja', | ||
locales: ['ja'], | ||
}, | ||
|
||
presets: [ | ||
[ | ||
'classic', | ||
{ | ||
docs: { | ||
path: 'packages', | ||
routeBasePath: 'packages', | ||
breadcrumbs: false, | ||
sidebarPath: require.resolve('./sidebars.js'), | ||
}, | ||
theme: { | ||
customCss: require.resolve('./src/css/custom.css'), | ||
}, | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
|
||
themes: [ | ||
[ | ||
require.resolve('@easyops-cn/docusaurus-search-local'), | ||
/** @see {@link https://github.com/easyops-cn/docusaurus-search-local#theme-options} */ | ||
{ | ||
hashed: true, | ||
indexDocs: true, | ||
indexBlog: false, | ||
indexPages: false, | ||
language: ['en', 'ja'], | ||
docsRouteBasePath: '/packages', | ||
docsDir: 'packages', | ||
}, | ||
], | ||
], | ||
|
||
themeConfig: { | ||
colorMode: { | ||
defaultMode: 'light', | ||
disableSwitch: false, | ||
respectPrefersColorScheme: true, | ||
}, | ||
navbar: { | ||
title: '@itsumono', | ||
logo: { | ||
alt: '@itsumono', | ||
src: 'img/logo.png', | ||
}, | ||
items: [ | ||
{ | ||
type: 'doc', | ||
docId: 'index', | ||
position: 'left', | ||
label: 'パッケージ', | ||
}, | ||
{ | ||
href: 'https://github.com/nemuvski/itsumono', | ||
label: 'GitHub', | ||
position: 'right', | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: 'dark', | ||
logo: { | ||
alt: '@itsumono', | ||
src: 'img/logo.png', | ||
href: '/', | ||
width: 48, | ||
height: 48, | ||
}, | ||
links: [ | ||
{ | ||
title: 'パッケージ', | ||
items: [ | ||
{ | ||
label: '@itsumono/utils', | ||
to: 'packages/utils', | ||
}, | ||
{ | ||
label: '@itsumono/react', | ||
to: 'packages/react', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'その他', | ||
items: [ | ||
{ | ||
label: 'GitHub', | ||
to: 'https://github.com/nemuvski/itsumono', | ||
}, | ||
{ | ||
label: '開発者', | ||
to: 'https://github.com/nemuvski', | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © 2022 @itsumono`, | ||
}, | ||
prism: { | ||
theme: themes.oceanicNext, | ||
// デフォルト以外に含む言語 | ||
additionalLanguages: ['bash'], | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.