diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index cfbb4b2..b5133f8 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -43,6 +43,7 @@ jobs: run: | mkdir -p _site cp index.html _site/ + cp docs/img.png _site/ - name: Setup Pages uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Upload artifact diff --git a/docs/img.png b/docs/img.png new file mode 100644 index 0000000..2b7e485 Binary files /dev/null and b/docs/img.png differ diff --git a/docs/index.ts b/docs/index.ts index 9226b39..b0d2e19 100644 --- a/docs/index.ts +++ b/docs/index.ts @@ -1,9 +1,10 @@ -import type { Body, Div, Html, P } from '../src/html'; +import type {Body, H1, Div, Html, Img, P} from '../src/html'; type PageHtml = Html< Body<[ - Div<'Hello'>, + H1<'Hello'>, Div<[P<'This is a page of html-type.'>]>, Div<[P<'TypeScript-typed HTML generation.'>]>, + Img<{ src: './img.png'}> ]> >;