-
Notifications
You must be signed in to change notification settings - Fork 6
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
try to fix broken logo and favicon #126
Conversation
@samueleresca @mdedetrich I built this locally and then used it in pekko-grpc paradox build (also locally) - but none of the assets.hostname dependent paths were mapped - all the links are relative. This includes the existing paths that already support assets.hostname. edit - I tested with pekko-site repo and these changes seem to work there |
I would expect the changes in this PR would fix the problem. The I can take a look at this tomorrow |
The and other places in this file |
Ill wait till tomorrow to see if there is an update on this |
@@ -46,7 +46,7 @@ $! | |||
$ elseif (page.properties.("material.author")) $ | |||
<meta name="author" content="$page.properties.("site.author")$"> | |||
$ endif $ | |||
<link rel="shortcut icon" href="$page.base$$page.properties.("material.favicon")$"> | |||
<link rel="shortcut icon" href="$page.properties.("assets.hostname")$$page.base$$page.properties.("material.favicon")$"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt that this is related to #86. I'm not sure if page.properties ("assets.hostname") exists, but using it with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The icon link of all modules is broken, but the pekko homepage is not, which also proves this. $page.base$
is the path of a specific project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link is to https://pekko.apache.org/docs/pekko-http/current/assets/images/pekko_logo.png
Should be https://pekko.apache.org/assets/images/pekko_logo.png
The previous comments should be no problem. $page.base$
is not a problem. At present, it is always the root directory of the project, that is.
The documents generated by all these modules (http, connector, pekko) are "assets/xxxx", even if the string template adds assets.home
, but due to pekko, conn Ector These modules do not have the default value of assets.home
, so they still do not point the path to CDN.
So I think the PR needs to set a default value for assets.home, or explicitly add the assets.home configuration value for each project.
seems to be included in #127 |
Added an issue tracking the |
see apache/pekko-site#95
needs more testing before merging