massgrave.dev/docusaurus.config.js

217 lines
6.1 KiB
JavaScript
Raw Normal View History

2024-04-12 10:05:28 +07:00
// @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: 'MAS',
tagline: 'A Windows and Office activator using HWID / Ohook / KMS38 / Online KMS activation methods, with a focus on open-source code and fewer antivirus detections.',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://massgrave.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: 'massgravel', // Usually your GitHub org/user name.
2024-05-17 14:52:49 +07:00
projectName: 'massgrave.dev', // Usually your repo name.
2024-04-12 10:05:28 +07:00
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
2024-04-13 03:39:35 +07:00
trailingSlash: 'false',
2024-04-12 10:05:28 +07:00
// 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: '/', // Serve the docs at the site's root
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
2024-05-17 14:52:49 +07:00
'https://github.com/massgravel/massgrave.dev/tree/main/',
2024-04-12 10:05:28 +07:00
},
2024-09-07 06:52:36 +07:00
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/massgravel/massgrave.dev/tree/main/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
2024-04-12 10:05:28 +07:00
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
2024-10-15 22:13:06 +07:00
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
2024-04-12 10:05:28 +07:00
// Replace with your project's social card
image: 'img/card.png',
navbar: {
title: 'MAS',
logo: {
alt: 'MAS',
src: 'img/logo.png',
},
items: [
{
to: '/faq',
position: 'left',
label: 'FAQ',
},
{
to: '/troubleshoot',
position: 'left',
label: 'Troubleshoot',
},
{
to: '/genuine-installation-media',
position: 'left',
label: 'Download Windows / Office',
},
{
to: '/news',
position: 'left',
label: 'News',
},
{
to: '/credits',
position: 'left',
label: 'Credits',
},
2024-11-11 20:30:39 +07:00
{
type: 'dropdown',
label: 'More',
position: 'left',
items: [
{
label: 'Docs',
to: '/hwid',
},
{
label: 'Guides',
to: '/guide_links',
},
{
label: 'MAS Changelog',
to: '/changelog',
},
{
label: 'Unsupported Products Activation',
to: '/unsupported_products_activation',
},
{
label: 'Our Non-Piracy Site',
to: '/our_non-piracy_site',
},
],
},
2024-10-15 22:13:06 +07:00
{ to: '/blog', label: 'Blog', position: 'right' },
2024-04-12 10:05:28 +07:00
{
to: '/contactus',
position: 'right',
label: 'Contact Us',
},
{
2024-11-11 20:30:39 +07:00
href: 'https://discord.gg/j2yFsV5ZVC',
2024-04-12 10:05:28 +07:00
className: 'discord-button',
position: 'right',
label: 'Discord',
"title": 'Chat with us on Discord',
},
{
href: 'https://github.com/massgravel/Microsoft-Activation-Scripts',
className: 'github-button',
position: 'right',
label: 'GitHub',
"title": 'GitHub repository',
},
],
},
/* footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
}, */
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;