Skip to content
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

[Bug] ApiPage.html.primary.js from the modern template doesn't seem to be used #10306

Open
KubaZ2 opened this issue Oct 20, 2024 · 0 comments
Open
Labels
bug A bug to fix template The stock site template

Comments

@KubaZ2
Copy link
Contributor

KubaZ2 commented Oct 20, 2024

I am trying to add canonical link to my website that is generated by docfx. It should be easy with _path defined by docfx, but I would like the canonical link to be for example https://example.com/ instead of https://example.com/index.html, because my server is configured to redirect ./index.html to ./. I noticed that ApiPage.html.primary.js as well as other similar files I have created are never used when building using docfx with this template.

To Reproduce

  1. Clone https://github.com/NetCordDev/NetCord
  2. Edit https://github.com/NetCordDev/NetCord/blob/alpha/Documentation/templates-src/NetCord/ApiPage.html.primary.js
  3. Notice the file doesn't change anything

I use docfx 2.75.3 but 2.77.0 doesn't seem to fix this. The template's source comes from docfx 2.75.3.

@KubaZ2 KubaZ2 added bug A bug to fix template The stock site template labels Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix template The stock site template
Projects
None yet
Development

No branches or pull requests

1 participant