Guest User

Untitled

a guest
Mar 23rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. .wy-nav-content {
  2. max-width: none;
  3. }
  4.  
  5. .wy-nav-content {
  6. max-width: 1200px !important;
  7. }
  8.  
  9. # Add any paths that contain custom static files (such as style sheets) here,
  10. # relative to this directory. They are copied after the builtin static files,
  11. # so a file named "default.css" will overwrite the builtin "default.css".
  12. html_static_path = ['_static']
  13.  
  14. {% extends "!layout.html" %}
  15. {% block extrahead %}
  16. <link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css">
  17. {% endblock %}
  18.  
  19. html_static_path = ['custom'] # Directory for static files.
  20.  
  21. html_style = 'css/my_theme.css' # Choosing my custom theme.
  22.  
  23. html_style = 'css/my_theme.css'
  24.  
  25. on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  26.  
  27. if not on_rtd: # only import and set the theme if we're building docs locally
  28. import sphinx_rtd_theme
  29. html_theme = 'sphinx_rtd_theme'
  30. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  31. html_style = 'css/custom.css'
  32. else:
  33. html_context = {
  34. 'css_files': [
  35. 'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
  36. 'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
  37. '_static/css/custom.css',
  38. ],
  39. }
  40.  
  41. def setup(app):
  42. app.add_stylesheet('my_theme.css')
  43.  
  44. .wy-nav-content {
  45. max-width: 1200px !important;
  46. }
  47.  
  48. .wy-nav-content {
  49. padding: 1.618em 3.236em;
  50. height: 100%;
  51. /* max-width: 800px; */
  52. margin: auto;
  53. }
Add Comment
Please, Sign In to add comment