Skip to content

Commit

Permalink
更新配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Jan 11, 2024
1 parent 9df25d0 commit 68ca8ef
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 42 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 learnzig
Copyright (c) 2023 zig-course

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
78 changes: 40 additions & 38 deletions course/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,44 @@ import nav from "./nav";
import socialLinks from "./socialLinks";

export default defineConfig({
lang: "zh-CN",
title: "Learn Zig",
description: "简单、快速地学习 Zig,ziglang中文教程,zig中文教程,",
sitemap: {
hostname: "https://learnzig.nvimer.org/",
},
lastUpdated: true,
themeConfig: {
editLink: {
pattern: "https://github.com/learnzig/learnzig/tree/main/learn/:path",
},
search: {
provider: "local",
options: {
locales: {
root: {
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
noResultsText: "无法找到相关结果",
resetButtonTitle: "清除查询条件",
footer: {
selectText: "选择",
navigateText: "切换",
},
},
},
},
},
},
},
nav: nav,
sidebar: sidebar,
socialLinks: socialLinks,
},
lang: "zh-CN",
title: "Zig 圣经",
description: "简单、快速地学习 Zig,ziglang中文教程,zig中文教程,",
sitemap: {
hostname: "https://zigcc.github.io/zig-course/",
},
base: "/zig-course/",
lastUpdated: true,
themeConfig: {
editLink: {
pattern:
"https://github.com/zigcc/zig-course/tree/main/learn/:path",
},
search: {
provider: "local",
options: {
locales: {
root: {
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
noResultsText: "无法找到相关结果",
resetButtonTitle: "清除查询条件",
footer: {
selectText: "选择",
navigateText: "切换",
},
},
},
},
},
},
},
nav: nav,
sidebar: sidebar,
socialLinks: socialLinks,
},
});
2 changes: 1 addition & 1 deletion course/.vitepress/socialLinks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DefaultTheme } from "vitepress";

export default [
{ icon: "github", link: "https://github.com/learnzig/learnzig" },
{ icon: "github", link: "https://github.com/zigcc/zig-course" },
] as DefaultTheme.SocialLink[];
4 changes: 2 additions & 2 deletions course/basic/advanced_type/struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const User = struct {
email: []u8,
active: bool,
pub const writer = "learnzig";
pub const writer = "zig-course";
pub fn init(userName: []u8, password: []u8, email: []u8, active: bool) User {
return User{
Expand Down Expand Up @@ -186,7 +186,7 @@ const User = struct {
email: []u8,
active: bool,
pub const writer = "learnzig";
pub const writer = "zig-course";
pub fn init(userName: []u8, password: []u8, email: []u8, active: bool) User {
return User{
Expand Down

0 comments on commit 68ca8ef

Please sign in to comment.