Skip to content

Commit 858c762

Browse files
πŸ”₯ TinyTorch tinytorch-v0.1.1: Versioning system, tito update command, announcement bar
2 parents b8510b9 + 28195cb commit 858c762

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+7583
-431
lines changed

β€Ž.all-contributorsrcβ€Ž

Lines changed: 116 additions & 109 deletions
Large diffs are not rendered by default.

β€Ž.codespell-ignore-words.txtβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ panting
3131
occurence
3232
socio-economic
3333
rin
34+
nd

β€Ž.github/workflows/book-publish-live.ymlβ€Ž

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ on:
131131
required: false
132132
default: '60'
133133
previous_version:
134-
description: 'Previous version to increment from [auto-detect from latest git tag]'
134+
description: 'Previous version to increment from (format: book-vX.Y.Z) [auto-detect from latest git tag]'
135135
required: false
136136
default: ''
137137
testing_mode:
@@ -352,18 +352,18 @@ jobs:
352352
LATEST_VERSION="${{ github.event.inputs.previous_version }}"
353353
echo "πŸ“Œ Using provided previous version: $LATEST_VERSION"
354354
else
355-
# Get latest git tag version, default to v0.0.0 if no tags exist
356-
LATEST_VERSION=$(git tag -l "v*" | sort -V | tail -n1)
355+
# Get latest git tag version, default to book-v0.0.0 if no tags exist
356+
LATEST_VERSION=$(git tag -l "book-v*" | sort -V | tail -n1)
357357
if [ -z "$LATEST_VERSION" ]; then
358-
LATEST_VERSION="v0.0.0"
358+
LATEST_VERSION="book-v0.0.0"
359359
echo "πŸ“Š No git tags found, using default: $LATEST_VERSION"
360360
else
361361
echo "πŸ“Š Auto-detected latest git tag: $LATEST_VERSION"
362362
fi
363363
fi
364364
365-
# Remove 'v' prefix for calculation
366-
VERSION_NUM=${LATEST_VERSION#v}
365+
# Remove 'book-v' prefix for calculation
366+
VERSION_NUM=${LATEST_VERSION#book-v}
367367
368368
# Split version into components
369369
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION_NUM"
@@ -394,7 +394,7 @@ jobs:
394394
;;
395395
esac
396396
397-
NEW_VERSION="v$NEW_MAJOR.$NEW_MINOR.$NEW_PATCH"
397+
NEW_VERSION="book-v$NEW_MAJOR.$NEW_MINOR.$NEW_PATCH"
398398
echo "🎯 New version: $NEW_VERSION (${{ github.event.inputs.release_type }} release)"
399399
echo "πŸ“‹ Description: ${{ github.event.inputs.description }}"
400400
@@ -1035,6 +1035,12 @@ jobs:
10351035
echo "🧹 Removing stale root-level files..."
10361036
rm -rf contents/ assets/ site_libs/ tools/
10371037
rm -f _redirects netlify.toml search.json sitemap.xml site.webmanifest 404.html
1038+
1039+
# Remove development artifacts and symlinks that break GitHub Pages
1040+
echo "🧹 Removing development artifacts..."
1041+
rm -rf __pycache__/ .vscode/ .tito/ benchmark_results/ mlsysbook.egg-info/
1042+
rm -f .luarc.json
1043+
rm -rf .claude .github # Remove symlinks and dev-only directories
10381044
echo "βœ… Stale files removed"
10391045
10401046
# Create book directory and copy new content

0 commit comments

Comments
Β (0)