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

Adding highlight code and katex to initialisation #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

steinerAdi
Copy link

Initial Situation

The sphinx extension does not enabling the code highlight script and the katex math parser.
To enable them, they must be manually enabled in the conf file of the users website.

New Features

With these changes, the user can enabling and set the path to the js file in the conf file without adding own js code or adding the script file and the initialization by him.
The new configuration variable are:

  • highlight_code: False => Boolean to enable or disable the highlight code
  • highlight_code_js: '' => Path string to manual link to the js file
  • katex_math : False =>Boolean to enable or disable katex math parser
  • katex_math_js: '' => Path string to manual link to the js file

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

Successfully merging this pull request may close these issues.

1 participant