mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Some links (top nav, favicon, etc) don't use `BASE_URL` and are broken

Open lwasser opened this issue 1 year ago • 5 comments

If you go to our pyOpenSci metrics dashboard you can see that the top level navigation doesn't seem to register the base_url repo name which is the "folder" or path required to resolve the metrics dashboard -- pyopensci.org/peer-review-metrics. However the side bar on the right does resolve the base_url properly.

You can see the github action that we are using here if you wish to test the action or see the action logs.

Description

Proposed solution

Ideally the base_url should register properly for every drop down link and base link in the top nav in addition to the toctree.

Additional notes

we discussed this in discord with @agoose77 and @choldgraf and it was determined to be a bug. please let me know if you want me to test anything!!

lwasser avatar Aug 11 '24 20:08 lwasser

Update - i just had a look at the raw html for our online metrics - it's not capturing the base_url for other elements too such as the favicon - (i think). the favicon for our site is in the images directory - i could move it to the root dir as well but it should be peer-review-metrics/favicon.ico (i think?)

<link rel="icon" href="/favicon.ico">

lwasser avatar Aug 11 '24 20:08 lwasser

Partial fix in #1483 - the favicon was written as text not binary in the static builds. We also need to update the BASE_URL as you suggest.

rowanc1 avatar Aug 21 '24 22:08 rowanc1

Thanks, @rowanc1. I'll l switch our build to install from github to test things out in the next few days.

lwasser avatar Aug 22 '24 13:08 lwasser

It is released. I don't think it will work yet!

rowanc1 avatar Aug 22 '24 23:08 rowanc1

Thank you!! I somehow thought it was fixed. I'll keep an eye on this. I realized it's not as simple as I thought to install mystmd from GitHub.

lwasser avatar Aug 29 '24 17:08 lwasser

@lwasser this should be fixed relatively soon. Just put up a PR that we can deploy later this week.

rowanc1 avatar Oct 02 '24 19:10 rowanc1

thanks @rowanc1 let me know when you'd like me to test things out 🚀 i've been seeing the quite release iterations - lots of work happening here!! 🚀

lwasser avatar Oct 02 '24 22:10 lwasser

This will be released with the next mystmd release, likely next week. (my first fix didn't do the trick.. ☹)

rowanc1 avatar Oct 04 '24 04:10 rowanc1