Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Aug 1, 2024
1 parent 04712e5 commit f9e8461
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
8 changes: 2 additions & 6 deletions _includes/example-report.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@
<body>
{% include "nav.html" %}

<main>
<div class="example-report-abstract flex color-links">
{% include "small-banner.html" %}

<a href="https://skrub-data.org/"><img class="skrub" src="../skrub.svg"></a>
<a href="https://skrub-data.org/dev/reference/generated/skrub.TableReport.html#"
class="table-report"><code>skrub.TableReport</code></a>
</div>
<main>
<div>
{{ report | safe }}
</div>
Expand Down
11 changes: 9 additions & 2 deletions _includes/examples-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@
<body>
{% include "nav.html" %}

<main class="examples-index">
<ul class="example-dataset-list color-links">
{% include "small-banner.html" %}

<main>
<p class="wrapper">
Follow one of the links below to see a report computed with
<a href="https://skrub-data.org/dev/reference/generated/skrub.TableReport.html#" class="table-report"><code>skrub.TableReport</code></a>
for the corresponding dataset.
</p>
<ul class="examples-index example-dataset-list color-links">
{% for report_name in report_names %}
<li>
<a href="{{ report_name }}.html">{{ report_name }}</a>
Expand Down
5 changes: 5 additions & 0 deletions _includes/small-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="small-banner flex color-links padding">
<a href="https://skrub-data.org/"><img class="skrub" src="../skrub.svg"></a>
<a href="https://skrub-data.org/dev/reference/generated/skrub.TableReport.html#"
class="table-report"><code>skrub.TableReport</code></a>
</div>
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def fetch(name=name):
return getattr(skrub_data, f"fetch_{name}")().X

datasets.append((name, fetch))
sklearn_dataset_names = ["titanic", "iris"]
sklearn_dataset_names = ["titanic"]
for name in sklearn_dataset_names:

def fetch(name=name):
Expand Down
16 changes: 10 additions & 6 deletions skrub-online-report.css
Original file line number Diff line number Diff line change
Expand Up @@ -436,24 +436,24 @@ h1.banner .import {
transform: rotate(10deg);
}

/* Example report */
/* Example reports */

.example-report-abstract {
.small-banner {
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 1.5rem;
}

.example-report-abstract .skrub {
.small-banner .skrub {
height: 4rem;
}

.example-report-abstract a {
.small-banner a {
text-underline-offset: 0.4em;
text-decoration-thickness: 2px;
}

.example-report-abstract :visited {
.small-banner :visited {
color: var(--darkblue);
}

Expand Down Expand Up @@ -490,14 +490,18 @@ nav a:hover {
.example-dataset-list > li {
font-family: var(--fontStack-monospace);
font-size: 1.2rem;
line-height: 2;
line-height: 2.2;
}

.example-dataset-list a {
text-underline-offset: 0.4em;
text-decoration-thickness: 2px;
}

.example-dataset-list li::marker {
color: var(--orange);
}

.examples-index {
padding-left: 2ch;
padding-right: 2ch;
Expand Down

0 comments on commit f9e8461

Please sign in to comment.