Skip to content

Commit 6a00e84

Browse files
committed
Merge main into sort-custom
2 parents 5950cb8 + 6ec1882 commit 6a00e84

File tree

593 files changed

+6212
-2455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

593 files changed

+6212
-2455
lines changed

.vuepress/config.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import path from 'node:path';
22
import { defineUserConfig } from '@vuepress/cli';
33
import { gitPlugin } from '@vuepress/plugin-git';
44
import { feedPlugin } from '@vuepress/plugin-feed';
@@ -15,12 +15,14 @@ import {
1515
navbarDe,
1616
navbarEn,
1717
navbarEs,
18+
navbarFr,
1819
navbarJa,
1920
navbarPtBR,
2021
navbarRU,
2122
navbarZhCN,
2223
sidebarDe,
2324
sidebarEn,
25+
sidebarFr,
2426
sidebarEs,
2527
sidebarJa,
2628
sidebarPtBR,
@@ -61,6 +63,11 @@ export default defineUserConfig({
6163
title: 'Nushell',
6264
description: 'Eine neue Art von Shell.',
6365
},
66+
'/fr/': {
67+
lang: 'fr-FR',
68+
title: 'Nushell',
69+
description: 'Un nouveau type de shell.',
70+
},
6471
'/es/': {
6572
lang: 'es-ES',
6673
title: 'Nushell',
@@ -92,9 +99,6 @@ export default defineUserConfig({
9299
['link', { rel: 'icon', href: '/icon.png' }],
93100
],
94101
markdown: {
95-
code: {
96-
lineNumbers: false,
97-
},
98102
importCode: {
99103
handleImportPath: (str) =>
100104
str.replace(/^@snippets/, path.resolve(__dirname, '../snippets')),
@@ -132,6 +136,13 @@ export default defineUserConfig({
132136
navbar: navbarEs,
133137
sidebar: sidebarEs,
134138
},
139+
'/fr/': {
140+
selectText: 'Langues',
141+
selectLanguageName: 'Français',
142+
editLinkText: 'Modifier la page sur GitHub',
143+
navbar: navbarFr,
144+
sidebar: sidebarFr,
145+
},
135146
'/ja/': {
136147
selectText: '言語',
137148
selectLanguageName: '日本語',
@@ -175,6 +186,7 @@ export default defineUserConfig({
175186
}),
176187
shikiPlugin({
177188
theme: 'dark-plus',
189+
lineNumbers: true,
178190
langs: [
179191
'nushell',
180192
'rust',

.vuepress/configs/navbar/fr.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { NavbarConfig } from '@vuepress/theme-default';
2+
3+
export const navbarFr: NavbarConfig = [
4+
{ text: 'Installez Nu !', link: '/fr/book/installation' },
5+
{ text: 'Prise en main', link: '/fr/book/getting_started' },
6+
{
7+
text: 'Documentation',
8+
children: [{ text: 'Le Livre Nushell', link: '/fr/book/' }],
9+
},
10+
];

.vuepress/configs/navbar/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './de.js';
22
export * from './en.js';
33
export * from './es.js';
4+
export * from './fr.js';
45
export * from './ja.js';
56
export * from './pt-BR.js';
67
export * from './ru.js';

.vuepress/configs/sidebar/en.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export const sidebarEn: SidebarConfig = {
5353
'/book/scripts.md',
5454
'/book/modules.md',
5555
'/book/overlays.md',
56-
'/book/command_signature.md',
5756
'/book/sorting.md',
5857
'/book/testing.md',
5958
'/book/style_guide.md',

.vuepress/configs/sidebar/fr.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { SidebarConfig } from '@vuepress/theme-default';
2+
import { commandCategories } from './command_categories';
3+
4+
export const sidebarFr: SidebarConfig = {
5+
'/fr/book/': [
6+
{
7+
text: 'Introduction',
8+
link: '/fr/book/README.md',
9+
collapsible: false,
10+
},
11+
{
12+
text: 'Installation',
13+
link: '/fr/book/installation.md',
14+
collapsible: false,
15+
children: ['/fr/book/default_shell.md'],
16+
},
17+
{
18+
text: 'Prise en main',
19+
link: '/fr/book/getting_started.md',
20+
collapsible: false,
21+
children: [
22+
'/fr/book/quick_tour.md',
23+
'/fr/book/moving_around.md',
24+
'/fr/book/thinking_in_nu.md',
25+
'/fr/book/cheat_sheet.md',
26+
],
27+
},
28+
],
29+
};

.vuepress/configs/sidebar/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './de.js';
22
export * from './en.js';
33
export * from './es.js';
4+
export * from './fr.js';
45
export * from './ja.js';
56
export * from './pt-BR.js';
67
export * from './ru.js';

.vuepress/styles/index.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,26 @@
1111
* to avoid gaps in tables rendered with box-drawing characters
1212
*/
1313
.theme-default-content pre,
14-
.theme-default-content pre[class*=language-] {
15-
line-height: 1;
14+
.theme-default-content pre[class*='language-'] {
15+
line-height: 1.1;
16+
}
17+
.theme-default-content h2.title a {
18+
color: #adb6be;
1619
}
1720

1821
/* Make sure the line numbers have the same line-height as the code lines
1922
*/
20-
div[class*="language-"].line-numbers-mode .line-numbers {
21-
line-height: 1;
23+
div[class*='language-'].line-numbers-mode .line-numbers {
24+
line-height: 1.1;
2225
}
2326

2427
/* Add DejaVu Sans Mono to the list of monospaced fonts.
2528
* This allows tables to be rendered seamlessly with box-drawing characters.
2629
*/
2730
:root {
28-
--font-family-code: Consolas, Monaco, 'Andale Mono', 'DejaVu Sans Mono', 'Ubuntu Mono', monospace;
31+
--code-line-height: 1.1;
32+
--font-family-code: Consolas, Monaco, 'Andale Mono', 'DejaVu Sans Mono',
33+
'Ubuntu Mono', monospace;
2934
}
3035

3136
@media screen and (min-width: 720px) and (max-width: 815px) {

0 commit comments

Comments
 (0)