MithrilJS / docs

Source code for Mithril's documentation site
https://mithril.js.org
MIT License
1 stars 4 forks source link

broken links #29

Open slowkow opened 3 days ago

slowkow commented 3 days ago

Is there an existing issue for this?

Offending URL

https://mithril.js.org/examples.html

Issue description

I was exploring Mithril today, and I tried following some of the links in the documentation pages. Unfortunately, I hit a lot of 404 errors. So, I wanted to let you know about them here.

On the Examples page (https://mithril.js.org/examples.html), these links are broken (404):

https://mithril.js.org/examples.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/animation/mosaic.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/dbmonster/mithril/index.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/editor/index.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/svg/clock.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/svg/ring.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/svg/tiger.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/threaditjs/index.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/todomvc/index.html

The link to Tic Tac Toe is broken, and it takes me here: https://flems.io/


On the Framework comparison page (https://mithril.js.org/framework-comparison.html), these links are broken (404):

https://mithril.js.org/framework-comparison.html
        404     https://mithril.js.org/request.md#file-uploads
        404     https://mithril.js.org/route.md#authentication
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/dbmonster/angular/index.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/dbmonster/mithril/index.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/dbmonster/react/index.html
        404     https://raw.githack.com/MithrilJS/mithril.js/master/examples/dbmonster/vue/index.html

Here is a much longer list of 404 errors all over the documentation website:

mithril.js.org.txt

dead-claudia commented 3 days ago

Notes for later:

dead-claudia commented 3 days ago

Further fixes are invited, of course.

dead-claudia commented 3 days ago

Fixed all the non-archive links to markdown pages with anchors.

dead-claudia commented 3 days ago

Note: the archives are low-priority, and will probably need a large scripted fix as they're just all compiled HTML.

dead-claudia commented 2 days ago

@slowkow Could you re-run your scripts and separate their outputs into archive/ and non-archive/?

Everything except the Flems links should be fixed, though admittedly the list is awkward to go through on mobile.

slowkow commented 13 hours ago

@dead-claudia Thank you so much for the quick fix!

I ran muffet again with --exclude archive and this is the result I see now:

https://mithril.js.org/keys.html
        id #linking-model-data-to-views not found       https://mithril.js.org/keys.html#linking-model-data-to-views
https://mithril.js.org/animation.html
        403     https://greensock.com/gsap
https://mithril.js.org/framework-comparison.html
        id #authentication not found    https://mithril.js.org/route.html#authentication
https://mithril.js.org/route.html
        id #The_pushState()_method not found    https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState%28%29_method
        id #reinitializing-views-with-single-child-keyed-fragments not found    https://mithril.js.org/route.html#reinitializing-views-with-single-child-keyed-fragments
https://mithril.js.org/examples/dbmonster/vue/index.html
        404     https://vuejs.org/js/vue.min.js
https://mithril.js.org/examples/dbmonster/angular/index.html
        404     https://code.angularjs.org/2.0.0-beta.17/Rx.umd.js
        404     https://code.angularjs.org/2.0.0-beta.17/angular2-all.umd.js
        404     https://code.angularjs.org/2.0.0-beta.17/angular2-polyfills.js
        404     https://mithril.js.org/examples/dbmonster/lib/bootstrap.min.css
https://mithril.js.org/signatures.html
        id #mrouteset not found https://mithril.js.org/signatures.html#mrouteset
https://mithril.js.org/stream.html
        id #combiner not found  https://mithril.js.org/stream.html#combiner
        id #either-type not found       https://github.com/sanctuary-js/sanctuary#either-type
        id #functor not found   https://github.com/fantasyland/fantasy-land#functor
        id #lifter not found    https://mithril.js.org/stream.html#lifter
        id #stream-combine not found    https://mithril.js.org/stream.html#stream-combine
        id #stream-lift not found       https://mithril.js.org/stream.html#stream-lift
        id #streamfantasy-landof-1 not found    https://mithril.js.org/stream.html#streamfantasy-landof-1
https://mithril.js.org/examples/threaditjs/index.html
        lookup threaditjs.com on 127.0.0.53:53: server misbehaving      https://threaditjs.com/reset.css
        lookup threaditjs.com on 127.0.0.53:53: server misbehaving      https://threaditjs.com/shared.css
        lookup threaditjs.com on 127.0.0.53:53: server misbehaving      https://threaditjs.com/shared.js
slowkow commented 13 hours ago

Here is an attachment that includes about 2000 or so broken archive links:

mithril.js.org.txt

dead-claudia commented 12 hours ago

Okay, I'll go ahead and state that the ThreaditJS example won't be fixed right away. Once I get another chance, I'll resolve the other links in that non-archive list.

Note to whoever fixes it: