Fix doc redirect and sidebar titles (#1487)

This commit is contained in:
Justin Starry 2020-08-16 12:06:33 +08:00 committed by GitHub
parent b7b4a93f3b
commit 1bfa24e1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 214 additions and 83 deletions

View File

@ -1,5 +1,5 @@
--- ---
id: web-library id: choose-web-library
title: Choosing a web library title: Choosing a web library
--- ---
## Introduction ## Introduction

View File

@ -53,7 +53,7 @@
"getting-started/sample-app": { "getting-started/sample-app": {
"title": "Build a sample app" "title": "Build a sample app"
}, },
"getting-started/web-library": { "getting-started/choose-web-library": {
"title": "Choosing a web library" "title": "Choosing a web library"
}, },
"getting-started/examples": { "getting-started/examples": {

119
website/i18n/ja.json Normal file
View File

@ -0,0 +1,119 @@
{
"_comment": "This file is auto-generated by write-translations.js",
"localized-strings": {
"next": "Next",
"previous": "Previous",
"tagline": "Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.",
"docs": {
"advanced-topics/how-it-works": {
"title": "How it works"
},
"advanced-topics/optimizations": {
"title": "Optimizations"
},
"concepts/agents": {
"title": "Agents"
},
"concepts/components/callbacks": {
"title": "Callbacks"
},
"concepts/components/properties": {
"title": "Properties"
},
"concepts/components/components-intro": {
"title": "Introduction"
},
"concepts/components/refs": {
"title": "Refs"
},
"concepts/html/components": {
"title": "Components"
},
"concepts/html/elements": {
"title": "Elements"
},
"concepts/html/lists": {
"title": "Lists"
},
"concepts/html/expressions": {
"title": "Literals and Expressions"
},
"concepts/html/html-intro": {
"title": "Introduction"
},
"concepts/router": {
"title": "Router"
},
"concepts/services/format": {
"title": "Format"
},
"concepts/services/services-intro": {
"title": "Introduction"
},
"getting-started/sample-app": {
"title": "Build a sample app"
},
"getting-started/choose-web-library": {
"title": "Choosing a web library"
},
"getting-started/examples": {
"title": "Examples"
},
"getting-started/project-setup/setup": {
"title": "Introduction"
},
"getting-started/project-setup/cargo-web": {
"title": "Using cargo-web"
},
"getting-started/project-setup/wasm-bindgen": {
"title": "Using wasm-bindgen"
},
"getting-started/project-setup/wasm-pack": {
"title": "Using wasm-pack"
},
"getting-started/starter-templates": {
"title": "Starter templates"
},
"intro": {
"title": "Introduction"
},
"more/css": {
"title": "CSS"
},
"more/debugging": {
"title": "Debugging"
},
"more/external-libs": {
"title": "External libraries"
},
"more/roadmap": {
"title": "Roadmap"
},
"more/testing": {
"title": "Testing apps"
},
"README": {
"title": "README"
},
"SUMMARY": {
"title": "SUMMARY"
}
},
"links": {
"Changelog": "Changelog",
"API": "API",
"Discord": "Discord"
},
"categories": {
"Getting Started": "Getting Started",
"Concepts": "Concepts",
"Advanced topics": "Advanced topics",
"More": "More"
}
},
"pages-strings": {
"Help Translate|recruit community translators for your project": "Help Translate",
"Edit this Doc|recruitment message asking to edit the doc source": "Edit",
"Translate this Doc|recruitment message asking to translate the docs": "Translate"
}
}

View File

@ -6,91 +6,94 @@
"tagline": "Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.", "tagline": "Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.",
"docs": { "docs": {
"advanced-topics/how-it-works": { "advanced-topics/how-it-works": {
"title": "advanced-topics/how-it-works" "title": "How it works"
}, },
"advanced-topics/optimizations": { "advanced-topics/optimizations": {
"title": "advanced-topics/optimizations" "title": "Optimizations"
}, },
"concepts/agents": { "concepts/agents": {
"title": "concepts/agents" "title": "Agents"
}, },
"concepts/components/callbacks": { "concepts/components/callbacks": {
"title": "concepts/components/callbacks" "title": "Callbacks"
}, },
"concepts/components/properties": { "concepts/components/properties": {
"title": "concepts/components/properties" "title": "Properties"
}, },
"concepts/components/README": { "concepts/components/components-intro": {
"title": "concepts/components/README" "title": "Introduction"
}, },
"concepts/components/refs": { "concepts/components/refs": {
"title": "concepts/components/refs" "title": "Refs"
}, },
"concepts/html/components": { "concepts/html/components": {
"title": "concepts/html/components" "title": "Components"
}, },
"concepts/html/elements": { "concepts/html/elements": {
"title": "concepts/html/elements" "title": "Elements"
}, },
"concepts/html/lists": { "concepts/html/lists": {
"title": "concepts/html/lists" "title": "Lists"
}, },
"concepts/html/literals-and-expressions": { "concepts/html/expressions": {
"title": "concepts/html/literals-and-expressions" "title": "Literals and Expressions"
}, },
"concepts/html/README": { "concepts/html/html-intro": {
"title": "concepts/html/README" "title": "Introduction"
}, },
"concepts/router": { "concepts/router": {
"title": "concepts/router" "title": "Router"
}, },
"concepts/services/format": { "concepts/services/format": {
"title": "concepts/services/format" "title": "Format"
}, },
"concepts/services/README": { "concepts/services/services-intro": {
"title": "concepts/services/README" "title": "Introduction"
}, },
"getting-started/build-a-sample-app": { "getting-started/sample-app": {
"title": "getting-started/build-a-sample-app" "title": "Build a sample app"
}, },
"getting-started/choose-web-library": { "getting-started/choose-web-library": {
"title": "getting-started/choose-web-library" "title": "Choosing a web library"
}, },
"getting-started/examples": { "getting-started/examples": {
"title": "getting-started/examples" "title": "Examples"
}, },
"getting-started/project-setup/README": { "getting-started/project-setup/setup": {
"title": "getting-started/project-setup/README" "title": "Introduction"
}, },
"getting-started/project-setup/using-cargo-web": { "getting-started/project-setup/cargo-web": {
"title": "getting-started/project-setup/using-cargo-web" "title": "Using cargo-web"
}, },
"getting-started/project-setup/using-wasm-bindgen": { "getting-started/project-setup/wasm-bindgen": {
"title": "getting-started/project-setup/using-wasm-bindgen" "title": "Using wasm-bindgen"
}, },
"getting-started/project-setup/using-wasm-pack": { "getting-started/project-setup/wasm-pack": {
"title": "getting-started/project-setup/using-wasm-pack" "title": "Using wasm-pack"
}, },
"getting-started/starter-templates": { "getting-started/starter-templates": {
"title": "getting-started/starter-templates" "title": "Starter templates"
}, },
"intro": { "intro": {
"title": "简介" "title": "Introduction"
}, },
"more/css": { "more/css": {
"title": "more/css" "title": "CSS"
}, },
"more/debugging": { "more/debugging": {
"title": "more/debugging" "title": "Debugging"
}, },
"more/external-libs": { "more/external-libs": {
"title": "more/external-libs" "title": "External libraries"
}, },
"more/roadmap": { "more/roadmap": {
"title": "more/roadmap" "title": "Roadmap"
}, },
"more/testing": { "more/testing": {
"title": "more/testing" "title": "Testing apps"
},
"README": {
"title": "README"
}, },
"SUMMARY": { "SUMMARY": {
"title": "SUMMARY" "title": "SUMMARY"
@ -102,7 +105,10 @@
"Discord": "Discord" "Discord": "Discord"
}, },
"categories": { "categories": {
"Getting Started": "Getting Started" "Getting Started": "Getting Started",
"Concepts": "Concepts",
"Advanced topics": "Advanced topics",
"More": "More"
} }
}, },
"pages-strings": { "pages-strings": {

View File

@ -6,91 +6,94 @@
"tagline": "Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.", "tagline": "Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.",
"docs": { "docs": {
"advanced-topics/how-it-works": { "advanced-topics/how-it-works": {
"title": "advanced-topics/how-it-works" "title": "How it works"
}, },
"advanced-topics/optimizations": { "advanced-topics/optimizations": {
"title": "advanced-topics/optimizations" "title": "Optimizations"
}, },
"concepts/agents": { "concepts/agents": {
"title": "concepts/agents" "title": "Agents"
}, },
"concepts/components/callbacks": { "concepts/components/callbacks": {
"title": "concepts/components/callbacks" "title": "Callbacks"
}, },
"concepts/components/properties": { "concepts/components/properties": {
"title": "concepts/components/properties" "title": "Properties"
}, },
"concepts/components/README": { "concepts/components/components-intro": {
"title": "concepts/components/README" "title": "Introduction"
}, },
"concepts/components/refs": { "concepts/components/refs": {
"title": "concepts/components/refs" "title": "Refs"
}, },
"concepts/html/components": { "concepts/html/components": {
"title": "concepts/html/components" "title": "Components"
}, },
"concepts/html/elements": { "concepts/html/elements": {
"title": "concepts/html/elements" "title": "Elements"
}, },
"concepts/html/lists": { "concepts/html/lists": {
"title": "concepts/html/lists" "title": "Lists"
}, },
"concepts/html/literals-and-expressions": { "concepts/html/expressions": {
"title": "concepts/html/literals-and-expressions" "title": "Literals and Expressions"
}, },
"concepts/html/README": { "concepts/html/html-intro": {
"title": "concepts/html/README" "title": "Introduction"
}, },
"concepts/router": { "concepts/router": {
"title": "concepts/router" "title": "Router"
}, },
"concepts/services/format": { "concepts/services/format": {
"title": "concepts/services/format" "title": "Format"
}, },
"concepts/services/README": { "concepts/services/services-intro": {
"title": "concepts/services/README" "title": "Introduction"
}, },
"getting-started/build-a-sample-app": { "getting-started/sample-app": {
"title": "getting-started/build-a-sample-app" "title": "Build a sample app"
}, },
"getting-started/choose-web-library": { "getting-started/choose-web-library": {
"title": "getting-started/choose-web-library" "title": "Choosing a web library"
}, },
"getting-started/examples": { "getting-started/examples": {
"title": "getting-started/examples" "title": "Examples"
}, },
"getting-started/project-setup/README": { "getting-started/project-setup/setup": {
"title": "getting-started/project-setup/README" "title": "Introduction"
}, },
"getting-started/project-setup/using-cargo-web": { "getting-started/project-setup/cargo-web": {
"title": "getting-started/project-setup/using-cargo-web" "title": "Using cargo-web"
}, },
"getting-started/project-setup/using-wasm-bindgen": { "getting-started/project-setup/wasm-bindgen": {
"title": "getting-started/project-setup/using-wasm-bindgen" "title": "Using wasm-bindgen"
}, },
"getting-started/project-setup/using-wasm-pack": { "getting-started/project-setup/wasm-pack": {
"title": "getting-started/project-setup/using-wasm-pack" "title": "Using wasm-pack"
}, },
"getting-started/starter-templates": { "getting-started/starter-templates": {
"title": "getting-started/starter-templates" "title": "Starter templates"
}, },
"intro": { "intro": {
"title": "簡介" "title": "Introduction"
}, },
"more/css": { "more/css": {
"title": "more/css" "title": "CSS"
}, },
"more/debugging": { "more/debugging": {
"title": "more/debugging" "title": "Debugging"
}, },
"more/external-libs": { "more/external-libs": {
"title": "more/external-libs" "title": "External libraries"
}, },
"more/roadmap": { "more/roadmap": {
"title": "more/roadmap" "title": "Roadmap"
}, },
"more/testing": { "more/testing": {
"title": "more/testing" "title": "Testing apps"
},
"README": {
"title": "README"
}, },
"SUMMARY": { "SUMMARY": {
"title": "SUMMARY" "title": "SUMMARY"
@ -102,7 +105,10 @@
"Discord": "Discord" "Discord": "Discord"
}, },
"categories": { "categories": {
"Getting Started": "Getting Started" "Getting Started": "Getting Started",
"Concepts": "Concepts",
"Advanced topics": "Advanced topics",
"More": "More"
} }
}, },
"pages-strings": { "pages-strings": {

View File

@ -4,15 +4,15 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta <meta
http-equiv="refresh" http-equiv="refresh"
content="0; url=docs" content="0; url=/docs/en/intro"
/> />
<script type="text/javascript"> <script type="text/javascript">
window.location.href = 'docs'; window.location.href = '/docs/en/intro';
</script> </script>
<title>Yew Docs</title> <title>Yew Docs</title>
</head> </head>
<body> <body>
If you are not redirected automatically, follow this If you are not redirected automatically, follow this
<a href="docs">link</a>. <a href="/docs/en/intro">link</a>.
</body> </body>
</html> </html>