diff --git a/_posts/2023-10-09-logseq-publish-excalidraw-to-svg b/_posts/2023-10-09-logseq-publish-excalidraw-to-svg new file mode 100644 index 0000000..456ec86 --- /dev/null +++ b/_posts/2023-10-09-logseq-publish-excalidraw-to-svg @@ -0,0 +1,51 @@ +--- +title: "GitHub Action: logseq-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. + +## Inputs + +| Input | Requred | Default | Description | +| ----- | ------- | ------- | ----------- | +| dark-mode | false | false | If svg should be rendered for a dark-mode theme | +| asset-repo | true | | The repository to store the svgs in. Has to be public | +| asset-repo-branch | true | | The branch of the repository to store the svgs on | +| asset-repo-token | true | | An access token with content read/write to that repository | + +## 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: / + asset-repo-branch: + asset-repo-token: "${{ secrets. }}" + - 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 +``` + +### [View on Marketplace](https://github.com/marketplace/actions/logseq-excalidraw-to-svg) + +### [View on Github](https://github.com/Surferlul/logseq-publish-excalidraw-to-svg) \ No newline at end of file diff --git a/_posts/2023-10-10-logseq-publish-theme-tenset b/_posts/2023-10-10-logseq-publish-theme-tenset new file mode 100644 index 0000000..b73ac2f --- /dev/null +++ b/_posts/2023-10-10-logseq-publish-theme-tenset @@ -0,0 +1,36 @@ +--- +title: "GitHub Action: logseq-publish-theme-tenset" +--- + +A postprocessor for logseq-spa. Applies logseq-tenset-theme to published site + +## Example Action + +```yaml +on: [push] + +permissions: + contents: write +jobs: + test: + runs-on: ubuntu-latest + name: Publish Logseq graph + steps: + - uses: actions/checkout@v3 + - uses: logseq/publish-spa@main + with: + version: nightly + theme-mode: dark + - name: apply tenset theme + uses: Surferlul/logseq-publish-theme-tenset@main + - 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 +``` + +### [View on Marketplace](https://github.com/marketplace/actions/logseq-publish-apply-tenset-theme) + +### [View on Github](https://github.com/Surferlul/logseq-publish-theme-tenset) \ No newline at end of file diff --git a/_posts/2023-10-20-logseq-publish-adjust-content-width b/_posts/2023-10-20-logseq-publish-adjust-content-width new file mode 100644 index 0000000..33f9b9b --- /dev/null +++ b/_posts/2023-10-20-logseq-publish-adjust-content-width @@ -0,0 +1,43 @@ +--- +title: "GitHub Action: logseq-excalidraw-to-svg" +--- + +A postprocessor for logseq-spa. Adjusts the width of the website content + +## Inputs + +| Input | Requred | Logseq Default | Description | +| ----- | ------- | ------- | ----------- | +| content-width | true | 810px | Width that the page content is supposed to have | + +## Example Action +```yaml +on: [push] + +permissions: + contents: write +jobs: + test: + runs-on: ubuntu-latest + name: Publish Logseq graph + steps: + - uses: actions/checkout@v3 + - uses: logseq/publish-spa@main + with: + version: nightly + theme-mode: dark + - name: adjust content width + uses: Surferlul/logseq-publish-adjust-content-width@main + with: + content-width: 1000px + - 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 +``` + +### [View on Marketplace](https://github.com/marketplace/actions/logseq-adjust-content-width) + +### [View on Github](https://github.com/Surferlul/logseq-publish-adjust-content-width) \ No newline at end of file