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

Is siteOrigin required? #43

Closed
davidtheclark opened this issue Jun 29, 2017 · 8 comments · Fixed by #81
Closed

Is siteOrigin required? #43

davidtheclark opened this issue Jun 29, 2017 · 8 comments · Fixed by #81
Assignees

Comments

@davidtheclark
Copy link
Contributor

This configuration property is used in two places currently:

  • In prefixUrl.absolute(), if you use that.
  • In sitemap generation.

Sitemaps won't work at all without it. Should it be required?

@davidtheclark
Copy link
Contributor Author

We could skip sitemap generation and not provide prefixUrl.absolute if no siteOrigin is provided. That's another possibility.

@davidtheclark
Copy link
Contributor Author

@jfurrow: I'm gonna hand this one to you so you have the opportunity to dig into Batfish a little bit.

@jfurrow
Copy link
Contributor

jfurrow commented Jul 7, 2017

I like the thought that users can still build their Batfish project without the siteOrigin property. I do think it would be useful to warn users of the implications (the implications being that no sitemap will be generated).

Maybe we could still create prefixUrl.absolute but throw an error if siteOrigin is undefined? This way the user will see a friendlier error message, rather than prefixUrl.absolute is not a function.

@davidtheclark
Copy link
Contributor Author

Maybe we could still create prefixUrl.absolute but throw an error if siteOrigin is undefined? This way the user will see a friendlier error message, rather than prefixUrl.absolute is not a function.

@jfurrow: This sounds good to me. What do you think about sitemap generation?

@jfurrow
Copy link
Contributor

jfurrow commented Jul 7, 2017

@davidtheclark I think the build script could display a nice warning (maybe even with emojis and a link to the docs!) telling them that the sitemap was not generated.

@davidtheclark
Copy link
Contributor Author

👍

@davidtheclark
Copy link
Contributor Author

@jfurrow is this still on your radar, or should I pick it up today?

@jfurrow
Copy link
Contributor

jfurrow commented Jul 13, 2017

@davidtheclark Sorry for the delay, I'll make sure to complete this today!

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 a pull request may close this issue.

2 participants