Open Wohlstand opened 4 years ago
There doesn't seem be a README.md
which it was trying to load in your repo? What's the error shown in your devtools?
A minimal reproduction would help, you can create one with https://codesandbox.io
Hello! It's a minimal example: docute-issue282-sample.zip
I had to store all pre-built dependencies at the _lib
folder and re-using it locally.
It works if it stored on a web server and accessed via HTTP(S), however, when I opening "ko.html" from a local file system directly (accessed via file://
), pages showing blank.
In Firefox's console here is no output. Before a moment, I had error against CORS request, however when I had to set the "no-cors", an error has gone, however, no content shown...
AHA! in Yandex-Browser I got the next error:
Fetch API cannot load file:///..../README.md. URL scheme "file" is not supported.
How my example works when it's opened locally without any sort of web server:
Ping?
Hello!
I have documentation for my project at this repository that I gradually porting from a raw HTML into Docute: https://github.com/WohlSoft/PGE-Editor-Help/tree/docute
However, since some moment it no more works locally and it showing blank pages... (no idea how it worked before, maybe after Firefox 68 release).
I did an attempt to disable CORS:
however, it now showing just blank files. The source path I use just "./".![Снимок экрана_2020-05-06_02-35-32](https://user-images.githubusercontent.com/6751442/81126014-a5c53600-8f42-11ea-9532-af3781348f42.png)
How I did use this?
npm install
, and thennpm run-script build
at repository root.index.js
I had to declare the documentation tree itself:new Docute({ target: '#docute', title: 'Moondust Editor - Documentation', sourcePath: docuteSourceRoot, darkThemeToggler: true, fetchOptions: { mode: 'no-cors', }, detectSystemDarkTheme: true, highlight: ['typescript', 'bash'], editLinkBase: 'https://github.com/WohlSoft/PGE-Editor-Help/edit/master/', editLinkText: 'Edit this page on GitHub', sidebar: [ { title: 'Main', children: [ { title: 'Intro', link: '/' } ] } });