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

feat:docs add link proxy #4266

Merged
merged 3 commits into from
Nov 7, 2023
Merged

feat:docs add link proxy #4266

merged 3 commits into from
Nov 7, 2023

Conversation

zjy365
Copy link
Contributor

@zjy365 zjy365 commented Nov 7, 2023

🤖 Generated by Copilot at 622a232

Summary

🚀📊🐛

This pull request updates the documentation site of sealos, a Kubernetes cluster management tool. It adds a new environment variable BD_TOKEN for the Baidu OCPC API, which is used to upload conversion data. It also modifies the docusaurus.config.js file and some hooks and components to improve the site's functionality and performance.

Oh, we're the docs site crew and we've got work to do
We'll upload and deploy with the BD_TOKEN too
We'll tweak the config and the hooks and the scripts anew
And we'll heave away and haul away on the count of three, hooray!

Walkthrough

  • Add BD_TOKEN environment variable to three workflows for Baidu OCPC API integration (link, link, link)
  • Add .gitignore file to docs/website folder to ignore .env file (link)
  • Load environment variables from .env file using dotenv module in docusaurus.config.js (link)
  • Change customFields key from bdToken to BD_TOKEN in docusaurus.config.js (link)
  • Comment out linkproxy.js script tag in docusaurus.config.js (link)
  • Add Baidu site verification meta tag to headTags in docusaurus.config.js (link)
  • Add and remove some dependencies in package.json of documentation site (link, link, link)
  • Log customFields value and add optional chaining operator to useUploadData hook (link, link)
  • Remove commented out code from useWindow hook (link)
  • Change newType parameter from 51 to 1 in uploadConvertData function call in HomeHeader component (link)
  • Remove Baidu site verification meta tag and linkInterception.js script tag from Home component (link)
  • Add linkproxy.js file to intercept and handle links on documentation site (link)

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Nov 7, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 981
✅ Successful 312
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 668
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

Copy link

sweep-ai bot commented Nov 7, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Nov 7, 2023

📘 Preview documentation website

👀 Visit Preview

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Signed-off-by: jingyang <3161362058@qq.com>
@yangchuansheng yangchuansheng merged commit fdbccd6 into labring:main Nov 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants