Skip to content

Commit

Permalink
feat: revert package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Feb 16, 2024
1 parent e48e596 commit b49fa68
Show file tree
Hide file tree
Showing 4 changed files with 518 additions and 521 deletions.
3 changes: 3 additions & 0 deletions apps/docs/.vitepress/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Sidebar configuration is exported so DevHub can import it and prefix links with /frontends/.
*/
export const sidebar = [
{
text: "SHOPWARE FRONTENDS",
Expand Down
25 changes: 25 additions & 0 deletions apps/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// import './styles/index.css'
import { h, App } from "vue";
import { VPTheme } from "vitepress-shopware-docs";
import PageRef from "./components/PageRef.vue";
// Ai component
// import AI from "./components/AI.vue";
import "./custom.css";

export default Object.assign({}, VPTheme, {
Layout: () => {
// @ts-ignore
return h(VPTheme.Layout, null, {
// banner: () => h(Banner),
// "content-top": () => h("h1", "We have important Announcement!"),
// 'sidebar-top': () => h(PreferenceSwitch),
// 'aside-mid': () => h(SponsorsAside),
// 'aside-bottom': () => h(VueJobs)
});
},
enhanceApp({ app }: { app: App }) {
app.component("PageRef", PageRef);
// app.component("AI", AI);
// app.provide('some-injection-key-if-needed', VALUE)
},
});
43 changes: 43 additions & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "docs",
"private": true,
"version": "1.6.1",
"description": "",
"scripts": {
"dev": "vitepress",
"build": "vitepress build",
"serve": "vitepress serve"
},
"dependencies": {
"@shopware-pwa/api-client": "workspace:*",
"@shopware-pwa/composables-next": "workspace:*",
"@shopware-pwa/helpers-next": "workspace:*",
"@shopware-pwa/types": "workspace:*",
"flexsearch": "^0.7.43",
"markdown-it": "^14.0.0",
"vitepress": "^1.0.0-rc.42",
"vitepress-plugin-search": "1.0.4-alpha.22",
"vitepress-shopware-docs": "^1.1.22",
"vue": "^3.4.19"
},
"devDependencies": {
"@shopware-docs/typer": "^1.1.22",
"@types/markdown-it": "^13.0.7",
"@types/node": "^20.11.17",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "^5.3.3"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"react",
"react-dom",
"@types/react"
]
}
},
"engines": {
"node": ">=18.0.0"
}
}
Loading

0 comments on commit b49fa68

Please sign in to comment.