Hi,
I’ve only dabbled in hubspot so far, primarily cms-react and hs cli. I’ve got a requirement to host our help pages produced in madcap flare in hubspot. I had initially hoped I could use some kind of KB api but it doesn’t exist.
Hopefully this is an obvious thing that I’m just not aware of yet.
So I’ve got my flare output, which is a html file and some other resources like js files.
I’ve added the required header/footer elements and ran `hs upload <path>` with success. however I’m having trouble getting my js files to load. I corrected the paths to use `get_asset_url` and I do get the expected 200 response in the network tab for my js files.
my require.js doesn’t seem to be loading as my require.config is throwing undefined against require.
here’s my html
<!--
templateType: "page"
isAvailableForNewContent: true
-->
<!DOCTYPE html>
<html data-mc-runtime-file-type="Default" class="_Skins_HTML5_TopNavigation_Revenue">
<head>
{{ standard_header_includes }}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><title></title>
<script type="text/javascript" src="{{ get_asset_url('cdi-help/Resources/Scripts/require.min.js') }}">
</script>
<script type="text/javascript" src="{{ get_asset_url('/cdi-help/Resources/Scripts/jquery.min.js') }}">
</script>
<script defer="defer" type="text/javascript" src="{{ get_asset_url('cdi-help/Resources/Scripts/plugins.min.js') }}">
</script>
<script defer="defer" type="text/javascript" src="{{ get_asset_url('cdi-help/Resources/Scripts/require.config.js') }}">
</script>
<script defer="defer" type="text/javascript" src="{{ get_asset_url('cdi-help/Resources/Scripts/MadCapAll.js') }}">
</script>
</head>
<body>
{{ standard_footer_includes }}
</body>
</html>
Am I atleast heading in the right direction for this? Can anyone recommend alternative approaches this?

