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

Change font for docs currently in github pages? #33

Open
jessebot opened this issue Oct 22, 2022 · 3 comments
Open

Change font for docs currently in github pages? #33

jessebot opened this issue Oct 22, 2022 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed 📓 docs things to do with documentation

Comments

@jessebot
Copy link
Owner

jessebot commented Oct 22, 2022

powerline fonts broken in some places in docs.

Goal: have nerdfonts in docs so we can have pretty icons.

Feature-bug. it's a maybe easy thing to do 🤷

@jessebot jessebot added bug Something isn't working enhancement New feature or request labels Oct 22, 2022
@jessebot
Copy link
Owner Author

this is elusive and although the justthedocs docs say:

For styles that aren’t defined as variables, you may want to modify specific CSS classes. Additionally, you may want to add completely custom CSS specific to your content. To do this, put your styles in the file _sass/custom/custom.scss. This will allow for all overrides to be kept in a single file, and for any upstream changes to still be applied.

This still isn't working. The file below is in ./onboardme/docs/_sass/custom/custom.scss:

@font-face {
  font-family: "mononoki";
  src: url("../../fonts/mononoki-Regular-Nerd-Font-Complete.ttf");
}

$mono-font-family: mononoki, consolas, monospace;

And the font is in: /onboardme/docs/fonts/mononoki-Regular-Nerd-Font-Complete.ttf. Unsure why this is not working though 🤔

@jessebot jessebot added help wanted Extra attention is needed and removed enhancement New feature or request labels Oct 24, 2022
@jessebot
Copy link
Owner Author

I found this stackoverflow page:
https://stackoverflow.com/questions/35718750/adding-custom-fonts-to-github-pages

and so I am trying to do this instead: 4438db6 :

  @font-face {
    font-family: "mononoki";
    src: url("../../onboardme/docs/fonts/mononoki-Regular-Nerd-Font-Complete.ttf") format('truetype');
  }

🤷

@jessebot jessebot self-assigned this Oct 24, 2022
@jessebot jessebot added the 📓 docs things to do with documentation label Nov 26, 2022
@jessebot
Copy link
Owner Author

github put out another blog post about this, so maybe it's easier now:
https://github.blog/2022-12-02-introducing-mona-sans-and-hubot-sans/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed 📓 docs things to do with documentation
Projects
None yet
Development

No branches or pull requests

1 participant