requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Ignoring non .md files? #152

Open cloudwheels opened 5 years ago

cloudwheels commented 5 years ago

Actual behavior

Adding files without an .md extension directly to the repo initially allows synchronisation with gitlab. At some point the data reloads and "All Files" menu is not available until non-md files are removed.

Expected behavior

The system seems to cope ok with the existence of non .md files and sync fine: the (re) initialisation process shouldn't break this, just ignore the files without an .md extension, or have some kind of .ignore file to specify this

Steps to reproduce the behavior

Use case is that files in the repo are being published using stack edit, which creates a config in the repo.

I'm aware there's a big re-write to v2, so don't want to get too into the code for this version if there's a dirty hack I could use for now ;)

cloudwheels commented 5 years ago

@NGPixel Apologies for mis-posting and grateful for any pointers. It should be easy enough to reproduce but if you need more from me please do ask (don't quite have the headspace to debug my way through it right now!)

Separately (and therefore mis-posted also ;)) I'm using the Heroku template and found the mLab add-on meant I was being asked for credit card validation (sure it didn't before), so my fork at https://github.com/cloudwheels/wiki-heroku is modified to allow adding the Mongo connection string to the ENV vars (having set up an mLab instance separately) and avoid this. Might be useful to others: happy to create an issue around it, push as a branch etc if you agree?

Kind regards and thanks for your attention.