Skip to content

Commit

Permalink
make_chm: hack width of index page
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed Feb 13, 2021
1 parent 8dcd778 commit 8c1f25a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions make_chm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ cd chmhelp
find -iname '*.html' | xargs -P "${CPUS}" sed -i 's/<head>/<head><meta http-equiv="x-ua-compatible" content="ie=edge">/ig'
cd ..

# width hack
sed -i -e 's/&nbsp;&minus;&nbsp;<a href="cpp-thread-condition_variable.html">/<br><a href="cpp-thread-condition_variable.html">/' -e 's/&nbsp;&minus;&nbsp;<a href="cpp-memory-shared_ptr.html">/<br><a href="cpp-memory-shared_ptr.html">/' chmhelp/index.html

mkdir -p chm_temp
for i in cppreference.{hhc,hhk,hhp}; do
sed -i '/chmhelp\\首页.html/d' "${i}"
Expand Down

0 comments on commit 8c1f25a

Please sign in to comment.