logseq-publish-excalidraw-t.../README.md

36 lines
1.1 KiB
Markdown
Raw Normal View History

2023-10-09 20:37:42 +00:00
# logseq-publish-excalidraw-to-svg
2023-10-09 19:58:58 +00:00
Excalidraw drawings are not rendered when published in logseq. This action makes sure that they are converted to svg and inserts the svgs
2023-10-18 13:56:58 +00:00
2023-10-18 14:00:38 +00:00
This needs a helper repo or branch to upload the svgs to.
2023-10-18 13:56:58 +00:00
## Example action:
```yaml
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
2023-10-18 14:00:38 +00:00
```