Excalidraw drawings are not rendered when published in logseq. This action makes sure that they are converted to svg and inserts the svgs
Go to file
2023-10-20 02:48:42 +02:00
action.yml Update action.yml 2023-10-18 16:03:20 +02:00
docker-compose.yml updated max uri length 2023-10-20 02:39:20 +02:00
LICENSE Create LICENSE 2023-10-20 02:48:42 +02:00
README.md Update README.md 2023-10-18 16:00:38 +02:00
to_svg.sh tried external svg hosting 2023-10-18 13:20:51 +00:00
wait_for_kroki.sh Wait for kroki to start 2023-10-17 01:44:10 +00:00

logseq-publish-excalidraw-to-svg

Excalidraw drawings are not rendered when published in logseq. This action makes sure that they are converted to svg and inserts the svgs

This needs a helper repo or branch to upload the svgs to.

Example action:

on: [push]

permissions:
  contents: write
jobs:
  test:
    runs-on: ubuntu-latest
    name: Publish Logseq graph
    steps:
      - uses: actions/checkout@v3
      - uses: Surferlul/logseq-publish-excalidraw-to-svg@main
        with:
          dark-mode: true
          asset-repo: <YOUR USERNAME>/<YOUR REPOSITORY>
          asset-repo-branch: <YOUR REPOSITORY BRANCH FOR AUTOGENERATED ASSETS>
          asset-repo-token: "${{ secrets.<YOUR REPOSITORY ACCESS TOKEN WITH CONTENT READ/WRITE> }}"
      - uses: logseq/publish-spa@main
        with:
          version: nightly
          theme-mode: dark
      - name: add a nojekyll file # to make sure asset paths are correctly identified
        run: touch $GITHUB_WORKSPACE/www/.nojekyll
      - name: Deploy 🚀
        uses: JamesIves/github-pages-deploy-action@v4
        with:
          folder: www