diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/docs.yml similarity index 59% rename from .github/workflows/deploy-docs.yaml rename to .github/workflows/docs.yml index 2d5da05..53ddfbf 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/docs.yml @@ -20,11 +20,19 @@ jobs: bun-version: latest - name: Build run: | + sudo apt install -y \ + doxygen \ + graphviz \ + python3-pip \ + python3-setuptools + python3 -m pip install mkdocs mkdocs-github-admonitions-plugin mkdocs-get-deps pymdown-extensions mdx_truly_sane_lists + bun install -g gh-pages bun install bun run api-docs + mkdocs build - name: Deploy run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - bun run deploy-api-docs + gh-pages -d dist/website -e . -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index a86af18..ede3436 100644 --- a/.gitignore +++ b/.gitignore @@ -118,7 +118,6 @@ out # Nuxt.js build / generate output .nuxt -dist # Gatsby files @@ -178,4 +177,7 @@ dist /examples/tmp # Documentation -/docs/api \ No newline at end of file +/dist/* +!/dist/website/ +/dist/website/api/* +/dist/website/docs/* \ No newline at end of file diff --git a/dist/website/index.html b/dist/website/index.html new file mode 100644 index 0000000..62206a4 --- /dev/null +++ b/dist/website/index.html @@ -0,0 +1,69 @@ + + + + + + + + + + + + + Documentation of vs.fltk + + + + + +
+ +
+
+ +

Comfy Bun

+
+ +
+ + + + + \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..e69de29 diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..55c415c --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,19 @@ +site_name: comfy-bun +repo_url: https://github.com/karurochori/comfy-bun-client +site_dir: dist/website/docs +docs_dir: docs + +theme: + name: readthedocs +markdown_extensions: + - admonition + - pymdownx.tilde + - pymdownx.tasklist + - mdx_truly_sane_lists + - sane_lists + - smarty + - toc: + permalink: "#" +plugins: + - search + - gh-admonitions diff --git a/tsconfig.doc.json b/tsconfig.doc.json index 93eff15..4f72dcf 100644 --- a/tsconfig.doc.json +++ b/tsconfig.doc.json @@ -32,7 +32,7 @@ "include": ["./src/*", "./index.ts"], "typedocOptions": { "entryPoints": ["./index.ts"], - "out": "docs/api", + "out": "dist/website/api", "readme": "none" } }