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

How to set template (.css, syntax/.css)? #17

Open
GerdWiegand opened this issue Jun 16, 2017 · 2 comments
Open

How to set template (.css, syntax/.css)? #17

GerdWiegand opened this issue Jun 16, 2017 · 2 comments

Comments

@GerdWiegand
Copy link

I'm working on Ubuntu. The Webpage is shown, but only mars.css without syntax highlighting is used. Set the template directory to the rhythm.css bundle doesn't change anything.

@gu-fan
Copy link
Owner

gu-fan commented Jun 28, 2017

you may should use .. code:: python directive for syntax highlighting.

dit that works?

@nemo-nullius
Copy link

@GerdPW Hi! Has your problem been solved?

I happen to find that you have to modify /instant_rst/templates/index.html directly if you want to change the style sheet (and add the syntax highlighting as well). You could change the line
<link rel="stylesheet" href="/static/mars.css">
to
<link rel="stylesheet" href="/static/rhythm.css"> to apply the rhythm style sheet,
and add this line
<link rel="stylesheet" href="/static/molokai.css"> to add syntax highlighting.

This works very well on my machine. Please see #18.

May it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants