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

feature: allow sites to be disabled through file naming #60

Open
wants to merge 2 commits into
base: live
Choose a base branch
from

Conversation

khawkins98
Copy link

@khawkins98 khawkins98 commented Feb 3, 2023

A small change that allows a site file configuration to be disabled by ending it with .disabled.js.

I've found this easier/preferable to temporarily deleting the file.

Another approach would be to add a enabled: true/false property, but this was simpler to implement -- and I think it's more obvious if a site is disabled.

Maybe you'll like the idea.

Update

I've now seen it's possible to add a skip: true parameter.

I think that makes this PR not required -- however I think this could have been more obvious, open to a PR adding that to the readme?

A small change that allows a site file configuration to be disabled by ending it with `.disabled.js`.

I've found this easier/preferable to temporarily deleting the file.

Another approach would be to add a `enabled: true/false` property, but this was simpler to implement -- and I think  it's more obvious if a site is disabled.

Maybe you'll like the idea.
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