Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update docs sync source #2058

Merged
merged 5 commits into from
Mar 27, 2024
Merged

Conversation

Wxh16144
Copy link
Member

@Wxh16144 Wxh16144 commented Mar 26, 2024

🤔 这个变动的性质是?/ What is the nature of this change?

  • 新特性提交 / New feature
  • bug 修复 / Fix bug
  • 样式优化 / Style optimization
  • 代码风格优化 / Code style optimization
  • 性能优化 / Performance optimization
  • 构建优化 / Build optimization
  • 网站、文档、Demo 改进 / Website, documentation, demo improvements
  • 重构代码或样式 / Refactor code or style
  • 测试相关 / Test related
  • 其他 / Other

🔗 相关 Issue / Related Issue

💡 需求背景和解决方案 / Background or solution

我本地还是遇到和去年反馈的问题一样,本地同步 umijs 文档经常失败
image

使用 GitHub raw

同步遇到 443 失败时, 可以尝试 SYNC_USE_GITHUB=1 npm run docs:sync 使用 GitHub 作为源
image

本地启动服务

本地 clone 了 umijs 仓库,使用 http-server启动服务,SYNC_CUSTOM_UPSTREAM=http://127.0.0.1:8080/ npm run docs:sync

image

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English Improve document synchronization logic and support source switching
🇨🇳 Chinese 改进文档同步逻辑,支持切换源

Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 7:42pm

@Wxh16144
Copy link
Member Author

春节把电脑拿去扩容了,准备了开发环境,又遇到同步 443 问题,来个 pr 改进一下,太痛苦啦

scripts/sync-from-umi.js Outdated Show resolved Hide resolved
Copy link
Member

@PeachScript PeachScript left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@PeachScript PeachScript merged commit 59c0f02 into umijs:master Mar 27, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants