Skip to content

Commit 951fa07

Browse files
committed
docs: reference preview docs page and @next package
1 parent 4d6f354 commit 951fa07

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

docs-site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite dev",
88
"prebuild": "pnpm run --dir ../packages/svelte-fluent package",
99
"build": "vite build",
10+
"build:preview": "SVELTEKIT_BASE='' vite build",
1011
"preview": "vite preview",
1112
"prepare": "svelte-kit sync",
1213
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",

docs-site/src/routes/docs/getting-started/+page.svelte.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the [Fluent](https://projectfluent.org/) localization system by Mozilla.
2121
Install `svelte-fluent` and its peer dependency `jsdom` with your package manager of choice.
2222

2323
```sh
24-
npm install --save-dev @nubolab-ffwd/svelte-fluent
24+
npm install --save-dev @nubolab-ffwd/svelte-fluent@next
2525
npm install --save jsdom
2626
```
2727

docs-site/svelte.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { mdsxConfig } from './mdsx.config.js';
55

66
const isProdBuild = process.env.NODE_ENV === 'production';
77

8-
const base = isProdBuild ? '/svelte-fluent' : '';
8+
const base = process.env.SVELTEKIT_BASE ?? (isProdBuild ? '/svelte-fluent' : '');
99

1010
/** @type {import('@sveltejs/kit').Config} */
1111
const config = {

packages/svelte-fluent/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
# Svelte Fluent [![Documentation](https://img.shields.io/badge/-Documentation-blue)](https://nubolab-ffwd.github.io/svelte-fluent/) [![svelte-fluent on npm](https://img.shields.io/npm/v/@nubolab-ffwd/svelte-fluent)](https://www.npmjs.com/package/@nubolab-ffwd/svelte-fluent) ![Tests](https://github.com/nubolab-ffwd/svelte-fluent/workflows/Tests/badge.svg) [![Svelte v5](https://img.shields.io/badge/svelte-v5-blueviolet?logo=svelte)](https://svelte.dev)
22

3+
> [!IMPORTANT]
4+
> This branch contains a **preview version** of `svelte-fluent` v2.
5+
> If you're looking for the stable version, switch to the `main` branch.
6+
>
7+
> Check the [Version 2](https://svelte-fluent-v2-preview.netlify.app/docs/version-2/)
8+
> page of the preview documentation site to get an overview of the changes.
9+
310
`svelte-fluent` is a powerful localization library for
411
[Svelte](https://svelte.dev/) and [SvelteKit](https://kit.svelte.dev/)
512
that enables you to integrate translations using Mozilla's natural-sounding Fluent syntax easily.
613

714
## Installation
815

916
```
10-
npm install --save-dev @nubolab-ffwd/svelte-fluent
17+
npm install --save-dev @nubolab-ffwd/svelte-fluent@next
1118
npm install --save jsdom
1219
```
1320

1421
## Documentation
1522

16-
Documentation can be found at https://nubolab-ffwd.github.io/svelte-fluent/
23+
Documentation can be found at https://svelte-fluent-v2-preview.netlify.app/
1724

1825
## Example
1926

0 commit comments

Comments
 (0)