post-process.sh 682 B

12345678910111213141516171819
  1. # Only run this script from the Makefile
  2. shopt -s globstar
  3. cd output
  4. # Classes backlink to the ClassList in their breadcrumbs. We use the ClassIndex
  5. # instead.
  6. rm -rf flameshot/annotated
  7. ln -sf classes flameshot/annotated
  8. # Hide 'Edit this page button' from the auto-generated docs pages
  9. # It would be better to change the button to link to the file on github, but
  10. # it seems like too much work right now.
  11. sed -i 's|title="Edit this page"|& style="display: none !important"|' flameshot/*/*.html
  12. # MkDoxy adds Qt classes into the class hierarchy. We don't want that.
  13. sed -i 's|<li><strong>class</strong> <strong>Q[^<]*</strong> </li>||' flameshot/*/*.html
  14. # vim: filetype=bash