Skip to content

Commit

Permalink
Merge branch 'master' into rhs-toc-adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
AakashGfude committed Jun 11, 2021
2 parents 499b061 + 13d5f7a commit 7923265
Show file tree
Hide file tree
Showing 6 changed files with 301 additions and 3 deletions.
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ coverage:
default:
target: 50%
threshold: 0.5%
codecov:
token: a9e66ea7-a5dd-4493-9f88-f68ed898a536
18 changes: 17 additions & 1 deletion quantecon_book_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,23 @@
processEscapes: true,
macros: {
"argmax" : "arg\\,max",
"argmin" : "arg\\,min"
"argmin" : "arg\\,min",
"col" : "col",
"Span" : "span",
"epsilon": "\\varepsilon",
"EE": "\\mathbb{E}",
"PP": "\\mathbb{P}",
"RR": "\\mathbb{R}",
"NN": "\\mathbb{N}",
"ZZ": "\\mathbb{Z}",
"aA": "\\mathcal{A}",
"bB": "\\mathcal{B}",
"cC": "\\mathcal{C}",
"dD": "\\mathcal{D}",
"eE": "\\mathcal{E}",
"fF": "\\mathcal{F}",
"gG": "\\mathcal{G}",
"hH": "\\mathcal{H}",
}
},
svg: {
Expand Down

This file was deleted.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion quantecon_book_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Note: this should only be changed in src/jinja/theme.conf.j2
[theme]
inherit = pydata_sphinx_theme
stylesheet = quantecon-book-theme.39c2426220b434613df45ba3b638aef9.css
stylesheet = quantecon-book-theme.65d43601653b98c1aa3cec965d69e68b.css

[options]
single_page = False
Expand Down
280 changes: 280 additions & 0 deletions src/scss/quantecon-book-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,286 @@ blockquote {
}
}

// Footnotes and Citations
span.brackets, a.brackets {
&:before {
content: "[";
}

&:after {
content: "]";
}
}

.footnote-reference, a.bibtex.internal {
font-size: 1em;
}

// See: https://docutils.sourceforge.io/docs/user/rst/quickref.html#definition-lists
// TODO the field list should be a different format,
// but be wary of issues like https://github.com/pandas-dev/pydata-sphinx-theme/issues/193
dl.simple, dl.field-list {
& dd {
margin-left: 1.5em;
}
& dd:not(:last-child) {
margin-bottom: 0px;
p:last-child {
margin-bottom: 0px;
}
}
}

dl.glossary {
dd {
margin-left: 1.5em;
}
}

dl.footnote {

span.fn-backref {
font-size: 1em;
padding-left:.1em;
}

dd {
font-size:.9em;
margin-left: 3em;
}
}

dl.citation {
margin-left: 3em;
}

dl.footnote {
dt.label {
float: left;
}

dd p {
padding-left: 1.5em;
}
}

// auto-doc, see: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoattribute
// adapted from https://github.com/readthedocs/readthedocs.org/blob/master/readthedocs/core/static/core/css/theme.css
dl.module, dl.class, dl.exception, dl.function, dl.decorator, dl.data, dl.method, dl.attribute {
dt {
.headerlink {
&:before {
-webkit-font-smoothing: antialiased;
font-family: "FontAwesome";
display: inline-block;
font-style: normal;
font-weight: normal;
line-height: 1;
text-decoration: inherit;
}
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: inherit;
visibility: hidden;
font-size: 14px;
&:after {
content: "";
font-family: FontAwesome;
}
}
.fa-pull-left.headerlink {
margin-right: .3em;
}
.fa-pull-right.headerlink {
margin-left: .3em;
}
.pull-left.headerlink {
margin-right: .3em;
}
.pull-right.headerlink {
margin-left: .3em;
}
a {
.headerlink {
display: inline-block;
text-decoration: inherit;
}
}
.btn {
.headerlink {
display: inline;
}
.fa-large.headerlink {
line-height: .9em;
}
.fa-spin.headerlink {
display: inline-block;
}
}
.nav {
.headerlink {
display: inline;
}
.fa-large.headerlink {
line-height: .9em;
}
.fa-spin.headerlink {
display: inline-block;
}
}
.btn.headerlink {
&:before {
opacity: .5;
-webkit-transition: opacity .05s ease-in;
-moz-transition: opacity .05s ease-in;
transition: opacity .05s ease-in;
}
&:hover {
&:before {
opacity: 1;
}
}
}
.btn-mini {
.headerlink {
&:before {
font-size: 14px;
vertical-align: -15%;
}
}
}
.rst-versions {
.rst-current-version {
.headerlink {
color: #fcfcfc;
}
}
}
&:hover {
.headerlink {
&:after {
visibility: visible;
}
}
}
font-weight: bold;
}
margin-bottom: 24px;
p {
margin-bottom: 12px !important;
}
table {
margin-bottom: 12px !important;
}
ul {
margin-bottom: 12px !important;
}
ol {
margin-bottom: 12px !important;
}
dd {
margin: 0 0 12px 24px;
}
&:not(.docutils) {
margin-bottom: 24px;
dt {
display: table;
margin: 6px 0;
font-size: 90%;
line-height: normal;
background: #e7f2fa;
color: #2980B9;
border-top: solid 3px #6ab0de;
padding: 6px;
position: relative;
&:before {
color: #6ab0de;
}
.headerlink {
color: #404040;
font-size: 100% !important;
}
&:first-child {
margin-top: 0;
}
}
dl {
dt {
margin-bottom: 6px;
border: none;
border-left: solid 3px #ccc;
background: #f0f0f0;
color: #555;
.headerlink {
color: #404040;
font-size: 100% !important;
}
}
}
tt {
font-weight: bold;
font-weight: bold;
}
code {
font-weight: bold;
}
tt.descname {
background-color: transparent;
background-color: transparent;
border: none;
border: none;
padding: 0;
padding: 0;
font-size: 100% !important;
font-size: 100% !important;
font-weight: bold;
font-weight: bold;
}
tt.descclassname {
background-color: transparent;
background-color: transparent;
border: none;
border: none;
padding: 0;
padding: 0;
font-size: 100% !important;
font-size: 100% !important;
}
code.descname {
background-color: transparent;
border: none;
padding: 0;
font-size: 100% !important;
font-weight: bold;
}
code.descclassname {
background-color: transparent;
border: none;
padding: 0;
font-size: 100% !important;
}
.optional {
display: inline-block;
padding: 0 4px;
color: #000;
font-weight: bold;
}
.property {
display: inline-block;
padding-right: 8px;
}
}
.viewcode-link {
display: inline-block;
color: #27AE60;
font-size: 80%;
padding-left: 24px;
}
}

// div[class^='collapse'] .highlight {
// height: 22.4rem;
Expand Down

1 comment on commit 7923265

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.