Skip to content

Commit d23eb09

Browse files
authored
DOC improve rendering of the documentation (#1076)
1 parent 53f4e4a commit d23eb09

13 files changed

+424
-113
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- NUMPYDOC_VERSION: 'latest'
2525
- SPHINXCONTRIB_BIBTEX_VERSION: 'latest'
2626
- PYDATA_SPHINX_THEME_VERSION: 'latest'
27+
- SPHINX_DESIGN_VERSION: 'latest'
2728
steps:
2829
- add_ssh_keys:
2930
fingerprints:

build_tools/circle/build_doc.sh

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ mamba create -n $CONDA_ENV_NAME --yes --quiet \
114114
"$(get_dep sphinxcontrib-bibtex $SPHINXCONTRIB_BIBTEX_VERSION)" \
115115
"$(get_dep sphinx-copybutton $SPHINXCONTRIB_BIBTEX_VERSION)" \
116116
"$(get_dep pydata-sphinx-theme $PYDATA_SPHINX_THEME_VERSION)" \
117+
"$(get_dep sphinx-design $SPHINX_DESIGN_VERSION)" \
117118
memory_profiler packaging seaborn pytest coverage compilers tensorflow
118119

119120
source activate $CONDA_ENV_NAME

doc/_static/css/imbalanced-learn.css

+33-28
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,44 @@
2121

2222
/* Override some aspects of the pydata-sphinx-theme */
2323

24-
/* Getting started index page */
24+
/* Main index page overview cards */
2525

2626
.intro-card {
27-
background: #fff;
28-
border-radius: 0;
29-
padding: 30px 10px 10px 10px;
30-
margin: 10px 0px;
31-
}
32-
33-
.intro-card .card-text {
34-
margin: 20px 0px;
35-
/*min-height: 150px; */
36-
}
37-
38-
.custom-button {
39-
background-color: #dcdcdc;
40-
border: none;
41-
color: #484848;
42-
text-align: center;
43-
text-decoration: none;
44-
display: inline-block;
45-
font-size: 0.9rem;
46-
border-radius: 0.5rem;
27+
padding: 30px 10px 20px 10px;
28+
}
29+
30+
.intro-card .sd-card-img-top {
31+
margin: 10px;
32+
height: 52px;
33+
background: none !important;
34+
}
35+
36+
.intro-card .sd-card-title {
37+
color: var(--pst-color-primary);
38+
font-size: var(--pst-font-size-h5);
39+
padding: 1rem 0rem 0.5rem 0rem;
40+
}
41+
42+
.intro-card .sd-card-footer {
43+
border: none !important;
44+
}
45+
46+
.intro-card .sd-card-footer p.sd-card-text {
4747
max-width: 220px;
48-
padding: 0.5rem 0rem;
48+
margin-left: auto;
49+
margin-right: auto;
50+
}
51+
52+
.intro-card .sd-btn-secondary {
53+
background-color: #6c757d !important;
54+
border-color: #6c757d !important;
4955
}
5056

51-
.custom-button a {
52-
color: #484848;
57+
.intro-card .sd-btn-secondary:hover {
58+
background-color: #5a6268 !important;
59+
border-color: #545b62 !important;
5360
}
5461

55-
.custom-button p {
56-
margin-top: 0;
57-
margin-bottom: 0rem;
58-
color: #484848;
62+
.card, .card img {
63+
background-color: var(--pst-color-background);
5964
}

doc/_static/img/logo_wide_dark.png

25.3 KB
Loading

doc/_static/index_api.svg

+97
Loading

doc/_static/index_examples.svg

+76
Loading

doc/_static/index_getting_started.svg

+66
Loading

doc/_static/index_user_guide.svg

+67
Loading

0 commit comments

Comments
 (0)