Skip to content

Commit

Permalink
update conf / css for thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
seungmi committed Sep 25, 2019
1 parent 15079d0 commit 33ff2c5
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 38 deletions.
34 changes: 34 additions & 0 deletions _static/css/my_theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
b,strong{color:rgba(75,145,200,1) !important;}code{padding:4px 8px 1px 8px !important;border:solid 1px rgba(190,190,190,0.7) !important;background-color:rgba(242,243,244,1) !important;}.document a {border-bottom:dotted 1px !important;}

/* ref
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd
*/
kbd {
background-color: #eee;
border-radius: 3px;
border: 1px solid #b4b4b4;
box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
color: #333;
display: inline-block;
font-size: .85em;
font-weight: 700;
line-height: 1;
padding: 2px 4px;
white-space: nowrap;
}

/* Relocate ads at bottom*/
.wy-nav-side .ethical-rtd {
margin-top: 200px;
}

/* custom css */
.prevent-responsive-table td, .prevent-responsive-table th {
white-space: normal !important;
}
.prevent-responsive-table th {
vertical-align: middle;
}
.prevent-responsive-table th p {
margin: 0;
}
31 changes: 19 additions & 12 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import sys, os

sys.path.append(os.path.abspath('.'))
sys.path.append(os.path.abspath('./test_py_module'))
# sys.path.append(os.path.abspath('.'))
# sys.path.append(os.path.abspath('./test_py_module'))

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand All @@ -29,13 +29,14 @@
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
#'sphinx.ext.autodoc',
#'sphinx.ext.mathjax',
#'sphinx.ext.viewcode',
'sphinxcontrib.images',
]

# Math
mathjax_path = "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
# mathjax_path = "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -58,9 +59,9 @@
# built documents.
#
# The short X.Y version.
version = '0.8.6'
version = '2.1'
# The full version, including alpha/beta/rc tags.
release = '0.8.6'
release = '2.1.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -116,9 +117,9 @@
# html_theme_path = ["sphinx_rtd_theme"]

html_context = {
'css_files':[
'//tutorial.iueditor.org/manual/css/my_theme.css',
],
#'css_files':[
# '//tutorial.iueditor.org/manual/css/my_theme.css',
#],
}


Expand All @@ -141,7 +142,13 @@
# 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 = ['manual']
html_static_path = ['_static']

# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = [
'css/my_theme.css',
]

# html_style = 'css/my_theme.css'

Expand Down
28 changes: 2 additions & 26 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,2 @@
alabaster==0.7.12
Babel==2.6.0
certifi==2019.3.9
chardet==3.0.4
colorama==0.4.1
docutils==0.14
idna==2.8
imagesize==1.1.0
Jinja2==2.10.1
MarkupSafe==1.1.1
packaging==19.0
Pygments==2.4.0
pyparsing==2.4.0
pytz==2019.1
requests==2.22.0
six==1.12.0
snowballstemmer==1.2.1
Sphinx==2.0.1
sphinx-rtd-theme==0.4.3
sphinxcontrib-applehelp==1.0.1
sphinxcontrib-devhelp==1.0.1
sphinxcontrib-htmlhelp==1.0.2
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.2
sphinxcontrib-serializinghtml==1.1.3
urllib3==1.25.2
sphinx-rtd-theme>=0.4.3
sphinxcontrib-images>=0.8.0

0 comments on commit 33ff2c5

Please sign in to comment.