Giter Club home page Giter Club logo

linkclass's People

Contributors

aviskase avatar botpub avatar justinmayer avatar lucas-c avatar pre-commit-ci[bot] avatar rlaboiss avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

linkclass's Issues

Convert and release as namespace plugin

This issue tracks the conversion of Link Class to a namespace plugin.

  • convert to namespace plugin filesystem layout
  • ensure existing test suite passes
  • apply community code style standards
  • add CI/CD configuration
  • release new version to PyPI

Support for SITEURL links to be recognised as "internal"

Currently, the logic is purely based on whether the link has "https?://" as the string prefix for href. However, there are quite a few sites that use SITEURL Pelican setting to define the full URL for the generated internal links (this is mostly needed to support things like the sitemap plugin and others). When SITEURL is defined, this plugin would mark all links as external, which kind of renders it useless in these configurations.

Not detecting external named links

For example, this markdown:

This is an [external link][my_url].

[my_url]: https://github.com/rlaboiss/pelican-linkclass/

The URL is external, but it doesn't get tagged as such.

Plugin is not importable

Hi all,

I am on Ubuntu 22.04 with Python 3.10 and Pip 24.0 and I have installed pelican-linkclass (python3 -m pip install --user pelican-linkclass) but it is not importable.

In an interpreter, this causes an ImportError:

from pelican.plugins import linkclass

whereas it works for the plugin search for example.

The distribution info of the plugin is sitting in ~/.local/lib/python3.10/site-packages with name pelican_linkclass-2.1.3.dist-info alongside other namespace plugins such as search and similar-posts which can be imported normally.
However, contrary to these other plugins, it is not present in the subdirectory pelican/plugins/. Accordingly, when running pelican -D, we see that it does not discover it in the namespace plugins.

What's causing this? One difference I see is that packaging was done with pdm for linkclass, whereas other plugins were packaged with poetry.

At the moment I have to clone this repository and manually copy the proper folder into the pelican installation to make it work.

Thanks a lot for your help.

PyPI packaging

Hi! What do you think about making this plugin available through PyPI?

Or, if you don't want to, are you ok with me publishing it?

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.