Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Book
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUDE
Book
Merge requests
!407
Update 2 files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update 2 files
main
into
release
Overview
0
Commits
15
Pipelines
16
Changes
7
Merged
Kwangjin Lee
requested to merge
main
into
release
3 months ago
Overview
0
Commits
15
Pipelines
16
Changes
1
Expand
/.gitlab-ci.yml
/book/intro.md
0
0
Merge request reports
Compare
version 5
version 12
b1217152
3 months ago
version 11
f81a44a6
3 months ago
version 10
1a552274
3 months ago
version 9
1ddc76ce
3 months ago
version 8
35aab0d1
3 months ago
version 7
420affdf
3 months ago
version 6
59782752
3 months ago
version 5
b2ab56f5
3 months ago
version 4
4464525f
3 months ago
version 3
5b2e7c34
3 months ago
version 2
861c4f7a
3 months ago
version 1
e9c463fa
3 months ago
release (base)
and
version 6
latest version
f27883cb
15 commits,
3 months ago
version 12
b1217152
14 commits,
3 months ago
version 11
f81a44a6
13 commits,
3 months ago
version 10
1a552274
12 commits,
3 months ago
version 9
1ddc76ce
11 commits,
3 months ago
version 8
35aab0d1
10 commits,
3 months ago
version 7
420affdf
9 commits,
3 months ago
version 6
59782752
8 commits,
3 months ago
version 5
b2ab56f5
7 commits,
3 months ago
version 4
4464525f
6 commits,
3 months ago
version 3
5b2e7c34
5 commits,
3 months ago
version 2
861c4f7a
4 commits,
3 months ago
version 1
e9c463fa
3 commits,
3 months ago
Show latest version
1 file
+
35
−
25
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
35
−
25
Options
@@ -35,32 +35,42 @@ build-book:
fi
# Size analysis
-
echo
"
=== Size Analysis ===
"
| tee size_analysis.log
-
echo
"
Directory Sizes
:"
| tee -a size_analysis.log
-
echo === Size Analysis === | tee size_analysis.log
-
echo Directory Sizes | tee -a size_analysis.log
-
du -sh book/_build/* | tee -a size_analysis.log
-
echo -e "\nSize by File Type:" | tee -a size_analysis.log
-
echo "HTML files:" | tee -a size_analysis.log
-
find book/_build/html -name "*.html" -type f -exec du -ch {} + | grep total$ | tee -a size_analysis.log
-
echo "JavaScript files:" | tee -a size_analysis.log
-
find book/_build/html -name "*.js" -type f -exec du -ch {} + | grep total$ | tee -a size_analysis.log
-
echo "CSS files:" | tee -a size_analysis.log
-
find book/_build/html -name "*.css" -type f -exec du -ch {} + | grep total$ | tee -a size_analysis.log
-
echo "Map files:" | tee -a size_analysis.log
-
find book/_build/html -name "*.map" -type f -exec du -ch {} + | grep total$ | tee -a size_analysis.log
-
echo -e "\nLargest Files (>1MB):" | tee -a size_analysis.log
-
find book/_build -type f -size +1M -exec ls -lh {} \; | sort -k5 -hr | tee -a size_analysis.log
-
echo -e "\nFile counts by type:" | tee -a size_analysis.log
-
echo "HTML
:
$(find book/_build/html -name '*.html' | wc -l)" | tee -a size_analysis.log
-
echo "JS
:
$(find book/_build/html -name '*.js' | wc -l)" | tee -a size_analysis.log
-
echo "CSS
:
$(find book/_build/html -name '*.css' | wc -l)" | tee -a size_analysis.log
-
echo "Images
:
$(find book/_build/html/_images -type f | wc -l)" | tee -a size_analysis.log
-
echo "IPython Notebooks
:
$(find book/_build -name '*.ipynb' | wc -l)" | tee -a size_analysis.log
-
|
cd book/_build
# HTML files
echo HTML files size and count >> ../../size_analysis.log
find html -name "*.html" -type f -exec du -ch {} + 2>/dev/null | grep total$ >> ../../size_analysis.log
echo HTML count $(find html -name "*.html" | wc -l) >> ../../size_analysis.log
# JavaScript files
echo JS files size and count >> ../../size_analysis.log
find html -name "*.js" -type f -exec du -ch {} + 2>/dev/null | grep total$ >> ../../size_analysis.log
echo JS count $(find html -name "*.js" | wc -l) >> ../../size_analysis.log
# CSS files
echo CSS files size and count >> ../../size_analysis.log
find html -name "*.css" -type f -exec du -ch {} + 2>/dev/null | grep total$ >> ../../size_analysis.log
echo CSS count $(find html -name "*.css" | wc -l) >> ../../size_analysis.log
# Image files
echo Image files size and count >> ../../size_analysis.log
find html/_images -type f -exec du -ch {} + 2>/dev/null | grep total$ >> ../../size_analysis.log
echo Image count $(find html/_images -type f | wc -l) >> ../../size_analysis.log
# Notebooks
echo Notebook files size and count >> ../../size_analysis.log
find . -name "*.ipynb" -type f -exec du -ch {} + 2>/dev/null | grep total$ >> ../../size_analysis.log
echo Notebook count $(find . -name "*.ipynb" | wc -l) >> ../../size_analysis.log
# Large files
echo Largest Files over 1MB >> ../../size_analysis.log
find . -type f -size +1M -exec ls -lh {} \; | sort -k5 -hr >> ../../size_analysis.log
cd ../..
-
echo $CI_JOB_ID > build_job_id.txt
Loading