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

Move scriptEnvironment to the top of the script #81

Closed
cedricsam opened this issue Dec 21, 2017 · 2 comments
Closed

Move scriptEnvironment to the top of the script #81

cedricsam opened this issue Dec 21, 2017 · 2 comments

Comments

@cedricsam
Copy link
Contributor

Would it make sense to have scriptEnvironment (for non-NYT usages of ai2html) and PROMO_WIDTH (for setting width of promo image) at the very top of the script? I see that PROMO_WIDTH was maybe meant to be in base settings?

See how we moved scriptEnvironment to the top: https://github.com/bizweekgraphics/ai2html/blob/master/ai2html.js#L13

But I see it's in the base settings too:
https://github.com/bizweekgraphics/ai2html/blob/master/ai2html.js#L113

@mbloch
Copy link
Contributor

mbloch commented Apr 6, 2018

Hey Cedric, sorry it's taken a while to respond...

You're right, promo image width should be configurable. I just pushed an update (v0.67.3) that adds a "promo_image_width" setting.

The "ai2html_environment" setting is no longer being used, and I've removed it.

It seems to me that the scriptEnvironment variable is a kludge that should go away. That will have to wait until the configuration system is updated, which is currently at the top of my list of things to improve. (See issue #86)

@cedricsam
Copy link
Contributor Author

Cool, sounds good! Thanks!

I was actually just reading this issue that you replied to last night! #75

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

No branches or pull requests

2 participants