Skip to content

Commit

Permalink
Update: docs meta & icons
Browse files Browse the repository at this point in the history
  • Loading branch information
juzser committed Mar 6, 2024
1 parent 59e8432 commit 3c8df8f
Show file tree
Hide file tree
Showing 2,401 changed files with 84,709 additions and 83,087 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/upload-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["docs"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './docs/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 4 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ export default defineConfig({

const info = await getCategoryContent(categoryName);

if (!info) return;

if (info.title) {
pageData.title = info.title;
pageData.frontmatter.title = info.title;
Expand All @@ -188,6 +190,8 @@ export default defineConfig({
if (componentName) {
const info = await getComponentContent(componentName);

if (!info) return;

if (info.description) {
pageData.frontmatter.description = info.description;
}
Expand Down
1 change: 0 additions & 1 deletion docs/components/AccountConnection/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Account connection
shortDescription: Used for connecting or disconnecting a store to various accounts, like Facebook for the sales channel.
category: Actions
examples:
- fileName: Default.vue
Expand Down
7 changes: 5 additions & 2 deletions docs/dist/404.html

Large diffs are not rendered by default.

116 changes: 0 additions & 116 deletions docs/dist/assets/app.5tUE-Uom.js

This file was deleted.

116 changes: 116 additions & 0 deletions docs/dist/assets/app.mOSW5A4H.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import { j as inBrowser, al as useUpdateHead, am as RouterSymbol, an as initData, ao as dataSymbol, ap as Content, aq as ClientOnly, ar as siteDataRef, as as createSSRApp, at as createRouter, au as pathToFile, X as __vitePreload, d as defineComponent, u as useData, l as onMounted, z as watchEffect, av as usePrefetch, aw as useCopyCode, ax as useCodeGroups, a3 as h } from "./chunks/framework.1qnja6qJ.js";
import { R as RawTheme } from "./chunks/theme._FJrEzAe.js";
function resolveThemeExtends(theme) {
if (theme.extends) {
const base = resolveThemeExtends(theme.extends);
return {
...base,
...theme,
async enhanceApp(ctx) {
if (base.enhanceApp)
await base.enhanceApp(ctx);
if (theme.enhanceApp)
await theme.enhanceApp(ctx);
}
};
}
return theme;
}
const Theme = resolveThemeExtends(RawTheme);
const VitePressApp = defineComponent({
name: "VitePressApp",
setup() {
const { site, lang, dir } = useData();
onMounted(() => {
watchEffect(() => {
document.documentElement.lang = lang.value;
document.documentElement.dir = dir.value;
});
});
if (site.value.router.prefetchLinks) {
usePrefetch();
}
useCopyCode();
useCodeGroups();
if (Theme.setup)
Theme.setup();
return () => h(Theme.Layout);
}
});
async function createApp() {
const router = newRouter();
const app = newApp();
app.provide(RouterSymbol, router);
const data = initData(router.route);
app.provide(dataSymbol, data);
app.component("Content", Content);
app.component("ClientOnly", ClientOnly);
Object.defineProperties(app.config.globalProperties, {
$frontmatter: {
get() {
return data.frontmatter.value;
}
},
$params: {
get() {
return data.page.value.params;
}
}
});
if (Theme.enhanceApp) {
await Theme.enhanceApp({
app,
router,
siteData: siteDataRef
});
}
return { app, router, data };
}
function newApp() {
return createSSRApp(VitePressApp);
}
function newRouter() {
let isInitialPageLoad = inBrowser;
let initialPath;
return createRouter((path) => {
let pageFilePath = pathToFile(path);
let pageModule = null;
if (pageFilePath) {
if (isInitialPageLoad) {
initialPath = pageFilePath;
}
if (isInitialPageLoad || initialPath === pageFilePath) {
pageFilePath = pageFilePath.replace(/\.js$/, ".lean.js");
}
if (false)
;
else {
pageModule = __vitePreload(() => import(
/*@vite-ignore*/
pageFilePath
), true ? __vite__mapDeps([]) : void 0);
}
}
if (inBrowser) {
isInitialPageLoad = false;
}
return pageModule;
}, Theme.NotFound);
}
if (inBrowser) {
createApp().then(({ app, router, data }) => {
router.go().then(() => {
useUpdateHead(router.route, data.site);
app.mount("#app");
});
});
}
export {
createApp
};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
4 changes: 0 additions & 4 deletions docs/dist/assets/chunks/@localSearchIndexroot.OSsjK2d3.js

This file was deleted.

4 changes: 4 additions & 0 deletions docs/dist/assets/chunks/@localSearchIndexroot._IMhUsg2.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3c8df8f

Please sign in to comment.