Skip to content

Make JS dependency URLs configurable#92

Open
sandliu wants to merge 1 commit into
acooks:masterfrom
sandliu:configurable-js-dependency-paths
Open

Make JS dependency URLs configurable#92
sandliu wants to merge 1 commit into
acooks:masterfrom
sandliu:configurable-js-dependency-paths

Conversation

@sandliu
Copy link
Copy Markdown

@sandliu sandliu commented May 12, 2026

No description provided.

@sandliu
Copy link
Copy Markdown
Author

sandliu commented May 12, 2026

Summary

Fixes #42.

This makes the HTML5 client's third-party JavaScript dependency URLs configurable at build time while preserving the current local defaults.

Changes

  • Add Make variables for jQuery, Mustache, cbuffer, Bootstrap, D3, and pako script URLs in make.config
  • Replace hard-coded script paths in index.tpl.html with template placeholders
  • Substitute those placeholders during assemble-html
  • Show the configured JavaScript URLs in make config

Validation

  • make -C html5-client clean assemble-html
  • Verified the generated output/index.html keeps the default local js/... paths
  • Verified overrides such as D3_JS_URL=/usr/share/javascript/d3/d3.min.js and JQUERY_JS_URL=https://cdn.example.test/jquery.min.js are reflected in the generated HTML
  • make -C html5-client clean

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.

1 participant