Skip to content

loadSidebar: true doesn't work well when script src doesn't contain docsify. #860

Description

@L3au

Bug Report

Steps to reproduce

I create a bug showcase as below to reproduce this.

https://l3au.github.io/assets/docsify/

What is current behavior

loadSidebar: true config doesn't work

What is the expected behavior

Make it work even when the script url doesn't contain docsify. by the following ways

  • fix document.currentScript using
  • improve config fields coercion

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: macOS Mojave 10.14.5

  • Node.js version: v10.15.3

  • npm/yarn version: npm 6.4.1

  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

  • Docsify version: 4.9.4

  • Docsify plugins: none

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions