Skip to content

Conversation

Copy link

Copilot AI commented Oct 31, 2025

Build process reported multiple warnings: missing file references in navigation menu, menu items without URLs, deprecated Hugo CSS functions, and a low-severity npm vulnerability in sweetalert2.

Changes

Navigation Menu (content/navigation.md)

  • Removed reference to non-existent functions/artificial-intelligence/ai-chat-box.md
  • Added URL to "EHR Certification" → resources/system-specifications/ehr-certification/real-world-testing.md
  • Changed "NEW Interface Specifications" to "Interface Specifications" → resources/system-specifications/interface-specifications.md

Hugo Template Updates

Replaced deprecated resource pipeline functions in themes/wc-eh-docs/layouts/partials/header.html and themes/wc-eh-docs/layouts/404.html:

- {{ $style := resources.Get $themestylepath | resources.ToCSS $options | resources.PostCSS (dict "config" "postcss.config.js") | resources.Minify |  resources.Fingerprint "sha512" }}
+ {{ $style := resources.Get $themestylepath | css.Sass $options | css.PostCSS (dict "config" "postcss.config.js") | resources.Minify |  resources.Fingerprint "sha512" }}

Dependencies

Original prompt

This section details on the original issue you should resolve

<issue_title>Multiple build warnings: missing files, deprecated Hugo features, and npm vulnerability</issue_title>
<issue_description>### Summary

During the build process, several warnings and issues were reported:

npm

  • 78 packages are looking for funding (run npm fund for details)
  • 1 low severity vulnerability (run npm audit fix to address)

navigation.md menu warnings

  • [Legacy AI Chat Box](functions/artificial-intelligence/ai-chat-box.md) has a missing file: functions/artificial-intelligence/ai-chat-box.md
  • "EHR Certification" is listed without a URL near: [System Specifications](resources/system-specifications.md)
  • "NEW Interface Specifications" is listed without a URL near: [Default](resources/system-specifications/system-email-templates/email-templates-from-scheduler/default.md)

Hugo warnings

  • resources.ToCSS and resources.PostCSS are deprecated as of Hugo v0.128.0. Use css.Sass and css.PostCSS instead. These will be removed in a future release.

Steps to Reproduce

  1. Run the build: ./build.sh --baseURL "https://docs-qa.med-web.com/master/wc/" --minify wc

Expected Behavior

  • No missing files or menu URL warnings
  • No usage of deprecated Hugo features
  • No npm vulnerabilities

Actual Behavior

  • Multiple warnings as described above

Suggested Actions

  • Update or remove references to missing files in navigation.md
  • Correct menu items without URLs
  • Refactor Hugo build to use supported CSS resources
  • Run npm audit fix to resolve vulnerabilities

Build log for reference:

added 254 packages, and audited 255 packages in 7s
78 packages are looking for funding
  run `npm fund` for details
1 low severity vulnerability
To address all issues, run:
  npm audit fix
Run `npm audit` for details.
Warning: navigation.md menu has "[Legacy AI Chat Box](functions/artificial-intelligence/ai-chat-box.md)" without file: "functions/artificial-intelligence/ai-chat-box.md"
Warning: navigation.md menu has "EHR Certification" without url near: "[System Specifications](resources/system-specifications.md)"
Warning: navigation.md menu has "NEW Interface Specifications" without url near: "[Default](resources/system-specifications/system-email-templates/email-templates-from-scheduler/default.md)"
WARN  deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead.
WARN  deprecated: resources.PostCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.PostCSS instead.

Let me know if more build details are needed.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

… update deprecated Hugo functions, fix npm vulnerability

Co-authored-by: wreiske <6295044+wreiske@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix multiple build warnings and npm vulnerabilities Fix build warnings: navigation menu URLs, deprecated Hugo functions, npm vulnerability Oct 31, 2025
Copilot AI requested a review from wreiske October 31, 2025 15:56
@cloudflare-workers-and-pages
Copy link

Deploying eh-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 50b9dd0
Status: ✅  Deploy successful!
Preview URL: https://93b41f9a.eh-docs.pages.dev
Branch Preview URL: https://copilot-fix-build-warnings-a.eh-docs.pages.dev

View logs

@github-actions
Copy link

👋 @Copilot, Your documentation has been pushed to https://docs-qa.med-web.com/103-merge/ for commit 97c228a

1 similar comment
@github-actions
Copy link

👋 @Copilot, Your documentation has been pushed to https://docs-qa.med-web.com/103-merge/ for commit 97c228a

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.

Multiple build warnings: missing files, deprecated Hugo features, and npm vulnerability

2 participants