mirror of
https://github.com/massgravel/massgrave.dev
synced 2026-01-16 16:04:22 -05:00
Switch from npm to yarn and enable experimental Docusaurus optimizations
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -16,12 +16,12 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm
|
cache: yarn
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: yarn install --frozen-lockfile
|
||||||
- name: Build website
|
- name: Build website
|
||||||
run: npm run build
|
run: yarn build
|
||||||
|
|
||||||
- name: Upload Build Artifact
|
- name: Upload Build Artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -18,3 +18,6 @@
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
# npm
|
||||||
|
package-lock.json
|
||||||
@@ -1,9 +1,3 @@
|
|||||||
// @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';
|
import { themes as prismThemes } from 'prism-react-renderer';
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
@@ -11,24 +5,20 @@ const config = {
|
|||||||
title: 'MAS',
|
title: 'MAS',
|
||||||
tagline: 'Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.',
|
tagline: 'Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.',
|
||||||
favicon: 'img/favicon.ico',
|
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: '/',
|
baseUrl: '/',
|
||||||
|
baseUrlIssueBanner: true,
|
||||||
// GitHub pages deployment config.
|
url: 'https://massgrave.dev',
|
||||||
// If you aren't using GitHub pages, you don't need these.
|
organizationName: 'massgravel',
|
||||||
organizationName: 'massgravel', // Usually your GitHub org/user name.
|
projectName: 'massgrave.dev',
|
||||||
projectName: 'massgrave.dev', // Usually your repo name.
|
|
||||||
|
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
trailingSlash: false,
|
trailingSlash: false,
|
||||||
|
|
||||||
// Even if you don't use internationalization, you can use this field to set
|
future: {
|
||||||
// useful metadata like html lang. For example, if your site is Chinese, you
|
v4: true,
|
||||||
// may want to replace "en" with "zh-Hans".
|
experimental_faster: true
|
||||||
|
},
|
||||||
|
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
locales: ['en'],
|
locales: ['en'],
|
||||||
@@ -40,7 +30,7 @@ const config = {
|
|||||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
({
|
({
|
||||||
docs: {
|
docs: {
|
||||||
routeBasePath: '/', // Serve the docs at the site's root
|
routeBasePath: '/',
|
||||||
sidebarPath: './sidebars.js',
|
sidebarPath: './sidebars.js',
|
||||||
},
|
},
|
||||||
blog: {
|
blog: {
|
||||||
@@ -49,7 +39,6 @@ const config = {
|
|||||||
type: ['rss', 'atom'],
|
type: ['rss', 'atom'],
|
||||||
xslt: true,
|
xslt: true,
|
||||||
},
|
},
|
||||||
// Useful options to enforce blogging best practices
|
|
||||||
onInlineTags: 'warn',
|
onInlineTags: 'warn',
|
||||||
onInlineAuthors: 'warn',
|
onInlineAuthors: 'warn',
|
||||||
onUntruncatedBlogPosts: 'warn',
|
onUntruncatedBlogPosts: 'warn',
|
||||||
@@ -106,7 +95,6 @@ const config = {
|
|||||||
disableSwitch: false,
|
disableSwitch: false,
|
||||||
respectPrefersColorScheme: true,
|
respectPrefersColorScheme: true,
|
||||||
},
|
},
|
||||||
// Replace with your project's social card
|
|
||||||
image: 'img/card.png',
|
image: 'img/card.png',
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'MAS',
|
title: 'MAS',
|
||||||
|
|||||||
18666
package-lock.json
generated
18666
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "mas-docs",
|
"name": "mas-docs",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
|
"license": "CC-BY-4.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docusaurus": "docusaurus",
|
"docusaurus": "docusaurus",
|
||||||
@@ -14,9 +15,10 @@
|
|||||||
"write-heading-ids": "docusaurus write-heading-ids"
|
"write-heading-ids": "docusaurus write-heading-ids"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "3.9.2",
|
"@docusaurus/core": "^3.9.2",
|
||||||
|
"@docusaurus/faster": "^3.9.2",
|
||||||
"@docusaurus/plugin-client-redirects": "^3.9.2",
|
"@docusaurus/plugin-client-redirects": "^3.9.2",
|
||||||
"@docusaurus/preset-classic": "3.9.2",
|
"@docusaurus/preset-classic": "^3.9.2",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
@@ -25,8 +27,8 @@
|
|||||||
"react-player": "^3.4.0"
|
"react-player": "^3.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "3.9.2",
|
"@docusaurus/module-type-aliases": "^3.9.2",
|
||||||
"@docusaurus/types": "3.9.2"
|
"@docusaurus/types": "^3.9.2"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
@@ -35,9 +37,9 @@
|
|||||||
"not op_mini all"
|
"not op_mini all"
|
||||||
],
|
],
|
||||||
"development": [
|
"development": [
|
||||||
"last 3 chrome version",
|
"last 1 chrome version",
|
||||||
"last 3 firefox version",
|
"last 1 firefox version",
|
||||||
"last 5 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
Reference in New Issue
Block a user