diff --git a/build-archived-version.sh b/build-archived-version.sh index 1c800833..ef2a629a 100755 --- a/build-archived-version.sh +++ b/build-archived-version.sh @@ -15,11 +15,11 @@ VERSION="${1:?Usage: $0 [--ogx-dir ]}" REPO_DIR="$(cd "$(dirname "$0")" && pwd)" # Parse optional arguments -LLAMA_STACK_DIR="" +OGX_DIR="" shift while [[ $# -gt 0 ]]; do case $1 in - --ogx-dir) LLAMA_STACK_DIR="$2"; shift 2 ;; + --ogx-dir) OGX_DIR="$2"; shift 2 ;; *) echo "Unknown option: $1"; exit 1 ;; esac done @@ -32,9 +32,9 @@ trap 'rm -rf "$TEMP_DIR"' EXIT echo "=== Building archived version $VERSION ===" # Step 1: Get ogx at the specified version -if [ -n "$LLAMA_STACK_DIR" ] && [ -d "$LLAMA_STACK_DIR" ]; then +if [ -n "$OGX_DIR" ] && [ -d "$OGX_DIR" ]; then echo "--- Cloning from local repo ---" - git clone --local --no-checkout "$LLAMA_STACK_DIR" "$TEMP_DIR/ogx" + git clone --local --no-checkout "$OGX_DIR" "$TEMP_DIR/ogx" cd "$TEMP_DIR/ogx" git checkout "$VERSION" 2>/dev/null || git checkout "tags/$VERSION" else diff --git a/build-latest.sh b/build-latest.sh index b8a3a32d..fc8644c1 100755 --- a/build-latest.sh +++ b/build-latest.sh @@ -6,13 +6,13 @@ set -euo pipefail # Usage: ./build-latest.sh [--ogx-dir ] [--branch ] [--output-dir ] REPO_DIR="$(cd "$(dirname "$0")" && pwd)" -LLAMA_STACK_DIR="" +OGX_DIR="" BRANCH="main" OUTPUT_DIR="$REPO_DIR/docs" while [[ $# -gt 0 ]]; do case $1 in - --ogx-dir) LLAMA_STACK_DIR="$2"; shift 2 ;; + --ogx-dir) OGX_DIR="$2"; shift 2 ;; --branch) BRANCH="$2"; shift 2 ;; --output-dir) OUTPUT_DIR="$2"; shift 2 ;; *) echo "Unknown option: $1"; exit 1 ;; @@ -26,9 +26,9 @@ trap 'rm -rf "$TEMP_DIR"' EXIT echo "=== Building latest docs (branch: $BRANCH) ===" # Step 1: Get ogx source -if [ -n "$LLAMA_STACK_DIR" ] && [ -d "$LLAMA_STACK_DIR" ]; then +if [ -n "$OGX_DIR" ] && [ -d "$OGX_DIR" ]; then echo "--- Cloning from local repo (branch: $BRANCH) ---" - git clone --local --no-checkout "$LLAMA_STACK_DIR" "$TEMP_DIR/ogx" + git clone --local --no-checkout "$OGX_DIR" "$TEMP_DIR/ogx" cd "$TEMP_DIR/ogx" git checkout "$BRANCH" else diff --git a/inline-raw-loader.py b/inline-raw-loader.py index 1c728e99..46da1b21 100755 --- a/inline-raw-loader.py +++ b/inline-raw-loader.py @@ -133,10 +133,6 @@ def inline_raw_loader(versioned_dir, repo_root): imported_content = imported_content.replace( "](README.md)", "](https://github.com/ogx-ai/ogx#community)" ) - imported_content = imported_content.replace( - "](llama_stack/", - "](https://github.com/ogx-ai/ogx/blob/main/llama_stack/", - ) # Escape MDX-incompatible syntax in imported content imported_content = escape_for_mdx(imported_content)