-
Notifications
You must be signed in to change notification settings - Fork 813
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
Upgrade Hugo #3369
Upgrade Hugo #3369
Conversation
Build Failed 😱 Build Id: 3cb31877-3bc3-4e61-a24e-f74cdc1af549 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
I wonder why that is? Those files should (in theory) be coming from the docsy theme 🤔 |
Targets with no Issue: Issue: |
When you run |
both css/prism.css and js/prism.css have 200 OK https://screenshot.googleplex.com/7JwhtWmTW2WFR6B Am I answering your question? |
You are! If you look at the source code the page, is there more than one reference to a prism.js ? |
I hope that you are referring to the HTML source code that is present in the Elements tab of the web page. https://screenshot.googleplex.com/6oKRPcvTgpYunsN Console tab says unable to load a source map file for the "asciinema-player.js" file |
Yep! And clicking through to /js/prism.js - that all just works? 🤔 don't know what's up - that's odd it's failing on test. |
yes, the prism.js code is there. |
The only weird idea I have is that Interesting test: On the old version of the website, is the html source for the prism files the same? |
Yes, I have compared |
Not the files themselves, but the path to the files in the html source. If I look at: <link rel="stylesheet" href="[/site/css/prism.css](https://agones.dev/site/css/prism.css)"/> So it looks like it's the same. For the test though we do generate to a local directory as a static copy of the website, so might be worth doing a compare and contrast of what is statically generated. |
words are disappearing😅. Pasted the differences in the buganizer ticket |
I've tried including different path configurations like 'css' or 'site,' or omitting these two, and I've used 'relURL' or 'absURL' for the |
Can you push one of the options to this draft PR, so I can have a look? |
I included |
Build Failed 😱 Build Id: 6af478a8-0187-43d3-8919-d8f55adaae33 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
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.
This doesn't solve all the issues (looks like there are a couple of other broken links with the version upgrade), but this solves the prism issues.
Approach taken from https://github.com/google/docsy/blob/5295589fd575084a17774a0e93a12f5708e9b7c4/layouts/partials/head.html#L41 (latest Docsy theme).
@@ -34,7 +33,7 @@ | |||
{{end}} | |||
{{ if .Site.Params.prism_syntax_highlighting }} | |||
<!-- stylesheet for Prism --> | |||
<link rel="stylesheet" href="{{ "/css/prism.css" | relURL }}"/> | |||
<link rel="stylesheet" href="{{ "/site/prism.css" | absURL }}"/> |
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.
<link rel="stylesheet" href="{{ "/site/prism.css" | absURL }}"/> | |
<link rel="stylesheet" href="{{ "css/prism.css" | relURL }}"/> |
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.
Updated it. hugo-test
failed with two errors. Details: https://gist.github.com/Kalaiselvi84/7f12221fa15b8e8707587039fcba59ec
site/layouts/partials/head.html
Outdated
{{- template "_internal/schema.html" . -}} | ||
{{- template "_internal/twitter_cards.html" . -}} | ||
{{ if eq (getenv "HUGO_ENV") "production" }} | ||
{{ template "_internal/google_analytics.html" . }} | ||
{{ end }} | ||
{{ if .Site.Params.prism_syntax_highlighting }} | ||
<!-- stylesheet for Prism --> | ||
<link rel="stylesheet" href="{{ "/css/prism.css" | relURL }}"/> | ||
<link rel="stylesheet" href="{{ "/site/prism.css" | absURL }}"/> |
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.
<link rel="stylesheet" href="{{ "/site/prism.css" | absURL }}"/> | |
<link rel="stylesheet" href="{{ "css/prism.css" | relURL }}"/> |
Moved the 404.html file to the 'docsy' folder, and the error related to this file is resolved. Is it acceptable to keep the file in this location? |
hugo-test is passed. here is the successful log - - https://gist.github.com/Kalaiselvi84/c044264e40b461a5b8db2a7a6f0ebbaf |
Build Succeeded 👏 Build Id: 807a95cf-7750-4a8b-aa10-f7f997559099 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
We don't actually use the 404, so I think we can delete it! https://gohugo.io/templates/404/ This is what a 404 looks like for us: https://agones.dev/site/index3.html |
Cool cool - let's take a look at the preview when it comes up. |
The hugo-test, site-server, site-static, and site-static-preview targets have successfully completed, with the total of two warnings. |
Sweet! I would like to give a look to see if anything's broken from a rendering perspective as well. |
Build Succeeded 👏 Build Id: 015fac38-ec1a-4076-9c27-d559c9b40767 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
Clicking through, this looks good!
Next stop 😄 let's try upgrading Docsy once this is merged.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Kalaiselvi84, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Could you kindly advise on the most appropriate option for our project from the link? |
I know they don't seem to advocate for it, but let's start with a copy of docsy in our folder. I feel like we often need to make changes to the docsy theme, so having our own copy seems like a good idea. |
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Work on #3346
Special notes for your reviewer: