Skip to content

Commit bcce33c

Browse files
authored
Merge Vuepress Site (#4)
1 parent d2a5176 commit bcce33c

File tree

245 files changed

+23274
-0
lines changed

Some content is hidden

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

245 files changed

+23274
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Github Pages Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v2-beta
16+
with:
17+
node-version: '12'
18+
19+
- run: npm install
20+
- run: npm run build
21+
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./.vuepress/dist

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.vuepress/dist/
3+
npm-debug.log
4+
.DS_Store

.vuepress/components/BlogPosts.vue

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<template>
2+
<div>
3+
<div v-for="post in posts">
4+
<section class="blog-post">
5+
<time class="published">{{ post.date }}</time>
6+
<h2 class="title">
7+
<a v-bind:href="post.path" class="link">{{ post.title }}</a>
8+
</h2>
9+
<p v-if="post.frontmatter.excerpt" class="excerpt">
10+
{{ post.frontmatter.excerpt }}
11+
</p>
12+
<a class="read-more" v-bind:href="post.path"> Read More →</a>
13+
</section>
14+
</div>
15+
</div>
16+
</template>
17+
18+
<script>
19+
export default {
20+
name: "BlogPosts",
21+
computed: {
22+
posts() {
23+
return this.$site.pages
24+
.filter((p) => {
25+
return p.path.indexOf("/blog/") >= 0 && p.path != "/blog/";
26+
})
27+
.map((p) => {
28+
let path = p.path.replace("/blog/", "");
29+
return { ...p, path: path, date: path.substring(0, 10) };
30+
})
31+
.sort((a, b) => new Date(b.date) - new Date(a.date));
32+
},
33+
},
34+
};
35+
</script>
36+
37+
<style scoped>
38+
.blog-post {
39+
margin-bottom: 2.5rem;
40+
}
41+
.excerpt {
42+
margin-top: 0;
43+
margin-bottom: 12px;
44+
font-size: 1.2rem;
45+
}
46+
.link {
47+
font-weight: 700;
48+
color: #2c3e50;
49+
&:hover {
50+
text-decoration: underline;
51+
}
52+
}
53+
.published {
54+
font-weight: 400;
55+
}
56+
.title {
57+
margin-top: 0.5rem;
58+
margin-bottom: 0.75rem;
59+
font-size: 24px;
60+
}
61+
.read-more {
62+
font-weight: 500;
63+
border: 1px solid #3eaf7c;
64+
border-radius: 4px;
65+
color: #3eaf7c;
66+
font-size: 0.9rem;
67+
padding: 0.3rem 0.6rem;
68+
box-shadow: 0 0;
69+
display: inline-block;
70+
}
71+
</style>

.vuepress/config.js

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
module.exports = {
2+
base: "/nushell_website/",
3+
locales: {
4+
"/": {
5+
lang: "English",
6+
title: "NuShell",
7+
description: "A new type of shell.",
8+
},
9+
"/es/": {
10+
lang: "es",
11+
title: "NuShell",
12+
description: "Un nuevo tipo de caparazón.",
13+
},
14+
"/ja/": {
15+
lang: "ja",
16+
title: "NuShell",
17+
description: "新しいタイプのシェル。.",
18+
},
19+
"/pt-BR/": {
20+
lang: "pt-BR",
21+
title: "NuShell",
22+
description: "Um novo tipo de concha.",
23+
},
24+
"/zh-cn/": {
25+
lang: "zh-cn",
26+
title: "NuShell",
27+
description: "一种新型的外壳。.",
28+
},
29+
},
30+
head: [
31+
["meta", { name: "theme-color", content: "#3eaf7c" }],
32+
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
33+
[
34+
"meta",
35+
{ name: "apple-mobile-web-app-status-bar-style", content: "black" },
36+
],
37+
["link", { rel: "icon", href: "/icon.png" }],
38+
],
39+
themeConfig: {
40+
repo: "nushell/nushell",
41+
repoLabel: "GitHub",
42+
editLinks: true,
43+
docsDir: "docs",
44+
lastUpdated: false,
45+
locales: {
46+
"/": {
47+
selectText: "Languages",
48+
label: "English",
49+
editLinkText: "Edit this page on GitHub",
50+
nav: [
51+
{ text: "Book", link: "/book/" },
52+
{ text: "Contributor Book", link: "/contributor-book/" },
53+
{ text: "Cookbook", link: "/cookbook/" },
54+
{ text: "Blog", link: "/blog/" },
55+
],
56+
sidebar: {
57+
"/book/": [
58+
{
59+
title: "Nu Book",
60+
collapsable: false,
61+
children: [
62+
"installation",
63+
"introduction",
64+
"moving_around",
65+
"types_of_data",
66+
"loading_data",
67+
"working_with_tables",
68+
"pipeline",
69+
"configuration",
70+
"aliases",
71+
"math",
72+
"environment",
73+
"metadata",
74+
"shells_in_shells",
75+
"escaping",
76+
"plugins",
77+
"coming_from_bash",
78+
"nushell_map",
79+
"nushell_map_imperative",
80+
"nushell_map_functional",
81+
"nushell_operator_map",
82+
],
83+
},
84+
],
85+
"/contributor-book/": [
86+
{
87+
title: "Contributor Book",
88+
collapsable: false,
89+
children: [
90+
"introduction",
91+
"philosophy",
92+
"values",
93+
"commands",
94+
"streams",
95+
"metadata",
96+
"plugins",
97+
"shells",
98+
],
99+
},
100+
],
101+
"/cookbook/": [
102+
{
103+
title: "Cookbook",
104+
collapsable: false,
105+
children: [
106+
"setup",
107+
"help",
108+
"system",
109+
"parsing",
110+
"native_shell_programs",
111+
"files",
112+
"git",
113+
"parsing_git_log",
114+
"http",
115+
"misc",
116+
],
117+
},
118+
],
119+
},
120+
},
121+
"/es/": {
122+
selectText: "Idiomas",
123+
label: "Español",
124+
editLinkText: "Edita esta página en GitHub",
125+
nav: [
126+
{ text: "Libro", link: "/es/book/" },
127+
{ text: "Libro Colaborador", link: "/es/contributor-book/" },
128+
],
129+
sidebar: {
130+
"/es/book/": [
131+
{
132+
title: "Nu Libro",
133+
collapsable: false,
134+
children: [
135+
"instalacion",
136+
"introduccion",
137+
"explorando",
138+
"tipos_de_datos",
139+
"cargando_datos",
140+
"trabajando_con_tablas",
141+
"pipeline",
142+
"configuracion",
143+
"aliases",
144+
"matematicas",
145+
"entorno",
146+
"metadatos",
147+
"shells_en_shells",
148+
"escapando",
149+
"plugins",
150+
"llegando_de_bash",
151+
"mapa_nushell",
152+
"mapa_imperativo_nushell",
153+
"mapa_funcional_nushell",
154+
"mapa_operador_nushell",
155+
],
156+
},
157+
],
158+
"/es/contributor-book/": [
159+
{
160+
title: "Contributor Book",
161+
collapsable: false,
162+
children: [
163+
"introduccion",
164+
"filosofia",
165+
"valores",
166+
"comandos",
167+
"metadatos",
168+
],
169+
},
170+
],
171+
},
172+
},
173+
"/ja/": {
174+
selectText: "言語",
175+
label: "日本語",
176+
editLinkText: "GitHubでこのページを編集する",
177+
nav: [{ text: "本", link: "/ja/book/" }],
178+
sidebar: {
179+
"/ja/book/": [
180+
{
181+
title: "Nu 本",
182+
collapsable: false,
183+
children: [
184+
"installation",
185+
"introduction",
186+
"moving_around",
187+
"types_of_data",
188+
"loading_data",
189+
"working_with_tables",
190+
"pipeline",
191+
"configuration",
192+
"metadata",
193+
"shells_in_shells",
194+
"escaping",
195+
"plugins",
196+
],
197+
},
198+
],
199+
},
200+
},
201+
"/pt-BR/": {
202+
selectText: "Línguas",
203+
label: "Português do Brasil",
204+
editLinkText: "Edite esta página no GitHub",
205+
nav: [
206+
{ text: "Livro", link: "/pt-BR/book/" },
207+
{ text: "Livro de Contribuidor", link: "/pt-BR/contributor-book/" },
208+
],
209+
sidebar: {
210+
"/pt-BR/book/": [
211+
{
212+
title: "Nu Livro",
213+
collapsable: false,
214+
children: [
215+
"instalacao",
216+
"introducao",
217+
"explorando",
218+
"tipos_de_dados",
219+
"carregando_dados",
220+
"trabalhando_com_tabelas",
221+
"pipeline",
222+
"metadados",
223+
"shells_em_shells",
224+
"escapando",
225+
"plugins",
226+
],
227+
},
228+
],
229+
"/pt-BR/contributor-book/": [
230+
{
231+
title: "Contributor Book",
232+
collapsable: false,
233+
children: [
234+
"introdução",
235+
"filosofia",
236+
"valores",
237+
"comandos",
238+
"streams",
239+
"metadados",
240+
"plugins",
241+
"shells",
242+
],
243+
},
244+
],
245+
},
246+
},
247+
"/zh-cn/": {
248+
selectText: "语言",
249+
label: "中文",
250+
editLinkText: "在GitHub上编辑此页面",
251+
nav: [{ text: "书", link: "/zh-CN/book/" }],
252+
sidebar: {
253+
"/zh-cn/book/": [
254+
{
255+
title: "Nu 书",
256+
collapsable: false,
257+
children: [
258+
"installation",
259+
"introduction",
260+
"moving_around",
261+
"types_of_data",
262+
"loading_data",
263+
"working_with_tables",
264+
"pipeline",
265+
"configuration",
266+
"aliases",
267+
"math",
268+
"environment",
269+
"metadata",
270+
],
271+
},
272+
],
273+
},
274+
},
275+
},
276+
},
277+
plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom"],
278+
};

.vuepress/enhanceApp.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Client app enhancement file.
3+
*
4+
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
5+
*/
6+
7+
export default ({
8+
Vue, // the version of Vue being used in the VuePress app
9+
options, // the options for the root Vue instance
10+
router, // the router instance for the app
11+
siteData // site metadata
12+
}) => {
13+
// ...apply enhancements for the site.
14+
}

.vuepress/public/icon.png

1.46 KB
Loading

.vuepress/styles/index.styl

Whitespace-only changes.

0 commit comments

Comments
 (0)