You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/03/20 10:48:51 UTC

[GitHub] [apisix-website] juzhiyuan opened a new issue #266: support jsDelivr to speedup static files

juzhiyuan opened a new issue #266:
URL: https://github.com/apache/apisix-website/issues/266


   Hi, after https://github.com/apache/apisix-website/pull/260 is merged, we have all logos inside our repository, and now when users visit apisix.apache.org , all logos will serve from GitHub, we need to speedup those files.
   
   **Solution**
   1. visit https://www.jsdelivr.com/?docs=gh to know what jsDelivr does;
   2. update https://github.com/apache/apisix-website/blob/master/website/src/pages/index.js#L123 `src` prop with jsDelivr . All files are under https://github.com/apache/apisix-website/tree/master/website/static/img/showcase this folder.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan edited a comment on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
juzhiyuan edited a comment on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804789175


   sure, and you could use docusarus.config.js to do that? would better if possible


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] LiteSun closed issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
LiteSun closed issue #266:
URL: https://github.com/apache/apisix-website/issues/266


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804692637


   that's right


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804789175


   sure, and you could use docusarus.config.js to do that? would better if possiable


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] stu01509 commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
stu01509 commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804718149


   Sure, I will do it later


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] stu01509 commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
stu01509 commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804719439


   Also, Could I define the global variables to store the `https://cdn.jsdelivr.net/gh/apache/apisix-website@master/`, What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804141053


   not hard AFAIK, but it will speedup the website 😄


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] stu01509 commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
stu01509 commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804675488


   I think we need to change the static image to https://cdn.jsdelivr.net/gh/apache/apisix-website@master/website/static/img/showcase/163.png right?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804692016


   ya


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] stu01509 commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
stu01509 commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804080966


   I would like to try this :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on issue #266: support jsDelivr to speedup static files

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #266:
URL: https://github.com/apache/apisix-website/issues/266#issuecomment-804693061


   How about doing something like `src={"https://xxx/" + "163.png"}`, no need to update `json` file


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org