8000 GitHub organization URL in `repo_url` generate Javascript error · Issue #337 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

GitHub organization URL in repo_url generate Javascript error #337

@kcgthb

Description

@kcgthb

Description

I'm not 100% sure if that one is on MkDocs or MkDocs-Material side, but when using a GitHub organization URL for repo_url in mkdocs.yml (such as https://github.com/orgname) instead of the regular project URL (https://github.com/user/project), the following JavaScript exception is generated:

application-6b4ff16fa7.js:3 Uncaught TypeError: Invalid attempt to destructure non-iterable instance
    at application-6b4ff16fa7.js:3
    at new t (application-6b4ff16fa7.js:3)
    at application-6b4ff16fa7.js:1
    at Object.r (application-6b4ff16fa7.js:1)
    at (index):662

Expected behavior

No javascript error

Actual behavior

JS exception

Steps to reproduce the bug

  1. Clone the mkdocs-material repo
  2. edit mkdocs.yml and replace the repo_url value by https://github.com/orgname
  3. yarn run start and look at the browser console

Package versions

  • Python: python --version: Python 2.7.13
  • MkDocs: mkdocs --version: mkdocs, version 0.16.3
  • Material: pip show mkdocs-material | grep -E ^Version: master

Project configuration

https://github.com/squidfunk/mkdocs-material/blob/master/mkdocs.yml

System information

  • OS: Debian 9.0
  • Browser: Chrome 58

Metadata

Metadata

Assignees

Labels

bugIssue reports a bug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0