logseq / logseq/publish-spa

Images not visible in the published graph.

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
313
Forks
29
PR merge metrics
No merged PRs in 30d

Description

### What Happened?

I tried publishing my graph via github pages and logseq-publish-spa action.
check: https://amrullah.github.io

~~But No image is visible anywhere.~~
Update: Images are not visible in the page mentioned in "Reproduce the Bug" section, but they are visible in this page: https://amrullah.github.io/#/page/apache%20spark%20programming%20udemy%20course%2Fsection%201

This is my `publish.yml`: https://github.com/amrullah/amrullah.github.io/blob/main/.github/workflows/publish.yml

This is my `config.edn`: https://github.com/amrullah/amrullah.github.io/blob/main/logseq/config.edn

### Key details:

1. `publishing/all-pages-public` is set to false in config.edn and only a tiny subset of the pages are individually marked as public.
2. `:block-hidden-properties #{:public }` has been used to hide `public: true` above every page in the exported graph.
3. Added a .nojekyll file in the top level directory of my repo: https://github.com/amrullah/amrullah.github.io/commit/8bd12e6b6d71d2d4270dd846ad8f073a9ddb22a9

### Reproduce the Bug

1. Go to https://amrullah.github.io/#/page/uncommon%20sense%20teaching%2Fchapter%201/block/process%3A%20%23%5B%5Blong%20term%20memory%5D%5D
2. You'll see the empty space below `* Diagram` block.

Likewise no image is visible in the graph.

### Expected Behavior

This image should have been visible:
https://github.com/amrullah/amrullah.github.io/blob/main/assets/uncommon_sense_learning_illustrations/Fig_3_pg_4_learnt_it_link_it.png

in the same way this one is:
https://github.com/amrullah/amrullah.github.io/blob/main/assets/yarn_intro_1771754000459_0.png

### Desktop or Mobile Platform Information

Windows 11 Laptop, Microsoft Edge and Google Chrome browsers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked publish.yml and config.edn, then reproduce the missing image at the uncommon sense teaching page and compare it with the visible image URL. Inspect how the published SPA resolves the two asset paths. Done means the referenced Fig_3_pg_4_learnt_it.png renders in the published graph as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, github-actions
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.