Code Monkey home page Code Monkey logo

Comments (13)

foolip avatar foolip commented on June 10, 2024

Make it so :)

from html-build.

domenic avatar domenic commented on June 10, 2024

The problem with this, for images and link-fixup.js, is that they break local viewing of the multipage spec without a .htaccess-respecting server. That seems kind of sad.

from html-build.

annevk avatar annevk commented on June 10, 2024

Can Wattsi be tweaked to generate the appropriate links? We could also fiddle with one of the Perl scripts, although my understanding is that Wattsi is supposed to replace them.

from html-build.

domenic avatar domenic commented on June 10, 2024

I don't understand what that would accomplish? The links still exist either way; the duplicates still end up on the server.

from html-build.

domenic avatar domenic commented on June 10, 2024

Oh you mean <a> links.

Yeah that would work, if we were OK with ../images/..... etc. Links like /images/... would kind of work; they would require mounting a HTTP server locally, but that's pretty reasonable. It's the specific requirement of Apache that is less so.

from html-build.

annevk avatar annevk commented on June 10, 2024

What relies on .htaccess, exactly?

from html-build.

domenic avatar domenic commented on June 10, 2024

I might have been skipping some steps.

If we only have images at top-level, then I'd assumed we'd install 301s for multipage/images/* to images/*. In which case to view the multipage spec with images locally, you'd need a server that understands .htaccess to implement the 301s.

from html-build.

annevk avatar annevk commented on June 10, 2024

We'd also update the links. So you'd only need that if you have an old copy of multipage. We wouldn't want to have outgoing links that always redirect.

from html-build.

domenic avatar domenic commented on June 10, 2024

Yeah, that sounds like a reasonable plan. Just requires knowledge of wattsi internals to implement :)

from html-build.

sideshowbarker avatar sideshowbarker commented on June 10, 2024

Yeah, that sounds like a reasonable plan. Just requires knowledge of wattsi internals to implement :)

I’m happy to work on updating the wattsi source to implement it (once I’ve actually read and understand what the specific behavior/requirement is here)

from html-build.

annevk avatar annevk commented on June 10, 2024

My plan is to wait for whatwg/wattsi#4 to land and then fix this using path-absolute URLs.

@sideshowbarker could then create a follow-up fix to Wattsi if desired that rewrites all path-absolute URLs to path-relative URLs for both / and /multipage/ so you don't need to have them in root.

from html-build.

annevk avatar annevk commented on June 10, 2024

whatwg/html#463 addresses images and entities.json. I think link-fixup.js would require changes to wattsi. If we want to keep local viewing working @sideshowbarker would have to update wattsi to do URL rewriting similar to what was removed in whatwg/wattsi#4 (dropping the leading "/" for single and adding leading ".." for multipage I suppose).

from html-build.

annevk avatar annevk commented on June 10, 2024

Removing link-fixup.js would require adding a "/" to https://github.com/whatwg/wattsi/blob/master/src/wattsi.pas#L1637 and https://github.com/whatwg/html/blob/master/link-fixup.js#L10.

from html-build.

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.