Skip to content

V1#4

Merged
gconnolly merged 11 commits intomasterfrom
v1
Oct 18, 2018
Merged

V1#4
gconnolly merged 11 commits intomasterfrom
v1

Conversation

@gconnolly
Copy link
Copy Markdown
Contributor

Ok, here is a draft that I think I am willing to share with some more people to get feedback. I have been looking at it for too long, so I am not sure if it makes any sense.

I'd like to merge what is here with any minor feedback before I share it.

@gconnolly gconnolly requested a review from ryancarroll October 18, 2018 04:17
Copy link
Copy Markdown

@DlearyMW DlearyMW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, this all looks good. I found 1 typo, and also as I was reading and got to the first example showing window.env.API I started wondering "Did i skip over the part where that gets set?". I kept reading on and eventually got to it, but I wonder if that would be a distraction from readers coming to this documentation that aren't already familiar with it.

TL;DR: Consider switching the order of the index.html and perma bundles sections to give users an understanding of where the values are set, then later on where they are consumed in the bundles

@gconnolly
Copy link
Copy Markdown
Contributor Author

@DlearyMW yeah, I have been struggling a lot with the ordering of the sections, and agree with your feedback... I feel like there are problems with talking about the index.html first. I will think on it.

@DlearyMW
Copy link
Copy Markdown

I agree that there are problems with either approach. What about doing something like

index.html snippet

bundle.js snippet

Then directly below them "Now let's break these code snippets into their respective parts in the IWA philosophy" or something like that. You give a cohesive example of the two, and then separate them in whatever order you want to describe them, but you've given the reader a concrete example so they can say "Oh that's where window.env.API comes from" if you decide to talk about the bundling first

README.md Outdated
- <script src="main.js" type="text/javascript"></script>

+ <!-- permanent, reuseable -->
+ <script src="https://assets.myapp.com/apps/bae1407/main.js" type="text/javascript"></script>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is bae1407?? Might be better to carry through the same example asset name/version that you refer to earlier in the doc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I will replace the hash in favor of a consistent three part versioned string.

@gconnolly
Copy link
Copy Markdown
Contributor Author

@DlearyMW I will work on starting with an upfront example of both a service and a index.html in v2

@gconnolly gconnolly changed the base branch from master to intro-principles-concepts October 18, 2018 17:38
@gconnolly gconnolly changed the base branch from intro-principles-concepts to master October 18, 2018 17:38
@gconnolly gconnolly merged commit a664d53 into master Oct 18, 2018
@gconnolly gconnolly deleted the v1 branch October 19, 2018 14:09
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.

3 participants