dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.09k stars 867 forks source link

[Bug] Custom template doesn't load #10378

Open sonomirco opened 1 week ago

sonomirco commented 1 week ago

Describe the bug Just tried this simple step. https://dotnet.github.io/docfx/docs/template.html?tabs=modern#custom-template

To Reproduce Under the docs folder, I have created a folder called aecom-template. Added to the docfx.json file

    "template": [
      "default",
      "modern",
      "aecom-template"
    ],

Used the main.css and main.js as documentation, but nothing happened. I don't have the GitHub logo, and no colour is changed.

Expected behavior I am expected to see the GitHub logo and the same green colour you have on your website, adding those steps.

Context (please complete the following information):

mxcolin commented 4 days ago

Same here, followed the documentation as specified and it does nothing at all, no changes are observed.

filzrev commented 4 days ago

I've tested on my environment. And it seem works as expected. (After Ctrl+F5 browser refresh)

Is it able to test by temporary disabling browse caching

mxcolin commented 4 days ago

Yeah, that was it. Disabling the browser cache did the trick. Thanks!!!