From 837bb82f8ac4c0e52efbe84d5c3e8495489da13e Mon Sep 17 00:00:00 2001 From: Paul Wright Date: Sat, 7 Sep 2024 21:04:32 +0100 Subject: [PATCH] make pages public and publish --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ logseq/logseq/config.edn | 5 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..04ca526 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +on: + push: + branches: [main] + paths-ignore: + - '*.md' +permissions: + contents: write +jobs: + test: + runs-on: ubuntu-latest + name: Run the action on logseq graph and publish + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build graph's SPA + uses: logseq/publish-spa@main + with: + graph-directory: logseq + theme-mode: dark + accent-color: cyan + + - 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 \ No newline at end of file diff --git a/logseq/logseq/config.edn b/logseq/logseq/config.edn index 06ab359..9b5e51b 100644 --- a/logseq/logseq/config.edn +++ b/logseq/logseq/config.edn @@ -420,4 +420,7 @@ ;; ;use Percent-encoding for other invalid characters :file/name-format :triple-lowbar :feature/enable-flashcards? false - :journal/page-title-format "dd-MM-yyyy"} + :journal/page-title-format "dd-MM-yyyy" + :publishing/all-pages-public? true + :feature/enable-timetracking? false + :editor/preferred-pasting-file? true}