secure-77 / Perlite

A web-based markdown viewer optimized for Obsidian
https://perlite.secure77.de/
MIT License
1.06k stars 92 forks source link

Subdirectories don't work #127

Closed codergoblin closed 3 months ago

codergoblin commented 3 months ago

Hi, for some reason no files in subdirectories are listed in the wiki.

I've got the following file structure:

root@vultr:/data/perlite# tree -d
.
└── Sif
    └── Attachments

However only the files under /data/perlite/Sif are listed

image

If I click attachment nothing comes up an links to it are broken.

Here's my compose file

root@vultr:/opt/Perlite# cat docker-compose.yml 
version: "3.9"

services:
  perlite:
    image: sec77/perlite:latest
    container_name: perlite
    restart: unless-stopped
    environment:
      - NOTES_PATH=Sif
      - HIDE_FOLDERS=
      - LINE_BREAKS=true
      - ABSOLUTE_PATHES=false
      - ALLOWED_FILE_LINK_TYPES=pdf,mp5,jpeg,jpg,png,bmp
      - DISABLE_POP_HOVER=false
      - SHOW_TOC=true
      - SHOW_LOCAL_GRAPH=true
      - HOME_FILE=README
      - FONT_SIZE=15
      - HTML_SAFE_MODE=true
      - TEMP_PATH=/tmp
      - SITE_TITLE=Storm in phanes
      - SITE_TYPE=article
      - SITE_URL=
      - SITE_IMAGE=
      - SITE_DESC=
      - SITE_NAME=
      - SITE_TWITTER=
      - SITE_LOGO=
      - SITE_HOMEPAGE=
      - SITE_GITHUB=
    volumes:
      - /data/perlite/:/var/www/perlite/Sif/

  web:
    build:
        context: ./web
    image: sec77/perlite_web:stable
    container_name: perlite_web
    restart: unless-stopped
    ports:
      - 80:80
    volumes_from: 
      - perlite       
    depends_on:
      - perlite
codergoblin commented 3 months ago

It seems that articles can't be read from the Attachments folder, if I create a new folder and add articles there they work. However images are not listed

secure-77 commented 3 months ago

Hey, only .md files are shown in the navbar

codergoblin commented 3 months ago

Yeah, but .md files were not showing up either. They started appearing after I renamed the directory, no clue why