Removed Google Analytics from the Druid Website#516
Removed Google Analytics from the Druid Website#516techdocsmith merged 7 commits intoapache:masterfrom
Conversation
|
Thanks @akulabs8. We'll take a look. Will you work on removing the two other external scripts too? |
|
Yeaaah sure, let me know how to go about it @317brian |
|
@317brian What I get is you might be referring to Font Awesome but how to change them right away? we might need to replace it with something else.. so whats that something else? |
|
I think you'd make a local copy of those locally and update the references. So druid-website-src/docusaurus.config.js Line 20 in 5b1f08e And https://github.com/apache/druid-website-src/tree/master/src/css for Font Awesome I haven't tried it but it should work And then you can test it by making sure the site still renders (the icons on the homepage etc) and the copy button for the code blocks still work |
|
Hey @317brian , I have made changes in docusaurus.config.js and added the 2 scripts in diff files... please take a look.. Now my question is these scripts are being used at multiple places apart from docusaurus. So we got to worry about those as well? |
|
Thanks for the updates. I'll take a look by EOD Wednesday I think only the Docusaurus implementation called external scripts. |
There was a problem hiding this comment.
The clipboard and fontawesome changes need to be find/replaced in the built html files too. Before you do that though, he clipboard copy seems to be working, but it looks like there's a a few issues with fontawesome
- typo in the fontawesome fix:
href="./src/css/fontawesone.css">
- the icons also aren't rendering. It looks like we need to download the files too: https://dev.to/chidelemmanuel/a-guide-to-using-font-awesome-offline-2ndd#:~:text=The%20first%20step%20to%20using,selecting%20the%20%22Download%22%20option.
|
Hey @317brian But , I am kinda blocked on the fonts thing. The link you shared has broken image links , I tried to go through other docs but I was not able to pull it off.. Request URL: Request URL: But nothing seem to work.. |
|
The download is available on this page: https://fontawesome.com/v5/download And the instructions for how to use it: |
|
Hey @317brian I have handled the case of webfonts.. I was adding the wrong directory path for the static files. we are not supposed to add "./static" in the file path in docusaurus file.. I have fixed it.. Please take a look and let me know |
|
Thanks! I'll take a look |
There was a problem hiding this comment.
LGTM, I built a new prod copy and the copy button works and the icons show up on the home page. Also verified. thatthe copy button works in the already built versions in published versions.
The easiest way to resolve the conflicts for the files in is to take the ones in master since I'll be replacing those when I rebuild to republish the site anyway.
|
@317brian I didnt get it, so shall I take care of thee merge conflicts or you will be taking care of it? |
|
You need to resolve the conflicts. To resolve the conflicts, you can use either the files from your branch or When I republish the website after your fixes get merged, the files that are in conflict right now are going to get overwritten anyway so whether you use your files or the ones from master to resolve the conflict isn't a big deal |
|
@317brian Hey, done with resolving conflicts |
|
Thanks @akulabs8! @techdocsmith is going to review also, and we'll get it merged. |

Changes:
Work Item: LINK