Skip to content

Commit e418d49

Browse files
committed
Add docs page
1 parent c5fba25 commit e418d49

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* @license
3+
* Copyright 2022 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
module.exports = {
8+
async render(data) {
9+
const {renderPage, html, unsafeHTML} = await import(
10+
'../../../templates/lib/base.js'
11+
);
12+
await import('@webcomponents/internal-site-client/lib/components/wco-nav-page.js');
13+
14+
// URL isn't exactly a Location, but it's close enough for read-only uses
15+
window.location = new URL('http://localhost:5450/docs/');
16+
17+
return [
18+
...renderPage({
19+
...data,
20+
content: html`<wco-nav-page>${unsafeHTML(data.content)}</wco-nav-page>`,
21+
}),
22+
].join('');
23+
},
24+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"layout": "layouts/docs.11ty.cjs",
3+
"scripts": [
4+
"../js/homepage.js"
5+
]
6+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: 'Web Components | Docs'
3+
---
4+
# Introduction to Web Components
5+
6+
_TODO_: Welcome to the webcomponents.org docs...
7+
8+
## What are web components?
9+
10+
_TODO_
11+
12+
## Why are web components?
13+
14+
_TODO_
15+
16+
## How to web components?
17+
18+
_TODO_

0 commit comments

Comments
 (0)