Skip to content

Commit

Permalink
feat: change root lang (to en) (#291)
Browse files Browse the repository at this point in the history
* feat: change root lang (to en)

* chore ci

* update env version
  • Loading branch information
ubugeeei authored Nov 3, 2024
1 parent 5241c1c commit 9cdc9ae
Show file tree
Hide file tree
Showing 137 changed files with 11,574 additions and 11,572 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
Expand All @@ -44,8 +44,9 @@ jobs:
run: pnpm lint
- name: Check lint text
run: pnpm lint:text
- name: Check types
run: pnpm tsc --noEmit
# FIXME:
# - name: Check types
# run: pnpm tsc --noEmit
- name: Check building
run: pnpm build
- name: Check test (e2e)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ npm i -g @antfu/ni
### book url (GitHub Pages)

English: https://book.chibivue.land/en
English: https://book.chibivue.land/

Japaneses: https://book.chibivue.land
Japaneses: https://book.chibivue.land/ja

### open book on localhost

Expand All @@ -59,7 +59,7 @@ $ nr book:dev

### view on github

[English](https://github.com/chibivue-land/chibivue/tree/main/book/online-book/src/en) | [Japanese](https://github.com/chibivue-land/chibivue/tree/main/book/online-book/src)
[English](https://github.com/chibivue-land/chibivue/tree/main/book/online-book/src) | [Japanese](https://github.com/chibivue-land/chibivue/tree/main/book/online-book/src/ja)
<br/>
<br/>

Expand Down Expand Up @@ -204,7 +204,7 @@ This chapter implements createApp / virtual dom / patch / reactivity / template

The title is "**Hyper Ultimate Super Extreme Minimal Vue - writing Vue.js on 15 minutes**"

[Online Book](https://book.chibivue.land/en/bonus/hyper-ultimate-super-extreme-minimal-vue) | [Actual Source](https://github.com/chibivue-land/chibivue/blob/main/book/impls/bonus/hyper-ultimate-super-extreme-minimal-vue/packages/index.ts)
[Online Book](https://book.chibivue.land/bonus/hyper-ultimate-super-extreme-minimal-vue) | [Actual Source](https://github.com/chibivue-land/chibivue/blob/main/book/impls/bonus/hyper-ultimate-super-extreme-minimal-vue/packages/index.ts)

<img src="./book/images/hyper-ultimate-super-extreme-minimal-vue.png">

Expand Down
102 changes: 51 additions & 51 deletions book/online-book/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ import { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
themeConfig: {
nav: [
{ text: 'Home', link: '/en/' },
{ text: 'Start Learning', link: '/en/00-introduction/010-about' },
{ text: 'Home', link: '/' },
{ text: 'Start Learning', link: '/00-introduction/010-about' },
],
sidebar: [
{
text: 'Getting Started',
collapsed: false,
items: [
{ text: 'Getting Started', link: '/en/00-introduction/010-about' },
{ text: 'Getting Started', link: '/00-introduction/010-about' },
{
text: 'What is Vue.js?',
link: '/en/00-introduction/020-what-is-vue',
link: '/00-introduction/020-what-is-vue',
},
{
text: 'Key Elements of Vue.js',
link: '/en/00-introduction/030-vue-core-components',
link: '/00-introduction/030-vue-core-components',
},
{
text: 'Approach in This Book and Setting Up the Environment',
link: '/en/00-introduction/040-setup-project',
link: '/00-introduction/040-setup-project',
},
],
},
Expand All @@ -32,43 +32,43 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: 'First Rendering and the createApp API',
link: '/en/10-minimum-example/010-create-app-api',
link: '/10-minimum-example/010-create-app-api',
},
{
text: "Let's Enable Rendering HTML Elements",
link: '/en/10-minimum-example/020-simple-h-function',
link: '/10-minimum-example/020-simple-h-function',
},
{
text: 'A Lightweight Reactivity System',
link: '/en/10-minimum-example/030-minimum-reactive',
link: '/10-minimum-example/030-minimum-reactive',
},
{
text: 'A Minimal Virtual DOM',
link: '/en/10-minimum-example/040-minimum-virtual-dom',
link: '/10-minimum-example/040-minimum-virtual-dom',
},
{
text: 'Aspiring for Component-Oriented Development',
link: '/en/10-minimum-example/050-minimum-component',
link: '/10-minimum-example/050-minimum-component',
},
{
text: 'A Simple Template Compiler',
link: '/en/10-minimum-example/060-minimum-template-compiler',
link: '/10-minimum-example/060-minimum-template-compiler',
},
{
text: 'Desire to Write More Complex HTML',
link: '/en/10-minimum-example/070-more-complex-parser',
link: '/10-minimum-example/070-more-complex-parser',
},
{
text: 'Data Binding',
link: '/en/10-minimum-example/080-template-binding',
link: '/10-minimum-example/080-template-binding',
},
{
text: 'Desire to Develop with Single File Components',
link: '/en/10-minimum-example/090-minimum-sfc',
link: '/10-minimum-example/090-minimum-sfc',
},
{
text: 'Taking a Short Break',
link: '/en/10-minimum-example/100-break',
link: '/10-minimum-example/100-break',
},
],
},
Expand All @@ -78,19 +78,19 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: 'key Attribute and Patch Rendering',
link: '/en/20-basic-virtual-dom/010-patch-keyed-children',
link: '/20-basic-virtual-dom/010-patch-keyed-children',
},
{
text: 'Bit-Level Representation of VNodes',
link: '/en/20-basic-virtual-dom/020-bit-flags',
link: '/20-basic-virtual-dom/020-bit-flags',
},
{
text: 'Scheduler',
link: '/en/20-basic-virtual-dom/030-scheduler',
link: '/20-basic-virtual-dom/030-scheduler',
},
{
text: '🚧 Patch for Unhandled Props',
link: '/en/20-basic-virtual-dom/040-patch-other-attrs',
link: '/20-basic-virtual-dom/040-patch-other-attrs',
},
],
},
Expand All @@ -100,23 +100,23 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: 'ref API',
link: '/en/30-basic-reactivity-system/010-ref-api',
link: '/30-basic-reactivity-system/010-ref-api',
},
{
text: 'computed / watch API',
link: '/en/30-basic-reactivity-system/020-computed-watch',
link: '/30-basic-reactivity-system/020-computed-watch',
},
{
text: 'Various Reactive Proxy Handlers',
link: '/en/30-basic-reactivity-system/030-reactive-proxy-handlers',
link: '/30-basic-reactivity-system/030-reactive-proxy-handlers',
},
{
text: 'Effect Cleanup and Effect Scope',
link: '/en/30-basic-reactivity-system/040-effect-scope',
link: '/30-basic-reactivity-system/040-effect-scope',
},
{
text: 'Other Reactivity APIs',
link: '/en/30-basic-reactivity-system/050-other-apis',
link: '/30-basic-reactivity-system/050-other-apis',
},
],
},
Expand All @@ -126,23 +126,23 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: 'Lifecycle Hooks',
link: '/en/40-basic-component-system/010-lifecycle-hooks',
link: '/40-basic-component-system/010-lifecycle-hooks',
},
{
text: 'Provide/Inject',
link: '/en/40-basic-component-system/020-provide-inject',
link: '/40-basic-component-system/020-provide-inject',
},
{
text: 'Component Proxies and setupContext',
link: '/en/40-basic-component-system/030-component-proxy-setup-context',
link: '/40-basic-component-system/030-component-proxy-setup-context',
},
{
text: 'Slots',
link: '/en/40-basic-component-system/040-component-slot',
link: '/40-basic-component-system/040-component-slot',
},
{
text: 'Supporting Options API',
link: '/en/40-basic-component-system/050-options-api',
link: '/40-basic-component-system/050-options-api',
},
],
},
Expand All @@ -152,59 +152,59 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: 'Refactoring Implementation of Transformer for Codegen',
link: '/en/50-basic-template-compiler/010-transform',
link: '/50-basic-template-compiler/010-transform',
},
{
text: 'Implementing Directives (v-bind)',
link: '/en/50-basic-template-compiler/020-v-bind',
link: '/50-basic-template-compiler/020-v-bind',
},
{
text: 'Eval expression in template',
link: '/en/50-basic-template-compiler/022-transform-expression',
link: '/50-basic-template-compiler/022-transform-expression',
},
{
text: 'Supporting v-on',
link: '/en/50-basic-template-compiler/025-v-on',
link: '/50-basic-template-compiler/025-v-on',
},
{
text: 'compiler-dom and Event Modifiers',
link: '/en/50-basic-template-compiler/027-event-modifier',
link: '/50-basic-template-compiler/027-event-modifier',
},
{
text: 'Support for Fragment',
link: '/en/50-basic-template-compiler/030-fragment',
link: '/50-basic-template-compiler/030-fragment',
},
{
text: 'Support for Comment Node',
link: '/en/50-basic-template-compiler/035-comment',
link: '/50-basic-template-compiler/035-comment',
},
{
text: 'v-if and Structural Directives',
link: '/en/50-basic-template-compiler/040-v-if-and-structural-directive',
link: '/50-basic-template-compiler/040-v-if-and-structural-directive',
},
{
text: 'Support for v-for',
link: '/en/50-basic-template-compiler/050-v-for',
link: '/50-basic-template-compiler/050-v-for',
},
{
text: 'Resolving Components',
link: '/en/50-basic-template-compiler/070-resolve-component',
link: '/50-basic-template-compiler/070-resolve-component',
},
{
text: '🚧 Support for Slot',
link: '/en/50-basic-template-compiler/080-slot',
link: '/50-basic-template-compiler/080-slot',
},
{
text: '🚧 Other Directives',
link: '/en/50-basic-template-compiler/090-other-directives',
link: '/50-basic-template-compiler/090-other-directives',
},
{
text: '🚧 Chore Compiler',
link: '/en/50-basic-template-compiler/100-chore-compiler',
link: '/50-basic-template-compiler/100-chore-compiler',
},
{
text: '🚧 Custom Directives',
link: '/en/50-basic-template-compiler/500-custom-directive',
link: '/50-basic-template-compiler/500-custom-directive',
},
],
},
Expand All @@ -214,19 +214,19 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: 'Supporting script setup',
link: '/en/60-basic-sfc-compiler/010-script-setup',
link: '/60-basic-sfc-compiler/010-script-setup',
},
{
text: 'Supporting defineProps',
link: '/en/60-basic-sfc-compiler/020-define-props',
link: '/60-basic-sfc-compiler/020-define-props',
},
{
text: 'Supporting defineEmits',
link: '/en/60-basic-sfc-compiler/030-define-emits',
link: '/60-basic-sfc-compiler/030-define-emits',
},
{
text: 'Supporting Scoped CSS',
link: '/en/60-basic-sfc-compiler/040-scoped-css',
link: '/60-basic-sfc-compiler/040-scoped-css',
},
],
},
Expand Down Expand Up @@ -311,17 +311,17 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{
text: "chibivue, isn't it small...?",
link: '/en/bonus/hyper-ultimate-super-extreme-minimal-vue/',
link: '/bonus/hyper-ultimate-super-extreme-minimal-vue/',
},
{
text: 'Implement',
link: '/en/bonus/hyper-ultimate-super-extreme-minimal-vue/15-min-impl.md',
link: '/bonus/hyper-ultimate-super-extreme-minimal-vue/15-min-impl.md',
},
],
},
{
text: 'debug original Vue.js source',
link: '/en/bonus/debug-vuejs-core',
link: '/bonus/debug-vuejs-core',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions book/online-book/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (process.env.NODE_ENV === 'production'
: defineConfig)({
...sharedConfig,
locales: {
root: { label: '日本語', lang: 'ja', link: '/', ...jaConfig },
en: { label: 'English', lang: 'en', link: '/en/', ...enConfig },
root: { label: 'English', lang: 'en', link: '/', ...enConfig },
ja: { label: '日本語', lang: 'ja', link: '/ja', ...jaConfig },
},
})
Loading

0 comments on commit 9cdc9ae

Please sign in to comment.