File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 5757 - name : Type check simple example
5858 run : cd examples/simple && yarn type-check
5959
60+ doc-videos-format-check :
61+ runs-on : ubuntu-latest
62+ if : github.ref_type != 'tag'
63+ steps :
64+ - name : Checkout
65+ uses : actions/checkout@v4
66+ - name : Videos format check
67+ run : make check-documentation-videos-format
68+
6069 doc-check :
6170 runs-on : ubuntu-latest
6271 if : github.ref_type != 'tag'
Original file line number Diff line number Diff line change @@ -175,3 +175,6 @@ build-storybook: ## Build the storybook
175175
176176update-sandbox : # # Push the local version of the simple example to the sandbox repository
177177 ./scripts/update-sandbox.sh
178+
179+ check-documentation-videos-format : # # Check the documentation format
180+ ./scripts/check-documentation-videos-format.sh
Original file line number Diff line number Diff line change 1+ for file in ./docs/img/** ; do
2+ codec=$( mediainfo --Inform=" Video;%CodecID%" " $file " )
3+ if [ " $codec " = " hvc1" ]; then
4+ # Construct the output file name
5+ output_file=" ${file% .* } _avc1.${file##* .} "
6+ echo " Invalid codec for $file "
7+ echo " Convert it to avc1 with:"
8+ echo " ffmpeg -i $file -c:v libx264 -c:a copy ${output_file} "
9+ echo " rm $file "
10+ echo " mv $output_file $file "
11+ exit 1;
12+ fi
13+ done
You can’t perform that action at this time.
0 commit comments