merge_docs.sh 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. # Copyright (c) OpenMMLab. All rights reserved.
  3. sed -i '$a\\n' ../../demo/docs/zh_cn/*_demo.md
  4. cat ../../demo/docs/zh_cn/*_demo.md | sed "s/^## 2D\(.*\)Demo/##\1Estimation/" | sed "s/md###t/html#t/g" | sed '1i\# Demos\n' | sed 's=](/docs/en/=](/=g' | sed 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' >demos.md
  5. # remove /docs/ for link used in doc site
  6. sed -i 's=](/docs/zh_cn/=](=g' overview.md
  7. sed -i 's=](/docs/zh_cn/=](=g' installation.md
  8. sed -i 's=](/docs/zh_cn/=](=g' quick_run.md
  9. sed -i 's=](/docs/zh_cn/=](=g' migration.md
  10. sed -i 's=](/docs/zh_cn/=](=g' ./model_zoo/*.md
  11. sed -i 's=](/docs/zh_cn/=](=g' ./model_zoo_papers/*.md
  12. sed -i 's=](/docs/zh_cn/=](=g' ./user_guides/*.md
  13. sed -i 's=](/docs/zh_cn/=](=g' ./advanced_guides/*.md
  14. sed -i 's=](/docs/zh_cn/=](=g' ./dataset_zoo/*.md
  15. sed -i 's=](/docs/zh_cn/=](=g' ./notes/*.md
  16. sed -i 's=](/docs/zh_cn/=](=g' ./projects/*.md
  17. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' overview.md
  18. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' installation.md
  19. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' quick_run.md
  20. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' migration.md
  21. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./advanced_guides/*.md
  22. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./model_zoo/*.md
  23. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./model_zoo_papers/*.md
  24. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./user_guides/*.md
  25. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./dataset_zoo/*.md
  26. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./notes/*.md
  27. sed -i 's=](/=](https://github.com/open-mmlab/mmpose/tree/dev-1.x/=g' ./projects/*.md