Skip to content
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

Add support for page fragments to Jakarta site #1686

Merged
merged 6 commits into from
Jul 5, 2023

Conversation

autumnfound
Copy link
Contributor

Using new version of Hugo theme, a new templates section was added that allows the sites base page template to be retrieved programatically. These pages do not contain any page content, and will need to be added manually to be useful.

@netlify
Copy link

netlify bot commented Jun 19, 2023

Deploy Preview for jakartaee ready!

Name Link
🔨 Latest commit 6dd461c
🔍 Latest deploy log https://app.netlify.com/sites/jakartaee/deploys/64a5b1d5e28cc20007fbd29e
😎 Deploy Preview https://deploy-preview-1686--jakartaee.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@autumnfound autumnfound marked this pull request as ready for review July 4, 2023 15:53
@autumnfound
Copy link
Contributor Author

This is updated to support the template pages changes I made in the base theme. I don't see any issues on a cursory glance through the site. Was there a specific feature you were worried might not work in the upgrade?

package.json Outdated
@@ -26,7 +26,7 @@
"optimize_news_images": "bash ./optimize_images.sh content/news"
},
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "0.0.181",
"eclipsefdn-hugo-solstice-theme": "0.0.186",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also update the Hugo version in the netlify file if we upgrade this package. See https://gitlab.eclipse.org/eclipsefdn/infrazilla/-/issues/1011 for more info.

We also need to update the readme.md when we make this change:
https://gitlab.eclipse.org/eclipsefdn/it/websites/eclipse.org/-/commit/f85703d8ff207a74cdc4ca0a3bd2e02549d52951

Finally, we had some issues with the spec project:

TLDR; yarn is not installed for that project. Can you also switch form yarn.lock to packages-lock.json with this change?

Using new version of Hugo theme, a new templates section was added that allows the sites base page template to be retrieved programatically. These pages do not contain any page content, and will need to be added manually to be useful.
@autumnfound autumnfound force-pushed the malowe/src/template-pages branch from 159803b to 3484501 Compare July 4, 2023 18:59
webpack.mix.js Outdated
@@ -15,11 +15,20 @@ require('./node_modules/eclipsefdn-solstice-assets/webpack-solstice-assets.mix.j
let mix = require('laravel-mix');
mix.EclipseFdnSolsticeAssets();

// required to resolve missing polyfills
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is going to be needed for all the sites, let's fix it in solstice-assets so that all sites can benefit:
https://gitlab.eclipse.org/eclipsefdn/it/webdev/solstice-assets/-/blob/main/webpack-solstice-assets.mix.js

New EFHST version includes the changes for the webpack base config to provide the fallbacks for query string, meaning it is no longer required in this package.

Currently there is a compile time vulnerability with semver. An override was added to force it to the newest version as it should be stable even for old packages. Semver provides functionality to check NPM versions and is relatively stable otherwise.
@autumnfound autumnfound marked this pull request as ready for review July 5, 2023 18:09
@chrisguindon
Copy link
Member

chrisguindon commented Jul 5, 2023

This is updated to support the template pages changes I made in the base theme. I don't see any issues on a cursory glance through the site. Was there a specific feature you were worried might not work in the upgrade?

The specifications repo project. Once this is merged, we will need to upgrade the Hugo version and perhaps some build commands.

https://github.com/jakartaee/specifications/blob/master/netlify.toml

@autumnfound autumnfound merged commit 7db5ad4 into jakartaee:src Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants