Comments (13)
Make it so :)
from html-build.
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.
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.
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.
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.
What relies on .htaccess
, exactly?
from html-build.
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.
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.
Yeah, that sounds like a reasonable plan. Just requires knowledge of wattsi internals to implement :)
from html-build.
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.
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.
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.
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)
- Update highlighter once it updates widlparser
- Build does not fail on invalid Web IDL HOT 5
- Review Drafts have MDN in them; they should not HOT 2
- --password warning HOT 2
- MDN boxes sometimes have multiple entries for the same browser HOT 3
- Remove caniuse boxes in favor of MDN compat data boxes? HOT 9
- Build failing, potentially Python? HOT 2
- Migrate to Python 3 HOT 2
- Use Docker Hub pdfsizeopt instead of downloading from GitHub
- Document why macOS cannot do HTTP/2 by default HOT 2
- Consider a "fast mode" for local iteration HOT 3
- .pre-process-main.pl can be simplified or rolled into Wattsi HOT 2
- Add service worker support
- html-build repo is missing License text file
- "Improvements to the CI Docker build" broken PDF links HOT 1
- `.cache` folder is not created by `build.sh` HOT 1
- Docker build fails on M1 MacBook HOT 5
- Build failing locally when trying to send to server HOT 1
- Local build doesn't catch HTML parsing errors
- Automatically generate bibliography entries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-build.