Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd $DOCS_DIR
rm -rf java-design-patterns
rm -rf patterns
rm -rf zh/patterns
git clone https://github.com/iluwatar/java-design-patterns.git
git clone --depth 1 https://github.com/iluwatar/java-design-patterns.git
cd java-design-patterns
git checkout-index -a -f --prefix=../patterns/
cd ../patterns
Expand Down Expand Up @@ -45,7 +45,7 @@ rm -rf patterns/localization
rm -rf programming-principles
rm -rf principles
rm -rf zh/principles
git clone https://github.com/iluwatar/programming-principles.git
git clone --depth 1 https://github.com/iluwatar/programming-principles.git
cd programming-principles
git checkout-index -f --prefix=../principles/ README.md

Expand All @@ -63,7 +63,7 @@ rm -rf programming-principles
rm -rf 30-seconds-of-java
rm -rf snippets
rm -rf zh/snippets
git clone https://github.com/iluwatar/30-seconds-of-java.git
git clone --depth 1 https://github.com/iluwatar/30-seconds-of-java.git
cd 30-seconds-of-java
git checkout-index -f --prefix=../snippets/ README.md

Expand Down
5 changes: 4 additions & 1 deletion src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { webpackBundler } from '@vuepress/bundler-webpack'
import { defineUserConfig } from "vuepress";
import { getDirname, path } from 'vuepress/utils'
import theme from "./theme.js";
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import { registerComponentsPlugin } from '@vuepress/plugin-register-components'

const __dirname = getDirname(import.meta.url)

export default defineUserConfig({
base: "/",

Expand Down Expand Up @@ -47,7 +50,7 @@ export default defineUserConfig({
id: 'G-CN4DXNE50P',
}),
registerComponentsPlugin({
componentsDir: 'src/.vuepress/components',
componentsDir: path.resolve(__dirname, './components'),
}),
],

Expand Down