Skip to content

Commit

Permalink
modified: docusaurus.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-o committed Dec 2, 2023
1 parent 20e08df commit 82d6cb7
Show file tree
Hide file tree
Showing 5 changed files with 12,288 additions and 41 deletions.
24 changes: 0 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,30 +104,6 @@ web_modules/
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache



# Serverless directories
.serverless/

Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {Options as IdealImageOptions} from "@docusaurus/plugin-ideal-image"

const url = process.env.URL ?? "https://wiki.zshell.dev";
const baseUrl = process.env.BASE_URL ?? "/";
const styles = process.env.STYLES ?? "https://cdn.jsdelivr.net/gh/FortAwesome/Font-Awesome@6.x/free/js/all.js";
const styles = process.env.STYLES ?? "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/js/all.min.js";

export default async function createConfigAsync() {
return {
Expand All @@ -29,7 +29,7 @@ export default async function createConfigAsync() {
i18n: {defaultLocale: "en", locales: ["en", "ja", "zh-Hans"]},
themes: ["@docusaurus/theme-mermaid"],
markdown: {format: "detect", mermaid: false},
scripts: [{src: styles, crossorigin: "anonymous"}],
scripts: [{src: styles, crossorigin: "anonymous", defer: true}],
plugins: [
[
"content-docs",
Expand Down
20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@
"check": "trunk check",
"clean": "pnpm exec rm -rf node_modules build pnpm-lock.yaml",
"clear": "docusaurus clear",
"crowdin": "crowdin",
"crowdin:check": "crowdin lint && crowdin status",
"crowdin:sync": "docusaurus write-translations && crowdin upload && crowdin download",
"crowdin:upload": "pnpm crowdin upload sources --delete-obsolete",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"preinstall": "npx only-allow pnpm",
"serve": "docusaurus serve",
"start": "docusaurus start",
"swizzle": "docusaurus swizzle",
"trunk": "trunk",
"upgrade": "pnpm upgrade -i -L",
"write-community-version": "docusaurus docs:version:community",
"write-docs-version": "docusaurus docs:version",
"write-ecosystem-version": "docusaurus docs:version:ecosystem",
Expand All @@ -39,11 +35,11 @@
]
},
"dependencies": {
"@docusaurus/core": "3.0.0",
"@docusaurus/plugin-ideal-image": "3.0.0",
"@docusaurus/plugin-pwa": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@docusaurus/theme-mermaid": "3.0.0",
"@docusaurus/core": "3.0.1",
"@docusaurus/plugin-ideal-image": "3.0.1",
"@docusaurus/plugin-pwa": "3.0.1",
"@docusaurus/preset-classic": "3.0.1",
"@docusaurus/theme-mermaid": "3.0.1",
"@loadable/component": "5.15.3",
"@mdx-js/react": "3.0.0",
"asciinema-player": "3.6.3",
Expand All @@ -56,9 +52,9 @@
"devDependencies": {
"@crowdin/cli": "^3.15.0",
"@docusaurus/eslint-plugin": "^3.0.0",
"@docusaurus/module-type-aliases": "3.0.0",
"@docusaurus/tsconfig": "3.0.0",
"@docusaurus/types": "3.0.0",
"@docusaurus/module-type-aliases": "3.0.1",
"@docusaurus/tsconfig": "3.0.1",
"@docusaurus/types": "3.0.1",
"@trunkio/launcher": "^1.2.7",
"@types/node": "^20.10.1",
"@typescript-eslint/eslint-plugin": "^6.13.1",
Expand Down
Loading

0 comments on commit 82d6cb7

Please sign in to comment.