Skip to content

Commit 25a8075

Browse files
committed
Move code into toolbox/
1 parent 150d9c1 commit 25a8075

File tree

66 files changed

+19
-19
lines changed

Some content is hidden

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

66 files changed

+19
-19
lines changed

.githooks/pre-commit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ pwd
1414
# Note that this script will not remove media files. If an mlx has
1515
# fewer plots at some point in the future, there will be file system
1616
# cruft. Which doesn't hurt the md display in GitHub or elswehere.
17-
changedMlxFiles=`git diff --cached --name-only --diff-filter=d '*.mlx'`
17+
changedMlxFiles=`git diff --cached --name-only --diff-filter=d 'toolbox/examples/*.mlx'`
1818

1919
if [ -n "$changedMlxFiles" ]; then
2020
# Keep the line break here, we replace end-of-line with "' '" to get the quotes right
2121
matlab -batch "for file = {'${changedMlxFiles//
22-
/' '}'}, export(file{1},replace(erase(file{1},'mlx-scripts'),'.mlx','.md')); end"
23-
tmp=${changedMlxFiles//mlx-scripts\//}
22+
/' '}'}, export(file{1},replace(erase(file{1},'toolbox/'),'.mlx','.md')); end"
23+
tmp=${changedMlxFiles//toolbox\//}
2424
mdFiles=${tmp//.mlx/.md}
2525
for file in $mdFiles; do
2626
if [ -d ${file%.md}_media ]; then
2727
git add ${file%.md}_media/
2828
fi
2929
perl -pi -e "\$cnt++ if /^#/; " \
30-
-e "\$_ .= \"\nTo run the code shown on this page, open the MLX file in MATLAB®: [mlx-scripts/$(basename $file .md).mlx](mlx-scripts/$(basename $file .md).mlx) \n\" if /^#/ && \$cnt==1;" \
30+
-e "\$_ .= \"\nTo run the code shown on this page, open the MLX file in MATLAB®: [$(basename $file .md).mlx](/toolbox/examples/$(basename $file .md).mlx) \n\" if /^#/ && \$cnt==1;" \
3131
$file
3232
done
3333
git add $mdFiles

examples/AnalyzeScientificPapersUsingFunctionCalls.md

Lines changed: 1 addition & 1 deletion

examples/AnalyzeSentimentinTextUsingChatGPTinJSONMode.md

Lines changed: 1 addition & 1 deletion

examples/AnalyzeTextDataUsingParallelFunctionCallwithChatGPT.md

Lines changed: 1 addition & 1 deletion

examples/CreateSimpleChatBot.md

Lines changed: 1 addition & 1 deletion

examples/CreateSimpleOllamaChatBot.md

Lines changed: 1 addition & 1 deletion

examples/DescribeImagesUsingChatGPT.md

Lines changed: 1 addition & 1 deletion

examples/InformationRetrievalUsingOpenAIDocumentEmbedding.md

Lines changed: 1 addition & 1 deletion

examples/ProcessGeneratedTextInRealTimeByUsingOllamaInStreamingMode.md

Lines changed: 1 addition & 1 deletion

examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)