-
Notifications
You must be signed in to change notification settings - Fork 690
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
Support for custom output directory structure #2111
Comments
Looks like the same issue as in cloudflare/workers-sdk#2240 |
Temporary solution: |
Wow, cloudflare, talk about a terrible design decision... |
/functions
folder.
I encountered this today, and unfortunately it seems like the workaround is not working 😞
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 typedoc/src/lib/output/themes/default/assets/typedoc/Navigation.ts Lines 30 to 34 in f2d2abe
|
I made a custom theme that overrides the default mappings and outputs to different directories, you can see an example in: https://github.com/NikolaRHristov/TypeScriptESBuild/blob/main/Source/Variable/Load.ts 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?
The text was updated successfully, but these errors were encountered: