Coder Social home page Coder Social logo

Comments (15)

doktorbro avatar doktorbro commented on July 17, 2024

I judged too fast. Everything works as expected. We should improve the message anyway.

from html-proofer.

lurch avatar lurch commented on July 17, 2024

More details:
I had expected the directory_index_file option to fix the "./_build/linux/usage/commands.md: internally linking to ../../remote-access/ssh/, which does not exist" error of https://travis-ci.org/raspberrypi/documentation/builds/33684029 since linux/usage/commands.md indeed has a link like [SSH (secure shell)](../../remote-access/ssh/)
(which is why my commit-comment was "Attempt to fix one of the Travis build errors")

But I was very surprised that it also fixed the "./_build/configuration/raspi-config.md: internally linking to , which does not exist" errors, which seem to be caused by e.g. <a name="usage"></a> (configuration/raspi-config.md contains 19 named anchors, and the "raspi-config.md: internally linking to ," error appears 19 times).

Perhaps adding the directory_index_file option somehow 'masks' the named-anchor bug? (obviously if linux/usage/commands.md had instead linked directly to ../../remote-access/ssh/README.md I would never have added that option in the first place!)

from html-proofer.

doktorbro avatar doktorbro commented on July 17, 2024

@lurch The use of the name attribute for anchors is deprecated. You should use the id attribute. Can you switch to id and try again?

from html-proofer.

lurch avatar lurch commented on July 17, 2024

Unlikely to happen - it's the 'recommended' way of doing it according to https://github.com/raspberrypilearning/creating-resources/blob/master/markdown.md#anchors
They may be 'deprecated' but they're used all over the place on both https://github.com/raspberrypi/documentation and on https://github.com/raspberrypilearning/

You're welcome to raise it as an issue at https://github.com/raspberrypi/documentation/issues but given the amount of documentation and resources that have already been written you'd be unlikely to get very far IMHO.

from html-proofer.

doktorbro avatar doktorbro commented on July 17, 2024

@lurch Thank you for the great report. The placeholder issue should be fixed in #107.

from html-proofer.

lurch avatar lurch commented on July 17, 2024

That's great to hear :)
Just out of curiosity, did you manage to figure out how / why enabling directory_index_file masked the named-anchor errors?

from html-proofer.

doktorbro avatar doktorbro commented on July 17, 2024

@lurch No, I had no time for deeper analysis.

from html-proofer.

lurch avatar lurch commented on July 17, 2024

Thanks for fixing the issues so promptly!
Let me know when the next version of html-proofer is released, and I can force a Travis-rebuild of raspberrypi/documentation to check that it still works with the new version :)

from html-proofer.

gjtorikian avatar gjtorikian commented on July 17, 2024

It's bumped now to 1.3.3.

from html-proofer.

lurch avatar lurch commented on July 17, 2024

A forced-rebuild of https://travis-ci.org/raspberrypi/documentation/builds/33774245 works absolutely fine with html-proofer 1.3.3 :-)

from html-proofer.

gjtorikian avatar gjtorikian commented on July 17, 2024

Phew, glad it worked!

Also: super stoked RaspberryPi is using this: https://twitter.com/gjtorikian/status/494546083666604032

from html-proofer.

doktorbro avatar doktorbro commented on July 17, 2024

Fantastic.

from html-proofer.

envygeeks avatar envygeeks commented on July 17, 2024

I get this problem when the link doesn't have a "/" at the end to a full domain. I don't think that's how it should work, unless I am missing something, but since the browser handles that problem, it shouldn't be enforced.

from html-proofer.

envygeeks avatar envygeeks commented on July 17, 2024

The reason I think it shouldn't work this way is because the only way to normalize URL's is with Ruby (in Jekyll) and of course I can in my own plugin, but within another authors plugin this becomes a PITA see:

- site/2013/06/24/mocking-activerecord-to-test-concerns.html
  *  internally linking to https://envygeeks.io//, which does not exist (line 79)
     <a href="https://envygeeks.io//">Jordon Bedwell</a>
    <p class="author">
      <a href="{{ post.stat.author.website }}/">
        {{ post.stat.author.name }}
      </a>
    </p>

It becomes even more strenuous when dealing with data from another domain.

from html-proofer.

envygeeks avatar envygeeks commented on July 17, 2024

To add, I guess this could be a mixture of internal_domains and otherwise.

from html-proofer.

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.