New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proc::Async is generated as Proc/Async #149
Comments
Regardless of what we consider the "true" links (folders vs. package names) - we have links in the wild pointing to the old style, so we need to support them either directly or with a rewrite rule. |
@2colours I'm trying to understand the issue here. Where was the link that Or are you saying that the link to @coke agreed that 'wild' links should be supported by rewrites. We agreed that we would pick up these by looking at web logs that 404. |
we're not going to just rewrite the ones in the 404 log - the log checking was for items where we didn't realize we were missing something - this is a whole class of something that we already knew was missing, now we have a ticket for it. This needs to be fixed soon (it's almost as bad the .html issue) |
Would it be possible to make this issue generic, rather than just related |
@finanalyst I don't know how many similar situations there can be but I see no reason why we switched to " |
One more: https://docs.raku.org/type/IO::Path So yes, to compile my thoughts - I think these "namespaced classes" should just have a flat location in the storage; a |
@2colours There was no switch. I suspect this goes back to I have had all sorts of problems myself with naming because So the pragmatic answer, but possibly not the purest or most elegant answer, is to ensure that routes to eg. A more problematic ask would be to require for all urls within the Documentation system to be to |
URL rewriter will work fine for fixing the website issue - we may have to do something about generating the links to ensure we also work with raku/rakudoc, but that's a separate (not yet created) issue. |
This is a generic issue. That's just a specific example
We're not using htaccess on the new site, see the recent update that just went live for .html changes.
No, this is a specific instance of one of the items in #84. |
This is a common translation - the Proc::Async class is often on disk as Proc/Async.rakumod (it's stored this way in raku/doc source)- As long as we support the original style URL, we don't need to change the build process on the new site. |
@coke I think it should be possible to change all the internal links to eg. |
the caddyshack directive to map the URLs is https://caddyserver.com/docs/caddyfile/directives/uri#uri
Ok, but it seems like that's a lot of work compared to the URL rewriter for this current issue. |
I think for the time being, I would prefer the caddyshack does the mapping. I am unconvinced about making all URLS have |
It's restoring pre-existing URLs - this shouldn't have been broken. |
Oh okay... well, content-wise, I'd be happier if the file structure didn't suggest contradictory connections to the actual content (as we discussed yesterday, the class However, that topic can probably go back to the shelf until the calmer, bikeshedding days. :P |
If an issue, that's a core issue with the class naming, not a doc issue, in my opinion. |
I would prefer that. |
@dontlaugh I don't have an easy way to test a change to the Caddyfile locally, but something like
should allow /type/Proc::Async to work again |
I can look at this tonight. In the meantime, you can do this to test the Caddyfile
Update: Also, if you have the html and static assets compiled locally, you can mount them into the container under /usr/share/caddy, as well. The add command in our container build script packs the assets under that location at buildtime. |
go live only supported /Proc/Async, this restores the old functionality - many links to the docs depend on this style. Part of #149
go live only supported /Proc/Async, this restores the old functionality - many links to the docs depend on this style. Part of #149
Fixed in main, will be available in https://docs-dev.raku.org/ within 30m |
https://docs-dev.raku.org/type/Proc::Async works. Will deploy to prod shortly. |
The documentation of the Proc::Async class used to have a Proc::Async link; now it has a folder-like structure, hence breaking the link.
I don't think it should have a folder-like nature in the first place; it's really just the name of the class. My bet is that this is a content generation problem rather than a link problem.
The text was updated successfully, but these errors were encountered: