Skip to content

Commit

Permalink
Update before_commit.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tk42 authored Jul 22, 2023
1 parent 5ed86cb commit 5f462a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions before_commit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
export LANG=C
find . -type f -name "*.js" -print0 | xargs -0 sed -i '' 's@,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{attrs:{href:t.href,target:"_blank"}},\[n("img",{attrs:{src:"https://storage.googleapis.com/studio-preview/assets/banner.png",alt:"banner",height:"18"}})\])})@@g'

mv ./docs/*.html ./docs/index.html
# replace "z-index: 2000;' with "z-index: -2000;' in index.html
sed -i '' 's@z-index: 2000;@z-index: -2000;@g' ./index.html
sed -i '' 's@bottom: 20px;@bottom: -20px;@g' ./index.html
sed -i '' 's@left: 20px;@left: -20px;@g' ./index.html

0 comments on commit 5f462a3

Please sign in to comment.