ppeetteerrs/obsidian-zola

Followed README but unable to build on Netlify

Closed this issue · 3 comments

I'm hoping to publish my obisidian vault temporarily on Netlify. I followed instructions as per readme and I'm seeing a bunch of errors in the console.

10:53:34 AM:   production
10:53:34 AM: ​
10:53:34 AM: ────────────────────────────────────────────────────────────────
10:53:34 AM:   1. build.command from netlify.toml                            
10:53:34 AM: ────────────────────────────────────────────────────────────────
10:53:34 AM: ​
10:53:34 AM: $ rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh
10:53:34 AM: mv: cannot move '__obsidian' to a subdirectory of itself, '__obsidian/__obsidian'
10:53:34 AM: Cloning into '__site'...

And then towards the end of the log I see this message.

10:53:36 AM: Building site...
10:53:36 AM: Failed to build the site
10:53:36 AM: Error: Found path collisions:
10:53:36 AM: - `/docs/` from files ["docs/index.md", "docs/_index.md"]
10:53:36 AM: ​
10:53:36 AM: ────────────────────────────────────────────────────────────────
10:53:36 AM:   "build.command" failed                                        
10:53:36 AM: ────────────────────────────────────────────────────────────────
10:53:36 AM: ​
10:53:36 AM:   Error message
10:53:36 AM:   Command failed with exit code 1: rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh (https://ntl.fyi/exit-code-1)
10:53:36 AM: ​
10:53:36 AM:   Error location
10:53:36 AM:   In build.command from netlify.toml:
10:53:36 AM:   rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh
10:53:36 AM: ​
10:53:36 AM:   Resolved config
10:53:36 AM:   build:
10:53:36 AM:     command: rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh
10:53:36 AM:     commandOrigin: config
10:53:36 AM:     environment:
10:53:36 AM:       - LANDING_BUTTON
10:53:36 AM:       - LANDING_DESCRIPTION

First one seems obvious, but I'm unsure what the second one is about. Can you help?

The first error is just a warning, does not affect the build process. The second one seems to suggets that you have an index.md at your vault root. It is mentioned in the Gotchas section that files named index.md are not allowed. Please consider renaming it and update your LANDING_PAGE setting.

Please reopen if issue persists

Confirming that this worked. Renaming "index" to something else helped. Thanks for the quick response!