logseq-publish-adjust-conte.../action.yml

13 lines
482 B
YAML
Raw Permalink Normal View History

2023-10-20 00:56:02 +00:00
name: Logseq adjust Content Width
description: A postprocessor for logseq-spa. Adjusts the width of the website content
inputs:
content-width:
description: If drawings should be exported in dark mode
required: true
runs:
using: composite
steps:
- name: Replace content width css
run: sed -ri 's|--ls-main-content-max-width:\s*\w*|--ls-main-content-max-width:${{ inputs.content-width }}|g' "${{ github.workspace }}/www/static/css/style.css"
2023-10-20 01:01:11 +00:00
shell: bash