From e178068cf2af2194bc845777e16e42e79f5cdf4b Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Wed, 3 Mar 2021 07:52:10 +0800 Subject: [PATCH] Increase content width --- source/_static/my_style.css | 3 +++ source/conf.py | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 source/_static/my_style.css diff --git a/source/_static/my_style.css b/source/_static/my_style.css new file mode 100644 index 00000000..8aa6c288 --- /dev/null +++ b/source/_static/my_style.css @@ -0,0 +1,3 @@ +.wy-nav-content { + max-width: 1200px !important; +} diff --git a/source/conf.py b/source/conf.py index 05ac0bab..b2d1df5a 100644 --- a/source/conf.py +++ b/source/conf.py @@ -65,11 +65,12 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -# html_static_path = ['_static'] +html_static_path = ['_static'] -# html_css_files = [ -# 'dracula.css', -# ] +html_css_files = [ + 'my_style.css', + #'dracula.css', +] from pygments.lexer import RegexLexer from pygments import token @@ -115,4 +116,4 @@ class RVLexer(RegexLexer): ], } -lexers['riscv'] = RVLexer() \ No newline at end of file +lexers['riscv'] = RVLexer()