Skip to content

Commit

Permalink
fixup + docs change
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Sep 19, 2024
1 parent 2e1448e commit c09e1b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ jobs:

# not the official version, so be careful when updating
- name: Deploy to Cloudflare Pages
uses: AdrianGonz97/refined-cf-pages-action@f026b5a7c0cb4a05ecb63871c5fc4992cf036d7f
# Replace this with the main commit when this lands
uses: AdrianGonz97/refined-cf-pages-action@fix/deploy-prod-on-workflow_run
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'qwik-docs'
directory: packages/docs/dist
githubToken: ${{ secrets.GITHUB_TOKEN }}
# force production when running on main
branch: ${{ (github.event.workflow_run.head_branch == 'main' && 'main') || '' }}
17 changes: 12 additions & 5 deletions packages/docs/src/routes/docs/(qwik)/advanced/containers/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ contributors:
- mhevery
- bab2683
- mrhoodz
updated_at: '2023-08-23T23:06:42Z'
updated_at: '2023-08-23T23:06:41Z'
created_at: '2023-03-20T23:45:13Z'
---

Expand All @@ -19,7 +19,14 @@ created_at: '2023-03-20T23:45:13Z'
Every Qwik application is contained inside a element, usually the `<html>` element. This element becomes the container for the application. The container is the root element for the application and all components, state and events are contained within.

```html
<html q:container="paused" q:version="0.12.1" q:base="/build">
<html
q:container="paused"
q:version="1.9.0"
q:render="ssr"
q:base="/build/"
q:manifest-hash="ggb7b3"
q:instance="b0yf84vwuup"
>
...
</html>
```
Expand All @@ -39,7 +46,7 @@ renderToStream(<Root />, {
The code above will render the following HTML:

```html
<html lang="en" q:container="paused" q:version="0.12.1" q:base="/build">
<html lang="en" q:container="paused" q:version="1.9.0" q:base="/build/">
...
</html>
```
Expand Down Expand Up @@ -68,12 +75,12 @@ Since the runtime ensures isolation across containers, several containers can co
Containers can be nested in a tree and can communicate and share data. The inter-component communication requires that the components have well-defined boundaries, which we call container protocols.

```html
<html q:container="paused" q:version="0.12.1" q:base="/build">
<html q:container="paused" q:version="1.9.0" q:base="/build/">
<head>
<title>My Qwik Application</title>
</head>
<body>
<header q:container="resumed" q:version="0.11.1" q:base="https://server.a/build">
<header q:container="resumed" q:version="1.8.0" q:base="https://server.a/build">
<div>
<h1>This is a header form a container</h1>
</div>
Expand Down

0 comments on commit c09e1b8

Please sign in to comment.