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

Using a different font #973

Closed
Datseris opened this issue Feb 27, 2019 · 2 comments
Closed

Using a different font #973

Datseris opened this issue Feb 27, 2019 · 2 comments

Comments

@Datseris
Copy link
Contributor

How can I use a different font, for either the core font or the code font when using Documenter and its default HTML output?

Material+MkDocs seems to offer a quite convenient feature where you can use any font offered by Google Fonts. For example, in some other documentations I've built using the Markdown output, I can put in my mkdocs.yml:

theme:
  name: 'material'
  palette:
    primary: 'deep purple'
    accent: 'teal'
  font:
    text: 'Montserrat'
    code: 'Source Code Pro'

and it will use different fonts.

Is it at all possible to change the default font? The current documentation seems to say no: https://juliadocs.github.io/Documenter.jl/stable/search/?q=font

Would be cool if you allowed a keyword font to makedocs.

@mortenpi
Copy link
Member

Currently you have to override the CSS file and add the Google Fonts by as an asset to HTML. But it would be good to make it easier to accomplish this.

@odow
Copy link
Collaborator

odow commented Oct 31, 2023

I'm doing a triage of open documenter issues and closing issues that are stale. If I've made a mistake, please re-open

Closing because custom CSS and some HTML assets seem like a fine work-around. There's no need to add additional complexity to Documenter.

Also a duplicate of #982

@odow odow closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants