Skip to content

Commit

Permalink
update copyright; update css style
Browse files Browse the repository at this point in the history
  • Loading branch information
airaria committed Mar 23, 2020
1 parent d0eeeb2 commit 4d31ef3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.wy-side-nav-search{ background-color: rgba(47, 85, 153, 0.69) }

.wy-side-nav-search > div.version {
color:rgba(255, 255, 255, 0.5)
}

20 changes: 16 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@
import os
import sys
sys.path.insert(0, os.path.abspath('../../src'))

from textbrewer import __version__

# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------

project = 'TextBrewer'
copyright = '2020, Ziqing Yang'
author = 'Ziqing Yang'
author = 'Joint Laboratory of HIT and iFLYTEK Research (HFL)'
copyright = '2020, '+author

# The full version, including alpha/beta/rc tags
version = '0.1.8'
release = '0.1.8'
version = __version__
release = __version__


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -56,7 +59,16 @@
#html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'

html_theme_options = {
'logo_only': True,
#'style_nav_header_background' :'#EEEEEE'
}
html_logo = '../../pics/nav_banner.png'

# 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']

def setup(app):
app.add_stylesheet('css/custom.css')

0 comments on commit 4d31ef3

Please sign in to comment.