Code Monkey home page Code Monkey logo

Comments (6)

GenevieveBuckley avatar GenevieveBuckley commented on June 30, 2024

Oh noooo 😢

from magicgui.

GenevieveBuckley avatar GenevieveBuckley commented on June 30, 2024

I looked at this problem more today.

  1. I have a PR open to fix the immediate issue in this repository #587
  2. I tried figuring out the root cause of the issue, but wasn't able to reproduce it with a more minimal example repository.

See here for the example repository: https://github.com/GenevieveBuckley/test-mkdocs-links
Running mkdocs serve on that doesn't break the hyperlink in the same way we saw here in magicgui.

I originally thought there might be some bad interaction between the mkdocstrings and mkdocs-gallery plugins, but I didn't see that happening here. It's possible there is some sort of funky interaction going on when you make the configuration file more complicated & add more plugins (or add python gallery example scripts, or scripts involving pyqt, etc., etc.). I wonder if it's possibly the gallery_conf.py file, too?

I don't have any more time to dedicate to this, but wanted to share what I had anyway.

from magicgui.

tlambert03 avatar tlambert03 commented on June 30, 2024

Thanks so much @GenevieveBuckley, I appreciate you taking a look and the minimal repo is very useful.

I'll take it from here and see what I can figure out

from magicgui.

tlambert03 avatar tlambert03 commented on June 30, 2024

ok, I was able to determine that this isn't an issue with mkdocs-gallery per se, but rather the addition of pymdownx.inlinehilite to the markdown_extensions (which mkdocs gallery does implicitly). That breaks mkdocs-autorefs when using code backticks

With this mkdocs config:

site_name: My Docs
markdown_extensions:
  - pymdownx.inlinehilite
plugins:
  - mkdocstrings

I can reproduce the issue on a tiny little docs site:

This breaks:

# Welcome to MkDocs

[`thing.MyClass`][]

::: thing.MyClass

whereas using [thing.MyClass][] works fine.

from magicgui.

tlambert03 avatar tlambert03 commented on June 30, 2024

related issue on autorefs here: mkdocstrings/autorefs#34

from magicgui.

GenevieveBuckley avatar GenevieveBuckley commented on June 30, 2024

You narrowed that down impressively fast, nice work!

from magicgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.