mirror of
https://github.com/JonasunderscoreJones/docs.jonasjones.dev.git
synced 2025-10-22 18:49:18 +02:00
119 lines
3.9 KiB
JavaScript
119 lines
3.9 KiB
JavaScript
// @ts-check
|
|
// `@type` JSDoc annotations allow editor autocompletion and type checking
|
|
// (when paired with `@ts-check`).
|
|
// 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';
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: 'Jonas_Jones Docs',
|
|
tagline: 'docs.jonasjones.dev',
|
|
favicon: 'img/favicon.png',
|
|
|
|
// Set the production url of your site here
|
|
url: 'https://docs.jonasjones.dev',
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
baseUrl: '/',
|
|
|
|
// GitHub pages deployment config.
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
organizationName: 'JonasunderscoreJones', // Usually your GitHub org/user name.
|
|
projectName: 'docs.jonasjones.dev', // Usually your repo name.
|
|
|
|
onBrokenLinks: 'warn',
|
|
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'],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
routeBasePath: '/',
|
|
sidebarPath: './sidebars.js',
|
|
},
|
|
blog: false,
|
|
theme: {
|
|
customCss: './src/css/custom.css',
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
algolia: {
|
|
// The application ID provided by Algolia
|
|
appId: '59JHI8GRGH',
|
|
|
|
// Public API key: it is safe to commit it
|
|
apiKey: '87a26fafb2fb30c39503a44b80fad4cf',
|
|
|
|
indexName: 'jonasjones',
|
|
|
|
// Optional: see doc section below
|
|
contextualSearch: true,
|
|
|
|
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
|
|
//externalUrlRegex: 'external\\.com|domain\\.com',
|
|
|
|
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
|
|
//replaceSearchResultPathname: {
|
|
// from: '/docs/', // or as RegExp: /\/docs\//
|
|
// to: '/',
|
|
//},
|
|
},
|
|
prism: {
|
|
additionalLanguages: ['properties', 'ini', 'powershell', 'bash', 'yaml'],
|
|
},
|
|
colorMode: {
|
|
defaultMode: 'dark',
|
|
disableSwitch: false,
|
|
respectPrefersColorScheme: true,
|
|
},
|
|
// Replace with your project's social card
|
|
image: 'img/favicon.png',
|
|
metadata: [
|
|
{ name: 'author', content: 'Jonas_Jones' },
|
|
{ name: 'url', content: 'https://docs.jonasjones.dev/' },
|
|
{ name: 'theme-color', content: '#008080' },
|
|
|
|
{ property: 'og:title', content: "Jonas_Jones's Homepage" },
|
|
{ property: 'og:description', content: "The Home of all creations by Jonas_Jones!" },
|
|
{ property: 'og:image', content: 'https://docs.jonasjones.dev/img/favicon.png' },
|
|
{ property: 'og:type', content: 'website' },
|
|
],
|
|
navbar: {
|
|
title: 'DOCS.JONASJONES.DEV',
|
|
logo: {
|
|
alt: 'docs.jonasjones.dev Logo',
|
|
src: 'img/favicon.png',
|
|
},
|
|
items: [
|
|
{
|
|
href: 'https://jonasjones.dev',
|
|
label: 'Homepage',
|
|
position: 'right',
|
|
}
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
copyright: `Website by Jonas_Jones 2021 - ${new Date().getFullYear()}`,
|
|
},
|
|
})
|
|
};
|
|
|
|
export default config;
|