-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2a5176
commit bcce33c
Showing
245 changed files
with
23,274 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Github Pages Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '12' | ||
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./.vuepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
.vuepress/dist/ | ||
npm-debug.log | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<div> | ||
<div v-for="post in posts"> | ||
<section class="blog-post"> | ||
<time class="published">{{ post.date }}</time> | ||
<h2 class="title"> | ||
<a v-bind:href="post.path" class="link">{{ post.title }}</a> | ||
</h2> | ||
<p v-if="post.frontmatter.excerpt" class="excerpt"> | ||
{{ post.frontmatter.excerpt }} | ||
</p> | ||
<a class="read-more" v-bind:href="post.path"> Read More →</a> | ||
</section> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "BlogPosts", | ||
computed: { | ||
posts() { | ||
return this.$site.pages | ||
.filter((p) => { | ||
return p.path.indexOf("/blog/") >= 0 && p.path != "/blog/"; | ||
}) | ||
.map((p) => { | ||
let path = p.path.replace("/blog/", ""); | ||
return { ...p, path: path, date: path.substring(0, 10) }; | ||
}) | ||
.sort((a, b) => new Date(b.date) - new Date(a.date)); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.blog-post { | ||
margin-bottom: 2.5rem; | ||
} | ||
.excerpt { | ||
margin-top: 0; | ||
margin-bottom: 12px; | ||
font-size: 1.2rem; | ||
} | ||
.link { | ||
font-weight: 700; | ||
color: #2c3e50; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
.published { | ||
font-weight: 400; | ||
} | ||
.title { | ||
margin-top: 0.5rem; | ||
margin-bottom: 0.75rem; | ||
font-size: 24px; | ||
} | ||
.read-more { | ||
font-weight: 500; | ||
border: 1px solid #3eaf7c; | ||
border-radius: 4px; | ||
color: #3eaf7c; | ||
font-size: 0.9rem; | ||
padding: 0.3rem 0.6rem; | ||
box-shadow: 0 0; | ||
display: inline-block; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,278 @@ | ||
module.exports = { | ||
base: "/nushell_website/", | ||
locales: { | ||
"/": { | ||
lang: "English", | ||
title: "NuShell", | ||
description: "A new type of shell.", | ||
}, | ||
"/es/": { | ||
lang: "es", | ||
title: "NuShell", | ||
description: "Un nuevo tipo de caparazón.", | ||
}, | ||
"/ja/": { | ||
lang: "ja", | ||
title: "NuShell", | ||
description: "新しいタイプのシェル。.", | ||
}, | ||
"/pt-BR/": { | ||
lang: "pt-BR", | ||
title: "NuShell", | ||
description: "Um novo tipo de concha.", | ||
}, | ||
"/zh-cn/": { | ||
lang: "zh-cn", | ||
title: "NuShell", | ||
description: "一种新型的外壳。.", | ||
}, | ||
}, | ||
head: [ | ||
["meta", { name: "theme-color", content: "#3eaf7c" }], | ||
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }], | ||
[ | ||
"meta", | ||
{ name: "apple-mobile-web-app-status-bar-style", content: "black" }, | ||
], | ||
["link", { rel: "icon", href: "/icon.png" }], | ||
], | ||
themeConfig: { | ||
repo: "nushell/nushell", | ||
repoLabel: "GitHub", | ||
editLinks: true, | ||
docsDir: "docs", | ||
lastUpdated: false, | ||
locales: { | ||
"/": { | ||
selectText: "Languages", | ||
label: "English", | ||
editLinkText: "Edit this page on GitHub", | ||
nav: [ | ||
{ text: "Book", link: "/book/" }, | ||
{ text: "Contributor Book", link: "/contributor-book/" }, | ||
{ text: "Cookbook", link: "/cookbook/" }, | ||
{ text: "Blog", link: "/blog/" }, | ||
], | ||
sidebar: { | ||
"/book/": [ | ||
{ | ||
title: "Nu Book", | ||
collapsable: false, | ||
children: [ | ||
"installation", | ||
"introduction", | ||
"moving_around", | ||
"types_of_data", | ||
"loading_data", | ||
"working_with_tables", | ||
"pipeline", | ||
"configuration", | ||
"aliases", | ||
"math", | ||
"environment", | ||
"metadata", | ||
"shells_in_shells", | ||
"escaping", | ||
"plugins", | ||
"coming_from_bash", | ||
"nushell_map", | ||
"nushell_map_imperative", | ||
"nushell_map_functional", | ||
"nushell_operator_map", | ||
], | ||
}, | ||
], | ||
"/contributor-book/": [ | ||
{ | ||
title: "Contributor Book", | ||
collapsable: false, | ||
children: [ | ||
"introduction", | ||
"philosophy", | ||
"values", | ||
"commands", | ||
"streams", | ||
"metadata", | ||
"plugins", | ||
"shells", | ||
], | ||
}, | ||
], | ||
"/cookbook/": [ | ||
{ | ||
title: "Cookbook", | ||
collapsable: false, | ||
children: [ | ||
"setup", | ||
"help", | ||
"system", | ||
"parsing", | ||
"native_shell_programs", | ||
"files", | ||
"git", | ||
"parsing_git_log", | ||
"http", | ||
"misc", | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
"/es/": { | ||
selectText: "Idiomas", | ||
label: "Español", | ||
editLinkText: "Edita esta página en GitHub", | ||
nav: [ | ||
{ text: "Libro", link: "/es/book/" }, | ||
{ text: "Libro Colaborador", link: "/es/contributor-book/" }, | ||
], | ||
sidebar: { | ||
"/es/book/": [ | ||
{ | ||
title: "Nu Libro", | ||
collapsable: false, | ||
children: [ | ||
"instalacion", | ||
"introduccion", | ||
"explorando", | ||
"tipos_de_datos", | ||
"cargando_datos", | ||
"trabajando_con_tablas", | ||
"pipeline", | ||
"configuracion", | ||
"aliases", | ||
"matematicas", | ||
"entorno", | ||
"metadatos", | ||
"shells_en_shells", | ||
"escapando", | ||
"plugins", | ||
"llegando_de_bash", | ||
"mapa_nushell", | ||
"mapa_imperativo_nushell", | ||
"mapa_funcional_nushell", | ||
"mapa_operador_nushell", | ||
], | ||
}, | ||
], | ||
"/es/contributor-book/": [ | ||
{ | ||
title: "Contributor Book", | ||
collapsable: false, | ||
children: [ | ||
"introduccion", | ||
"filosofia", | ||
"valores", | ||
"comandos", | ||
"metadatos", | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
"/ja/": { | ||
selectText: "言語", | ||
label: "日本語", | ||
editLinkText: "GitHubでこのページを編集する", | ||
nav: [{ text: "本", link: "/ja/book/" }], | ||
sidebar: { | ||
"/ja/book/": [ | ||
{ | ||
title: "Nu 本", | ||
collapsable: false, | ||
children: [ | ||
"installation", | ||
"introduction", | ||
"moving_around", | ||
"types_of_data", | ||
"loading_data", | ||
"working_with_tables", | ||
"pipeline", | ||
"configuration", | ||
"metadata", | ||
"shells_in_shells", | ||
"escaping", | ||
"plugins", | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
"/pt-BR/": { | ||
selectText: "Línguas", | ||
label: "Português do Brasil", | ||
editLinkText: "Edite esta página no GitHub", | ||
nav: [ | ||
{ text: "Livro", link: "/pt-BR/book/" }, | ||
{ text: "Livro de Contribuidor", link: "/pt-BR/contributor-book/" }, | ||
], | ||
sidebar: { | ||
"/pt-BR/book/": [ | ||
{ | ||
title: "Nu Livro", | ||
collapsable: false, | ||
children: [ | ||
"instalacao", | ||
"introducao", | ||
"explorando", | ||
"tipos_de_dados", | ||
"carregando_dados", | ||
"trabalhando_com_tabelas", | ||
"pipeline", | ||
"metadados", | ||
"shells_em_shells", | ||
"escapando", | ||
"plugins", | ||
], | ||
}, | ||
], | ||
"/pt-BR/contributor-book/": [ | ||
{ | ||
title: "Contributor Book", | ||
collapsable: false, | ||
children: [ | ||
"introdução", | ||
"filosofia", | ||
"valores", | ||
"comandos", | ||
"streams", | ||
"metadados", | ||
"plugins", | ||
"shells", | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
"/zh-cn/": { | ||
selectText: "语言", | ||
label: "中文", | ||
editLinkText: "在GitHub上编辑此页面", | ||
nav: [{ text: "书", link: "/zh-CN/book/" }], | ||
sidebar: { | ||
"/zh-cn/book/": [ | ||
{ | ||
title: "Nu 书", | ||
collapsable: false, | ||
children: [ | ||
"installation", | ||
"introduction", | ||
"moving_around", | ||
"types_of_data", | ||
"loading_data", | ||
"working_with_tables", | ||
"pipeline", | ||
"configuration", | ||
"aliases", | ||
"math", | ||
"environment", | ||
"metadata", | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Client app enhancement file. | ||
* | ||
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements | ||
*/ | ||
|
||
export default ({ | ||
Vue, // the version of Vue being used in the VuePress app | ||
options, // the options for the root Vue instance | ||
router, // the router instance for the app | ||
siteData // site metadata | ||
}) => { | ||
// ...apply enhancements for the site. | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Oops, something went wrong.