Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
curder committed Jun 20, 2024
1 parent 3d00df8 commit 532232f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
27 changes: 13 additions & 14 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
import {defineConfig} from 'vitepress'
import nav from './nav'
import {defineConfig} from "vitepress"
import nav from "./nav"
import sidebar from "./sidebar";

export default defineConfig({
base: "/laravel-study/",
lang: 'zh-CN',
title: 'Laravel 学习记录',
description: 'Laravel学习点滴',
lang: "zh-CN",
title: "Laravel 学习记录",
description: "Laravel 学习点滴",
lastUpdated: true,
head: [
['link', {rel: 'icon', href: '/laravel-study/images/favicon.ico'}],
["link", {rel: "icon", href: "/laravel-study/images/favicon.ico"}],
],

themeConfig: {
search: {
provider: 'local',
provider: "local",
},
logo: {
src: '/images/logomark.min.svg',
src: "/images/logomark.min.svg",
alt: "Laravel Logo",
},
siteTitle: "Laravel 学习记录",
outlineBadges: false,
outline: {
label: "章节导航",
level: 'deep',
level: "deep",
},
lastUpdated: {
text: "最后更新",
},
docFooter: {
prev: '上一页',
next: '下一页'
prev: "上一页",
next: "下一页"
},
editLink: {
pattern: "https://github.com/curder/laravel-study/edit/master/docs/:path",
text: '编辑它'
text: "编辑它"
},
socialLinks: [
{icon: 'github', link: 'https://github.com/curder/laravel-study'}
{icon: "github", link: "https://github.com/curder/laravel-study"}
],
// @ts-ignore
nav,
Expand Down
16 changes: 8 additions & 8 deletions docs/.vitepress/nav.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export default [
{text: '集合', link: '/collections/'},
{text: '模型', link: '/model/'},
{text: "集合", link: "/collections/"},
{text: "模型", link: "/model/"},
{
text: "更多",
items: [
{text: "代码片段", link: '/partials/migrations'},
{text: "小技巧", link: '/tips/db-models-and-eloquent'},
{text: "代码片段", link: "/partials/migrations"},
{text: "小技巧", link: "/tips/db-models-and-eloquent"},
{text: "常用扩展", link: "/packages/"},
{text: '其他', link: '/others/whats-new-in-laravel-11'},
{text: "其他", link: "/others/whats-new-in-laravel-11"},
]
},
{
text: "",
items: [
{text: 'Bolg', link: 'https://curder.github.io/blog/', target: '_blank', rel: 'blog'},
{text: 'What is new in PHP', link: 'https://curder.github.io/what-is-new-in-php/', target: '_blank', rel: 'what is new in php'},
{text: 'Setup mac for developer', link: 'https://curder.github.io/setup-mac-for-developer/', target: '_blank', rel: 'setup mac for developer'},
{text: "Bolg", link: "https://curder.github.io/blog/", target: "_blank", rel: "blog"},
{text: "What is new in PHP", link: "https://curder.github.io/what-is-new-in-php/", target: "_blank", rel: "what is new in php"},
{text: "Setup mac for developer", link: "https://curder.github.io/setup-mac-for-developer/", target: "_blank", rel: "setup mac for developer"},
]
},
];

0 comments on commit 532232f

Please sign in to comment.