Skip to content

Commit ec4ec8e

Browse files
committed
Fix configs for site base and site prefix, rerun conversion script accordingly
1 parent 8169669 commit ec4ec8e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ var latest_ver_display_str = '1_5';
1111

1212
// https://astro.build/config
1313
export default defineConfig({
14-
site: 'https://unicode-org.github.io',
15-
base: 'icu4x-docs',
14+
site: 'https://icu4x.unicode.org',
15+
base: '',
1616
integrations: [
1717
starlight({
1818
title: 'ICU4X',

src/content/docs/1_2/tutorials/data_management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you're happy shipping your app with the recommended set of locales included i
88

99
# 1. Prerequisites
1010

11-
This tutorial assumes you have finished the [introductory tutorial](/icu4x-docs/1_2/tutorials/introduction) and continues where that tutorial left off. In particular, you should still have the latest version of code for `myapp`.
11+
This tutorial assumes you have finished the [introductory tutorial](/1_2/tutorials/introduction) and continues where that tutorial left off. In particular, you should still have the latest version of code for `myapp`.
1212

1313
# 2. Generating data
1414

src/content/docs/1_5/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ The way `ICU4X` handles data is one of its novelties, aimed at making the data m
155155

156156
`ICU4X` by default contains data for a a wide range of CLDR locales[^1], meaning that for most languages, the constructors can be considered infallible and you can `expect` or `unwrap` them, as we did above.
157157

158-
However, shipping the library with all locales will have a size impact on your binary. It also requires you to update your binary whenever CLDR data changes, which happens twice a year. To learn how to solve these problems, see our [data management](/icu4x-docs/1_5/tutorials/data-management) tutorial.
158+
However, shipping the library with all locales will have a size impact on your binary. It also requires you to update your binary whenever CLDR data changes, which happens twice a year. To learn how to solve these problems, see our [data management](/1_5/tutorials/data-management) tutorial.
159159

160160
[^1]: All locales with coverage level `basic`, `moderate`, or `modern` in [`CLDR`](https://github.com/unicode-org/cldr-json/blob/main/cldr-json/cldr-core/coverageLevels.json)
161161

@@ -165,7 +165,7 @@ This concludes this introduction tutorial. With the help of `DateTimeFormat`, `L
165165

166166
Internationalization is a broad domain and there are many more components in `ICU4X`.
167167

168-
Next, learn how to [generate optimized data for your binary](/icu4x-docs/1_5/tutorials/data-management), [configure your Cargo.toml file](/icu4x-docs/1_5/tutorials/cargo), or continue exploring by reading [the docs](https://docs.rs/icu/1.5.0/).
168+
Next, learn how to [generate optimized data for your binary](/1_5/tutorials/data-management), [configure your Cargo.toml file](/1_5/tutorials/cargo), or continue exploring by reading [the docs](https://docs.rs/icu/1.5.0/).
169169

170170

171171

src/content/docs/1_5/tutorials/cargo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ icu = { version = "1.5", features = ["serde"] }
5555
icu_provider_blob = "1.5"
5656
```
5757

58-
To learn about building ICU4X data, including whether to check in the data blob file to your repository, see [data-management.md](/icu4x-docs/1_5/tutorials/data-management).
58+
To learn about building ICU4X data, including whether to check in the data blob file to your repository, see [data-management.md](/1_5/tutorials/data-management).
5959

6060
[« Fully Working Example »](https://github.com/unicode-org/icu4x/tree/release%2F1.5/tutorials/./crates/buffer)
6161

src/content/docs/1_5/tutorials/data-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you're happy shipping your app with the recommended set of locales included i
1010

1111
## 1. Prerequisites
1212

13-
This tutorial assumes you have finished the [introductory tutorial](/icu4x-docs/1_5/quickstart) and continues where that tutorial left off. In particular, you should still have the latest version of code for `myapp`.
13+
This tutorial assumes you have finished the [introductory tutorial](/1_5/quickstart) and continues where that tutorial left off. In particular, you should still have the latest version of code for `myapp`.
1414

1515
## 2. Generating data
1616

tools/github-to-astro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function printHelp() {
196196
console.log("Usage:");
197197
console.log("\tnpm run icu4x-convert -- --inDir=<input-dir> --outDir=<output-dir> --icu4xRef=<ICU4X-git-ref> --webDirName=<version-based-dir-name> --sitePrefix=<site-prefix-str-else-emptystr> --astroVersion=<semver>");
198198
console.log();
199-
console.log("Example: npm run icu4x-convert -- --inDir=/tmp/1.5-tutorials/ --outDir=/tmp/1.5-output/ --icu4xVersion=1.5.0 --icu4xRef=release/1.5 --webDirName=1_5 --sitePrefix=/icu4x-docs --astroVersion=4.16.18")
199+
console.log("Example: npm run icu4x-convert -- --inDir=/tmp/1.5-tutorials/ --outDir=/tmp/1.5-output/ --icu4xVersion=1.5.0 --icu4xRef=release/1.5 --webDirName=1_5 --sitePrefix= --astroVersion=4.16.18")
200200
}
201201

202202
/**

0 commit comments

Comments
 (0)