Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
docs: match the canonical CLI build invocation, trim README redundancy
thinhlpg843c5cac1bca
diff --git a/build-tui.sh b/build-tui.shindex e156e5c4a..f55cac702 100755--- a/build-tui.sh+++ b/build-tui.sh@@ -33,7 +33,7 @@ build() {fiecho "==> Building CLI binary (${profile})..."- (cd "$CLI_DIR" && cargo build $flag --features cli)+ (cd "$CLI_DIR" && cargo build $flag --no-default-features --features cli)# jan-cli's .cargo/config.toml redirects output into the app's target dir.local artifact="$APP_DIR/target/$target_dir/jan"diff --git a/docs/README.md b/docs/README.mdindex 92bfc5683..14d50f88c 100644--- a/docs/README.md+++ b/docs/README.md@@ -14,7 +14,7 @@ We try to **keep routes consistent** to maintain SEO.- **`/changelog/`**: A list of changes made to the Jan application with each release.-- **`/blog/`**: Blog posts.+- **`/blog/`**: The blog index; individual posts live under `/post/`.- **`/download/`**: Download page.@@ -22,6 +22,8 @@ We try to **keep routes consistent** to maintain SEO.- **`/privacy/`**: Privacy policy.+- **`/tokamak/`**: Tokamak landing page.+## How to ContributeRefer to the [Contributing Guide](https://github.com/janhq/jan/blob/main/CONTRIBUTING.md) for more comprehensive information on how to contribute to the Jan project.@@ -51,9 +53,7 @@ This command generates static content into the `out` directory (`next.config.mjs### Deployment-Documentation is published to [https://jan.ai/](https://jan.ai/) by the `jan-docs.yml` GitHub Actions workflow when changes land on `main`. That workflow builds the site (`yarn build`, output `out`) and publishes it to Cloudflare Pages. Pull requests get a preview URL automatically.--There is no `yarn deploy` script; deployment is handled entirely by CI.+There is no `yarn deploy` script; the `jan-docs.yml` workflow builds the site and publishes `out` to Cloudflare Pages.### Preview URL, Pre-release and Publishing Documentationdiff --git a/scripts/install-jan-agent.ps1 b/scripts/install-jan-agent.ps1index 42a94aa91..d9debca0b 100644--- a/scripts/install-jan-agent.ps1+++ b/scripts/install-jan-agent.ps1@@ -113,9 +113,9 @@ function Install-FromSource {Write-Host "building the CLI from $RepoRoot (release)"Push-Location (Join-Path $RepoRoot 'src-tauri\jan-cli')try {- # The CLI is a standalone crate (no default features); its `cli` feature- # pulls in `app_lib/cli`, which is compiled with default features off.- cargo build --features cli --release+ # The CLI and the desktop app are mutually exclusive feature configs, so+ # the default features must stay off.+ cargo build --no-default-features --features cli --releaseif ($LASTEXITCODE -ne 0) { throw "cargo build failed with exit code $LASTEXITCODE" }} finally {Pop-Locationdiff --git a/scripts/install-jan-agent.sh b/scripts/install-jan-agent.shindex ea80db00b..3b982050d 100755--- a/scripts/install-jan-agent.sh+++ b/scripts/install-jan-agent.sh@@ -139,9 +139,9 @@ install_binary() {build_from_source() {command -v cargo >/dev/null 2>&1 || die "cargo not found; install Rust first"echo "building the CLI from $REPO_ROOT (release)"- # The CLI is a standalone crate (no default features); its `cli` feature- # pulls in `app_lib/cli`, which is compiled with default features off.- (cd "$REPO_ROOT/src-tauri/jan-cli" && cargo build --features cli --release)+ # The CLI and the desktop app are mutually exclusive feature configs, so the+ # default features must stay off.+ (cd "$REPO_ROOT/src-tauri/jan-cli" && cargo build --no-default-features --features cli --release)local built="$REPO_ROOT/src-tauri/target/release/$BINARY_NAME"[ -f "$built" ] || die "expected a binary at $built"install_binary "$built"