Open NullVoxPopuli opened 1 year ago
Looks like the same issue as in https://github.com/cloudflare/wrangler2/issues/2240
Temporary solution: https://github.com/cloudflare/wrangler2/issues/2240#issuecomment-1343406897
Wow, cloudflare, talk about a terrible design decision...
I encountered this today, and unfortunately it seems like the workaround is not working 😞
Temporary solution: cloudflare/workers-sdk#2240 (comment)
I adapted it to work specifically for typedoc:
typedoc && mv docs/functions docs/funcs && find docs -name '*.html' -exec sed -i '' -E 's:(href="[^"]*)functions:\1funcs:g' {} +
With the above in place it works fine when JS is disabled, but typedoc generates links via JS when enabled using the gzip encoded data in window.navigationData
. This data isn't easily modified via sed
, so I'm currently stuck without any viable workaround other than perhaps manually patching the typedoc codebase 😬
I made a custom theme that overrides the default mappings and outputs to different directories, you can see an example in:
And here is how it works: https://typescript-esbuild.nikolahristov.tech/Function/Build.Build
This is hosted on Cloudflare Pages, so no issues there. That's the output of the file structure:
Search terms
Cloudflare pages
Expected Behavior
Visiting a link for a
function
worksActual Behavior
Cloudflare pages reverts to the
/index.html
because/functions
is used for Cloudflare-specific stuff.Steps to reproduce the bug
function
on any of the docs pages.Example:
I have this output:
Which is deployed to: ember-resources.pages.dev/ On any page, such as: https://ember-resources.pages.dev/modules/util_cell I click the available
functions
, such as: https://ember-resources.pages.dev/functions/util_cell.cell.html, but I am redirected to a poorly rendered version of https://ember-resources.pages.devMy config:
Environment
I guess, what I'd like to see is a way to have customization over the file/folder structure. Maybe functions can be nested under their modules?