diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index a8666f6..b122df9 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -34,7 +34,9 @@ jobs: deno-version: v1.x - name: Build site - run: deno task build + run: | + deno run -A doc/main.ts + deno task build - name: Setup Pages uses: actions/configure-pages@v3 diff --git a/doc/assets/.gitkeep b/doc/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/doc/index.page.ts b/doc/index.page.ts index 3f9331d..775c831 100644 --- a/doc/index.page.ts +++ b/doc/index.page.ts @@ -1,6 +1,6 @@ const readme = () => Deno.readTextFile(import.meta.dirname + "/../README.md") - .then((text) => text.replace("# StackGraph", "")) + .then((text) => text.split("\n").slice(3).join("\n")) const header = /*md*/ ` # [StackGraph](https://github.com/daangn/stackgraph)