-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Integrate Prember/FastBoot #93
Comments
We're looking into this too, as it's a requirement for us to publish a static site to allow search indexing with our broader internal systems. We'll let you know what we come up with. |
The readme of my addon has gone way out of control, it's 72 KiB long. 🙈 I've tried migrating it to Addon Docs. The result looks absolutely awesome, but I was discouraged to find out that my documentation is no longer indexable. This is a huge downside. |
Perhaps I am wrong, but couldn't people add prember and fastboot as dev deps and point them at the dummy app? |
@rwwagner90 It should be available out of the box, preconfigured. All the FastBoot business, shoeboxing, handling network requests, whitelisting libraries, etc. |
@lolmaus should the documentation need all those features? Seems like overkill to me. |
@rwwagner90 The documentation surely needs to be indexed. As for shoeboxing and such, I don't know! I have a very vague idea how |
@lolmaus Indexed, sure. All we need for that is prember. I don't know of documentation that uses Ember data, requires network requests, needs to whitelist libraries etc. With this in mind, I think the consumers of ember-cli-addon-docs are free to add prember to the dummy site as they wish. Do you see any reason they could not? |
Well, they could also configure But for some reason you've chosen to bundle all this pre-configured. Probably because you want users to focus on writing documentation and not spending time researching how to deal with all that. Without |
For example, I have no idea how to address this: #327 |
I don't think that's a fair example. Then there would be no need for this addon. #327 would have to be dealt with, yes. I did not think about that. Aside from that though, what I am trying to say here is prember is a simple install away. I would advocate for documenting how to use it, rather than forcibly bundling. |
That was my point. Any addon is just a means to save you some effort. There is no reason for addon documentation to be unavailable as static HTML. Without static HTML,
What's the problem with having it out of the box?
Well, this is definitely better than nothing, but I still see no point in not including it. |
It's not a default thing for Ember apps. Would you say it should be the default for all Ember apps? |
Uhm, no. But it should definitely be the default for addon docs. Do you imply that In that case, the out-of-the box configuration of IMO, that's another argument for bundling and preconfiguring |
@lolmaus I think I am mainly saying it should be up to the user. If prember is the default, and you really wanted a normal Ember app, you would need to find a way to disable it. I'm a big fan of prember, and I totally agree with you that it should be possible to use for addon docs, but I think it should be up to the user to opt in to, or if we made it the default, there needs to be an easy opt-out. |
@rwwagner90 Can you think of a case where an addon author would want to disable |
Off the top of my head, no, but I think making it opt in / opt out should be fine and support all cases. @samselikoff @dfreeman @pzuraq what do you guys think about making prember the default? Should it be default with an opt out or not enabled by default, with an opt in? |
I'm in favor of making it a default with easy opt out. |
No reason for it not to be included, simply hasn't been done yet! We just need someone motivated who's willing to contribute. AddonDocs is a great use-case for Prember out of the box since all the data is known at build time. Note: Prember apps are still "normal Ember apps" so all client-side interaction will still work. I do believe #327 was the last time I attempted this, and indeed ran into some issues with the way we handle deploys + what Prember expects. If someone wants to work on this, that issue would be the right place to start 👍 Also, a great way to get a big change like this merged into master is to follow the example of |
The prember compatibility issue in #327 has been looming large for me recently as we gear up for a big Octane-alignment docs overhaul in ember-cli-typescript. I'll aim to revisit that this week to see if we can at least solve the blocking part so that prember can be used with AddonDocs. Beyond that, I don't have a super strong opinion about whether prember should be included out of the box, but I'm definitely not opposed. |
@dfreeman let me know when you make some progress on that issue, and I can then try to help out with prember integration. |
Well, this is where it went: https://github.com/empress/field-guide#readme |
@dfreeman did you ever get a chance to look into this? |
@rwwagner90 Apologies! I started in on an implementation back in December and then got completely sidetracked. I need to take a bit of time to look at what I wrote and see if I can remember what I was doing, and I'll report back. |
@dfreeman I'm happy to help as well, just let me know! It seems like there are talks of deprecating addon docs, since it is bad for SEO, but I love using it, so I would like to get this working, so it's a viable solution again. |
@dfreeman would you like to possibly pair on this? I just took a look for awhile and it seems that the main thing we need to do is move the replacing of the rootUrl to much earlier. I think we could build the app, then if we also want to update latest, we can copy the built output over to the latest folder as part of the ember build, rather than in deploy. I think this would be a good first step at least. |
Since demo sites are mostly static, we could leverage Prember to make addon demos load really fast and avoid authors having to figure it out on their own.
The text was updated successfully, but these errors were encountered: