Skip to content

Commit 749904a

Browse files
Add README to pages
1 parent 3c079cd commit 749904a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
- name: Checkout
3030
uses: actions/checkout@v4
3131

32+
- name: Convert README to index.html
33+
run: |
34+
npm install -g marked
35+
echo '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>table-modifiable</title><style>body{max-width:800px;margin:2rem auto;padding:0 1rem;font-family:system-ui,-apple-system,sans-serif;line-height:1.6}code{background:#f4f4f4;padding:2px 6px;border-radius:3px}pre{background:#f4f4f4;padding:1rem;border-radius:5px;overflow-x:auto}pre code{background:none;padding:0}</style></head><body>' > index.html
36+
marked README.md >> index.html
37+
echo '</body></html>' >> index.html
38+
3239
- name: Setup Pages
3340
uses: actions/configure-pages@v4
3441

0 commit comments

Comments
 (0)