logseq / publish-spa

A github action and CLI to publish logseq graphs as a SPA app
MIT License
233 stars 15 forks source link

[Feature Request] Custom config.edn for export #22

Closed HarvsG closed 8 months ago

HarvsG commented 8 months ago

What Happened?

It would be helpful to either specify a seperate config.edn for export or to overwrite config.edn setting on export. The particular use-case I imagine would be to specify a different home page. A typical user may just want their own home-page to be a journal entry or a page with links to common namespaces. Whereas a public home page is more likely to either be a welcome page or a tutorial page on how to use the logseq graph

Reproduce the Bug

FR

Expected Behavior

No response

Desktop or Mobile Platform Information

No response

HarvsG commented 8 months ago

Created a related discussion on the forum that is regarding the Desktop export function: https://discuss.logseq.com/t/different-config-edn-on-export/24171

logseq-cldwalker commented 8 months ago

Hi. This can done without changes to the github action. In your graph's publish.yml, simply add a step before the - uses: logseq/publish-spa@v0.3.0 step, that copies your custom config.edn e.g. - run: cp logseq/publishing-config.edn logseq/config.edn

logseq-cldwalker commented 8 months ago

Hi. Closing as I haven't heard back. Hopefully my suggested workaround worked