sphinx-bootstrap-theme icon indicating copy to clipboard operation
sphinx-bootstrap-theme copied to clipboard

Change default font to Arial

Open ShubhamRathi opened this issue 7 years ago • 5 comments

I need to change the default font to Arial. I'm using the 'Journal' Theme

How do I do it? My project is here

ShubhamRathi avatar Mar 15 '17 19:03 ShubhamRathi

Hi @ShubhamRathi -- Here's a guide to adding extra CSS files: https://github.com/ryan-roemer/sphinx-bootstrap-theme#adding-custom-css

ryan-roemer avatar Mar 15 '17 19:03 ryan-roemer

Works perfect @ryan-roemer ! A question connected to this: I'm also adding a custom sidebar. See code here.

I want this sidebar to show up on all pages except index. Any ideas for this please?

ShubhamRathi avatar Mar 16 '17 19:03 ShubhamRathi

@ShubhamRathi -- Not sure. That's more of a "sphinx" general thing than a "sphinx bootstrap theme" thing. Perhaps the official sphinx docs can help you?

Maybe something like overriding a root template and seeing if metadata has the page path so you can do something different for index.html? (No idea if that's possible -- just guessing as to what it would look like in basic sphinx if it does)

ryan-roemer avatar Mar 22 '17 20:03 ryan-roemer

AH. Okay! Thanks for the start.

ShubhamRathi avatar Mar 23 '17 18:03 ShubhamRathi

@ShubhamRathi did you ever get the exclusion of index working? If so, would you be willing to share the code here for other users?

svenevs avatar Mar 09 '18 18:03 svenevs