I just started using Docfx and set up some basic conceptual documentation. Now I want to make some adjustments to the theme (company logo, perhaps some font changes, etc.) Minor stuff.
The official documentation only gives a high-level description of how to create a new template. I've never used a templating language before, so I'd like to avoid that for now if possible.
My question is: how can I make small adjustments to the default theme, like some CSS changes and perhaps adding external resources (like font awesome)?
Do I have to create an entire template (or a part of it) or can I include a CSS file somehow? The documentation mentions a theme
option but so far I've found no examples or existing themes to learn from.
A mere link to a project that uses a custom theme or template would already be very helpful. The docfx repo has a docfx.website.themes
folder and the default template is also in there I believe, but I couldn't really figure out which files I would have to provide to roll my own.
docfx template export default
, then you'll see default template in_exported_templates\default
styles\head.tmpl.partial
styles\docfx.css
orstyles\main.css
docfx -t _exported_templates\default
, which will use your customized template!