Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#20157 Fix `hub/pro.md` docs page indentation issues

Merged
Ghost merged 3 commits into Ultralytics:main from ultralytics:fix-indentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  1. # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
  2. # Continuous Integration (CI) GitHub Actions tests broken link checker using https://github.com/lycheeverse/lychee
  3. # Ignores the following status codes to reduce false positives:
  4. # - 401(Vimeo, 'unauthorized')
  5. # - 403(OpenVINO, 'forbidden')
  6. # - 429(Instagram, 'too many requests')
  7. # - 500(Zenodo, 'cached')
  8. # - 502(Zenodo, 'bad gateway')
  9. # - 999(LinkedIn, 'unknown status code')
  10. name: Check Broken links
  11. on:
  12. workflow_dispatch:
  13. schedule:
  14. - cron: "0 0 * * *" # runs at 00:00 UTC every day
  15. jobs:
  16. Links:
  17. if: github.repository == 'ultralytics/ultralytics'
  18. runs-on: ubuntu-latest
  19. steps:
  20. - uses: actions/checkout@v4
  21. - name: Download and install lychee
  22. run: |
  23. LYCHEE_URL=$(curl -s https://api.github.com/repos/lycheeverse/lychee/releases/latest | grep "browser_download_url" | grep "x86_64-unknown-linux-gnu.tar.gz" | cut -d '"' -f 4)
  24. curl -L $LYCHEE_URL | tar xz -C /usr/local/bin
  25. - name: Test Markdown and HTML links with retry
  26. uses: ultralytics/actions/retry@main
  27. with:
  28. timeout_minutes: 60
  29. retry_delay_seconds: 900
  30. retries: 2
  31. run: |
  32. lychee \
  33. --scheme https \
  34. --timeout 60 \
  35. --insecure \
  36. --accept 401,403,429,500,502,999 \
  37. --exclude-all-private \
  38. --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' \
  39. --exclude-path docs/zh \
  40. --exclude-path docs/es \
  41. --exclude-path docs/ru \
  42. --exclude-path docs/pt \
  43. --exclude-path docs/fr \
  44. --exclude-path docs/de \
  45. --exclude-path docs/ja \
  46. --exclude-path docs/ko \
  47. --exclude-path docs/hi \
  48. --exclude-path docs/ar \
  49. --github-token ${{ secrets.GITHUB_TOKEN }} \
  50. --header "User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.183 Safari/537.36" \
  51. './**/*.md' \
  52. './**/*.html' | tee -a $GITHUB_STEP_SUMMARY
  53. - name: Test Markdown, HTML, YAML, Python and Notebook links with retry
  54. if: github.event_name == 'workflow_dispatch'
  55. uses: ultralytics/actions/retry@main
  56. with:
  57. timeout_minutes: 60
  58. retry_delay_seconds: 900
  59. retries: 2
  60. run: |
  61. lychee \
  62. --scheme https \
  63. --timeout 60 \
  64. --insecure \
  65. --accept 401,403,429,500,502,999 \
  66. --exclude-all-private \
  67. --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' \
  68. --exclude-path '**/ci.yml' \
  69. --exclude-path docs/zh \
  70. --exclude-path docs/es \
  71. --exclude-path docs/ru \
  72. --exclude-path docs/pt \
  73. --exclude-path docs/fr \
  74. --exclude-path docs/de \
  75. --exclude-path docs/ja \
  76. --exclude-path docs/ko \
  77. --exclude-path docs/hi \
  78. --exclude-path docs/ar \
  79. --github-token ${{ secrets.GITHUB_TOKEN }} \
  80. --header "User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.183 Safari/537.36" \
  81. './**/*.md' \
  82. './**/*.html' \
  83. './**/*.yml' \
  84. './**/*.yaml' \
  85. './**/*.py' \
  86. './**/*.ipynb' | tee -a $GITHUB_STEP_SUMMARY
Discard
Tip!

Press p or to see the previous file or, n or to see the next file