@@ -28,152 +28,179 @@ export default defineConfig({
2828 provider : "local" ,
2929 }
3030 } ,
31+ markdown : {
32+ image : {
33+ lazyLoading : true ,
34+ } ,
35+ } ,
3136 locales : {
3237 root : themeConfigEnglish ( ) ,
3338 ru : themeConfigRussian ( )
3439 }
3540} )
3641
37- function themeConfigEnglish ( ) { return {
38- label : "English" ,
39- lang : "en" ,
40- link : "/" ,
41- title : "Denix Documentation" ,
42- description : "Nix library for creating scalable NixOS, Home Manager, and Nix-Darwin configurations with modules, hosts, and rices" ,
42+ function themeConfigEnglish ( ) {
43+ return {
44+ label : "English" ,
45+ lang : "en" ,
46+ link : "/" ,
47+ title : "Denix Documentation" ,
48+ description : "Nix library for creating scalable NixOS, Home Manager, and Nix-Darwin configurations with modules, hosts, and rices" ,
4349
44- themeConfig : {
45- editLink : {
46- pattern : "https://github.com/yunfachi/denix/edit/master/docs/src/:path" ,
47- text : "Edit this page on Github"
48- } ,
50+ themeConfig : {
51+ editLink : {
52+ pattern : "https://github.com/yunfachi/denix/edit/master/docs/src/:path" ,
53+ text : "Edit this page on Github"
54+ } ,
4955
50- nav : [
51- { text : "Home" , link : "/" } ,
52- { text : "Introduction" , link : "/getting_started/introduction" }
53- ] ,
56+ nav : [
57+ { text : "Home" , link : "/" } ,
58+ { text : "Introduction" , link : "/getting_started/introduction" }
59+ ] ,
5460
55- sidebar : [
56- {
57- text : "Getting Started" ,
58- items : [
59- { text : "Introduction" , link : "/getting_started/introduction" } ,
60- { text : "Initialization" , link : "/getting_started/initialization" } ,
61- { text : "First Modules" , link : "/getting_started/first_modules" } ,
62- { text : "Transfer to Denix" , link : "/getting_started/transfer_to_denix" } ,
63- ] ,
64- } ,
65- {
66- text : "Modules" ,
67- items : [
68- { text : "Introduction to NixOS Modules" , link : "/modules/introduction-nixos" } ,
69- { text : "Introduction" , link : "/modules/introduction" } ,
70- { text : "Structure" , link : "/modules/structure" } ,
71- { text : "Examples" , link : "/modules/examples" }
72- ] ,
73- } ,
74- {
75- text : "Options" ,
76- items : [
77- { text : "Introduction" , link : "/options/introduction" } ,
78- ] ,
79- } ,
80- {
81- text : "Hosts" ,
82- items : [
83- { text : "Introduction" , link : "/hosts/introduction" } ,
84- { text : "Structure" , link : "/hosts/structure" } ,
85- { text : "Examples" , link : "/hosts/examples" }
86- ] ,
87- } ,
88- {
89- text : "Configurations (flakes)" ,
90- items : [
91- { text : "Introduction" , link : "/configurations/introduction" } ,
92- { text : "Structure" , link : "/configurations/structure" }
93- ] ,
94- } ,
95- {
96- text : "Rices" ,
97- items : [
98- { text : "Introduction" , link : "/rices/introduction" } ,
99- { text : "Structure" , link : "/rices/structure" } ,
100- { text : "Examples" , link : "/rices/examples" }
101- ] ,
102- } ,
103- { text : "Common Errors" , link : "/troubleshooting" } ,
104- { text : "Real Configurations" , link : "/real-configurations" } ,
105- ] ,
61+ sidebar : [
62+ {
63+ text : "Getting Started" ,
64+ items : [
65+ { text : "Introduction" , link : "/getting_started/introduction" } ,
66+ { text : "Initialization" , link : "/getting_started/initialization" } ,
67+ { text : "First Modules" , link : "/getting_started/first_modules" } ,
68+ { text : "Transfer to Denix" , link : "/getting_started/transfer_to_denix" } ,
69+ ] ,
70+ } ,
71+ {
72+ text : "Modules" ,
73+ items : [
74+ { text : "Introduction to NixOS Modules" , link : "/modules/introduction-nixos" } ,
75+ { text : "Introduction" , link : "/modules/introduction" } ,
76+ { text : "Structure" , link : "/modules/structure" } ,
77+ { text : "Examples" , link : "/modules/examples" }
78+ ] ,
79+ } ,
80+ {
81+ text : "Options" ,
82+ items : [
83+ { text : "Introduction" , link : "/options/introduction" } ,
84+ ] ,
85+ } ,
86+ {
87+ text : "Hosts" ,
88+ items : [
89+ { text : "Introduction" , link : "/hosts/introduction" } ,
90+ { text : "Structure" , link : "/hosts/structure" } ,
91+ { text : "Examples" , link : "/hosts/examples" }
92+ ] ,
93+ } ,
94+ {
95+ text : "Configurations (flakes)" ,
96+ items : [
97+ { text : "Introduction" , link : "/configurations/introduction" } ,
98+ { text : "Structure" , link : "/configurations/structure" }
99+ ] ,
100+ } ,
101+ {
102+ text : "Extensions" ,
103+ items : [
104+ { text : "Introduction" , link : "/extensions/introduction" } ,
105+ { text : "Structure" , link : "/extensions/structure" } ,
106+ { text : "Development" , link : "/extensions/development" } ,
107+ { text : "All Extensions" , link : "/extensions/all-extensions" }
108+ ] ,
109+ } ,
110+ {
111+ text : "Rices" ,
112+ items : [
113+ { text : "Introduction" , link : "/rices/introduction" } ,
114+ { text : "Structure" , link : "/rices/structure" } ,
115+ { text : "Examples" , link : "/rices/examples" }
116+ ] ,
117+ } ,
118+ { text : "Common Errors" , link : "/troubleshooting" } ,
119+ { text : "Real Configurations" , link : "/real-configurations" } ,
120+ ] ,
121+ }
106122 }
107- } }
123+ }
108124
109- function themeConfigRussian ( ) { return {
110- label : "Русский" ,
111- lang : "ru" ,
112- link : "/ru/" ,
113- title : "Denix Документация" ,
114- description : "Библиотека Nix для создания масштабируемых конфигураций NixOS, Home Manager и Nix-Darwin с модулями, хостами и райсами" ,
125+ function themeConfigRussian ( ) {
126+ return {
127+ label : "Русский" ,
128+ lang : "ru" ,
129+ link : "/ru/" ,
130+ title : "Denix Документация" ,
131+ description : "Библиотека Nix для создания масштабируемых конфигураций NixOS, Home Manager и Nix-Darwin с модулями, хостами и райсами" ,
115132
116- themeConfig : {
117- editLink : {
118- pattern : "https://github.com/yunfachi/denix/edit/master/docs/src/:path" ,
119- text : "Редактировать эту страницу на GitHub"
120- } ,
133+ themeConfig : {
134+ editLink : {
135+ pattern : "https://github.com/yunfachi/denix/edit/master/docs/src/:path" ,
136+ text : "Редактировать эту страницу на GitHub"
137+ } ,
121138
122- nav : [
123- { text : "Главная" , link : "/ru/" } ,
124- { text : "Вступление" , link : "/ru/getting_started/introduction" }
125- ] ,
139+ nav : [
140+ { text : "Главная" , link : "/ru/" } ,
141+ { text : "Вступление" , link : "/ru/getting_started/introduction" }
142+ ] ,
126143
127- sidebar : [
128- {
129- text : "Начнем" ,
130- items : [
131- { text : "Вступление" , link : "/ru/getting_started/introduction" } ,
132- { text : "Инициализация" , link : "/ru/getting_started/initialization" } ,
133- { text : "Первые модули" , link : "/ru/getting_started/first_modules" } ,
134- { text : "Перенос на Denix" , link : "/ru/getting_started/transfer_to_denix" } ,
135- ] ,
136- } ,
137- {
138- text : "Модули" ,
139- items : [
140- { text : "Вступление в модули NixOS" , link : "/ru/modules/introduction-nixos" } ,
141- { text : "Вступление" , link : "/ru/modules/introduction" } ,
142- { text : "Структура" , link : "/ru/modules/structure" } ,
143- { text : "Примеры" , link : "/ru/modules/examples" } ,
144- ] ,
145- } ,
146- {
147- text : "Опции" ,
148- items : [
149- { text : "Вступление" , link : "/ru/options/introduction" } ,
150- ] ,
151- } ,
152- {
153- text : "Хосты" ,
154- items : [
155- { text : "Вступление" , link : "/ru/hosts/introduction" } ,
156- { text : "Структура" , link : "/ru/hosts/structure" } ,
157- { text : "Примеры" , link : "/ru/hosts/examples" } ,
158- ] ,
159- } ,
160- {
161- text : "Конфигурации (флейки)" ,
162- items : [
163- { text : "Вступление" , link : "/ru/configurations/introduction" } ,
164- { text : "Структура" , link : "/ru/configurations/structure" } ,
165- ] ,
166- } ,
167- {
168- text : "Райсы" ,
169- items : [
170- { text : "Вступление" , link : "/ru/rices/introduction" } ,
171- { text : "Структура" , link : "/ru/rices/structure" } ,
172- { text : "Примеры" , link : "/ru/rices/examples" } ,
173- ] ,
174- } ,
175- { text : "Распространённые ошибки" , link : "/ru/troubleshooting" } ,
176- { text : "Реальные конфигурации" , link : "/ru/real-configurations" } ,
177- ] ,
144+ sidebar : [
145+ {
146+ text : "Начнем" ,
147+ items : [
148+ { text : "Вступление" , link : "/ru/getting_started/introduction" } ,
149+ { text : "Инициализация" , link : "/ru/getting_started/initialization" } ,
150+ { text : "Первые модули" , link : "/ru/getting_started/first_modules" } ,
151+ { text : "Перенос на Denix" , link : "/ru/getting_started/transfer_to_denix" } ,
152+ ] ,
153+ } ,
154+ {
155+ text : "Модули" ,
156+ items : [
157+ { text : "Вступление в модули NixOS" , link : "/ru/modules/introduction-nixos" } ,
158+ { text : "Вступление" , link : "/ru/modules/introduction" } ,
159+ { text : "Структура" , link : "/ru/modules/structure" } ,
160+ { text : "Примеры" , link : "/ru/modules/examples" } ,
161+ ] ,
162+ } ,
163+ {
164+ text : "Опции" ,
165+ items : [
166+ { text : "Вступление" , link : "/ru/options/introduction" } ,
167+ ] ,
168+ } ,
169+ {
170+ text : "Хосты" ,
171+ items : [
172+ { text : "Вступление" , link : "/ru/hosts/introduction" } ,
173+ { text : "Структура" , link : "/ru/hosts/structure" } ,
174+ { text : "Примеры" , link : "/ru/hosts/examples" } ,
175+ ] ,
176+ } ,
177+ {
178+ text : "Конфигурации (флейки)" ,
179+ items : [
180+ { text : "Вступление" , link : "/ru/configurations/introduction" } ,
181+ { text : "Структура" , link : "/ru/configurations/structure" } ,
182+ ] ,
183+ } ,
184+ {
185+ text : "Расширения" ,
186+ items : [
187+ { text : "Вступление" , link : "/ru/extensions/introduction" } ,
188+ { text : "Структура" , link : "/ru/extensions/structure" } ,
189+ { text : "Разработка" , link : "/ru/extensions/development" } ,
190+ { text : "Все расширения" , link : "/ru/extensions/all-extensions" }
191+ ] ,
192+ } ,
193+ {
194+ text : "Райсы" ,
195+ items : [
196+ { text : "Вступление" , link : "/ru/rices/introduction" } ,
197+ { text : "Структура" , link : "/ru/rices/structure" } ,
198+ { text : "Примеры" , link : "/ru/rices/examples" } ,
199+ ] ,
200+ } ,
201+ { text : "Распространённые ошибки" , link : "/ru/troubleshooting" } ,
202+ { text : "Реальные конфигурации" , link : "/ru/real-configurations" } ,
203+ ] ,
204+ }
178205 }
179- } }
206+ }
0 commit comments