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

Avoid Linking to External Resources #202

Open
tonyswu opened this issue Aug 2, 2019 · 1 comment
Open

Avoid Linking to External Resources #202

tonyswu opened this issue Aug 2, 2019 · 1 comment
Assignees

Comments

@tonyswu
Copy link

tonyswu commented Aug 2, 2019

Please consider copying / writing external resources to the output directory of the HTML files. For example, if I run this command:

ansible-cmdb -t html_fancy_split -p local_js=1 ./output

The output HTLM files will contain links to external resources:

<script type="text/javascript" charset="utf8" src="file:///Users/tonywu/anaconda3/lib/python3.7/site-packages/ansiblecmdb/data/static//js/jquery-1.10.2.min.js"></script>

This effectively mean that I cannot move these HTML files anywhere else for hosting purpose. The scripts and images can be easily copied into the output folder in my opinion, thereby eliminating this dependency.

@fboender fboender self-assigned this Sep 5, 2021
@fboender
Copy link
Owner

fboender commented Sep 5, 2021

Since you mention local_js=1, I'm assuming you're familiar with local_js=0? (See this FAQ entry)

It would be nice if we weren't reliant on an external CDN though. I'll see if I can implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants