File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed
packages/site-content/site Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 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+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "layout" : " layouts/docs.11ty.cjs" ,
3+ "scripts" : [
4+ " ../js/homepage.js"
5+ ]
6+ }
Original file line number Diff line number Diff line change 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_
You can’t perform that action at this time.
0 commit comments