Skip to content

Commit

Permalink
site add widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leao authored and Eduardo Leao committed Aug 1, 2024
1 parent d0823e1 commit 1d4ae45
Show file tree
Hide file tree
Showing 23 changed files with 2,887 additions and 6 deletions.
Binary file added assets/docs_dark_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs_light_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/css 2/fonts/Roboto-Slab-Bold.woff
Binary file not shown.
Binary file added site/css 2/fonts/Roboto-Slab-Bold.woff2
Binary file not shown.
Binary file added site/css 2/fonts/Roboto-Slab-Regular.woff
Binary file not shown.
Binary file added site/css 2/fonts/Roboto-Slab-Regular.woff2
Binary file not shown.
Binary file added site/css 2/fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions site/css 2/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/css 2/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added site/css 2/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added site/css 2/fonts/fontawesome-webfont.woff2
Binary file not shown.
Binary file added site/css 2/fonts/lato-bold-italic.woff
Binary file not shown.
Binary file added site/css 2/fonts/lato-bold-italic.woff2
Binary file not shown.
Binary file added site/css 2/fonts/lato-bold.woff
Binary file not shown.
Binary file added site/css 2/fonts/lato-bold.woff2
Binary file not shown.
Binary file added site/css 2/fonts/lato-normal-italic.woff
Binary file not shown.
Binary file added site/css 2/fonts/lato-normal-italic.woff2
Binary file not shown.
Binary file added site/css 2/fonts/lato-normal.woff
Binary file not shown.
Binary file added site/css 2/fonts/lato-normal.woff2
Binary file not shown.
13 changes: 13 additions & 0 deletions site/css 2/theme.css

Large diffs are not rendered by default.

197 changes: 197 additions & 0 deletions site/css 2/theme_extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
/*
* Wrap inline code samples otherwise they shoot of the side and
* can't be read at all.
*
* https://github.com/mkdocs/mkdocs/issues/313
* https://github.com/mkdocs/mkdocs/issues/233
* https://github.com/mkdocs/mkdocs/issues/834
*/
.rst-content code {
white-space: pre-wrap;
word-wrap: break-word;
padding: 2px 5px;
}

/**
* Make code blocks display as blocks and give them the appropriate
* font size and padding.
*
* https://github.com/mkdocs/mkdocs/issues/855
* https://github.com/mkdocs/mkdocs/issues/834
* https://github.com/mkdocs/mkdocs/issues/233
*/
.rst-content pre code {
white-space: pre;
word-wrap: normal;
display: block;
padding: 12px;
font-size: 12px;
}

/**
* Fix code colors
*
* https://github.com/mkdocs/mkdocs/issues/2027
*/
.rst-content code {
color: #E74C3C;
}

.rst-content pre code {
color: #000;
background: #f8f8f8;
}

/*
* Fix link colors when the link text is inline code.
*
* https://github.com/mkdocs/mkdocs/issues/718
*/
a code {
color: #2980B9;
}
a:hover code {
color: #3091d1;
}
a:visited code {
color: #9B59B6;
}

/*
* The CSS classes from highlight.js seem to clash with the
* ReadTheDocs theme causing some code to be incorrectly made
* bold and italic.
*
* https://github.com/mkdocs/mkdocs/issues/411
*/
pre .cs, pre .c {
font-weight: inherit;
font-style: inherit;
}

/*
* Fix some issues with the theme and non-highlighted code
* samples. Without and highlighting styles attached the
* formatting is broken.
*
* https://github.com/mkdocs/mkdocs/issues/319
*/
.rst-content .no-highlight {
display: block;
padding: 0.5em;
color: #333;
}


/*
* Additions specific to the search functionality provided by MkDocs
*/

.search-results {
margin-top: 23px;
}

.search-results article {
border-top: 1px solid #E1E4E5;
padding-top: 24px;
}

.search-results article:first-child {
border-top: none;
}

form .search-query {
width: 100%;
border-radius: 50px;
padding: 6px 12px;
border-color: #D1D4D5;
}

/*
* Improve inline code blocks within admonitions.
*
* https://github.com/mkdocs/mkdocs/issues/656
*/
.rst-content .admonition code {
color: #404040;
border: 1px solid #c7c9cb;
border: 1px solid rgba(0, 0, 0, 0.2);
background: #f8fbfd;
background: rgba(255, 255, 255, 0.7);
}

/*
* Account for wide tables which go off the side.
* Override borders to avoid weirdness on narrow tables.
*
* https://github.com/mkdocs/mkdocs/issues/834
* https://github.com/mkdocs/mkdocs/pull/1034
*/
.rst-content .section .docutils {
width: 100%;
overflow: auto;
display: block;
border: none;
}

td, th {
border: 1px solid #e1e4e5 !important;
border-collapse: collapse;
}

/*
* Without the following amendments, the navigation in the theme will be
* slightly cut off. This is due to the fact that the .wy-nav-side has a
* padding-bottom of 2em, which must not necessarily align with the font-size of
* 90 % on the .rst-current-version container, combined with the padding of 12px
* above and below. These amendments fix this in two steps: First, make sure the
* .rst-current-version container has a fixed height of 40px, achieved using
* line-height, and then applying a padding-bottom of 40px to this container. In
* a second step, the items within that container are re-aligned using flexbox.
*
* https://github.com/mkdocs/mkdocs/issues/2012
*/
.wy-nav-side {
padding-bottom: 40px;
}

/* For section-index only */
.wy-menu-vertical .current-section p {
background-color: #e3e3e3;
color: #404040;
}

/*
* The second step of above amendment: Here we make sure the items are aligned
* correctly within the .rst-current-version container. Using flexbox, we
* achieve it in such a way that it will look like the following:
*
* [No repo_name]
* Next >> // On the first page
* << Previous Next >> // On all subsequent pages
*
* [With repo_name]
* <repo_name> Next >> // On the first page
* <repo_name> << Previous Next >> // On all subsequent pages
*
* https://github.com/mkdocs/mkdocs/issues/2012
*/
.rst-versions .rst-current-version {
padding: 0 12px;
display: flex;
font-size: initial;
justify-content: space-between;
align-items: center;
line-height: 40px;
}

/*
* Please note that this amendment also involves removing certain inline-styles
* from the file ./mkdocs/themes/readthedocs/versions.html.
*
* https://github.com/mkdocs/mkdocs/issues/2012
*/
.rst-current-version span {
flex: 1;
text-align: center;
}
4 changes: 2 additions & 2 deletions site/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@

<div style="height: 20px;"></div>
<div class="container">
<div class="separator" id="right-separator" style="display: block; padding-bottom: 0px; margin-bottom: 15px;">
<div class="separator" id="right-separator" style="display: block; padding-bottom: 0px; padding-top: 10px;margin-bottom: 15px;">
<a target="_blank" href="https://github.com/eduardoleao052/js-pytorch"><img style="display: block;" class='icon' src="../../assets/demo_logo.png"></a>
<!-- Github:Buttons tag. -->
<div style="display: flex; align-items: center; margin-top: 15px; margin-bottom: 10px; justify-content: center;">
<div style="display: flex; align-items: center; margin-top: 15px; margin-bottom: 15px; justify-content: center;">
<a class="github-button" href="https://github.com/eduardoleao052/js-pytorch" data-color-scheme="no-preference: light; light: light; dark: light;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star eduardoleao052/js-pytorch on GitHub">Star</a>
<div style="width: 25px;"></div>
<a class="github-button" href="https://github.com/eduardoleao052/js-pytorch/issues" data-color-scheme="no-preference: light; light: light; dark: light;" data-icon="octicon-issue-opened" data-size="large" data-show-count="true" aria-label="Issue eduardoleao052/js-pytorch on GitHub">Issue</a>
Expand Down
8 changes: 4 additions & 4 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@


<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="deep-orange" data-md-color-accent="deep-orange">


<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
Expand Down Expand Up @@ -591,12 +590,13 @@



<a href="https://github.com/eduardoleao052/js-pytorch"><img src="../assets/docs_logo.png" style="width: 70%; margin-top: 9px; margin-bottom: 25px;"></a>
<a href="https://github.com/eduardoleao052/js-pytorch"><img src="../assets/docs_light_logo.png#only-light" style="width: 70%; margin-top: 9px; margin-bottom: 25px;"></a>
<a href="https://github.com/eduardoleao052/js-pytorch"><img src="../assets/docs_dark_logo.png#only-dark" style="width: 70%; margin-top: 9px; margin-bottom: 25px;"></a>
<!-- Github:Buttons tag. -->
<div style="display: flex; align-items: center; margin-top: 0px; margin-bottom: 10px;">
<a class="github-button" href="https://github.com/eduardoleao052/js-pytorch" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star eduardoleao052/js-pytorch on GitHub">Star</a>
<a class="github-button" href="https://github.com/eduardoleao052/js-pytorch" data-color-scheme="light: dark_dimmed; dark: dark_dimmed;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star eduardoleao052/js-pytorch on GitHub">Star</a>
<div style="width: 25px;"></div>
<a class="github-button" href="https://github.com/eduardoleao052/js-pytorch/issues" data-color-scheme--light="no-preference: dark; dark: light; dark: dark;" data-color-scheme--dark="no-preference: light; light: light; dark: light;" data-icon="octicon-issue-opened" data-size="large" data-show-count="true" aria-label="Issue eduardoleao052/js-pytorch on GitHub">Issue</a>
<a class="github-button" href="https://github.com/eduardoleao052/js-pytorch/issues" data-color-scheme="light: dark_dimmed; dark: dark_dimmed;" data-icon="octicon-issue-opened" data-size="large" data-show-count="true" aria-label="Issue eduardoleao052/js-pytorch on GitHub">Issue</a>
</div>
<h2 id="about" style="margin-top: 0px; font-size: 35px; margin-bottom: 20px;">Deep Learning in JavaScript</h2>
<h2 id="about" style="margin-top: 10px;">About</h2>
Expand Down

0 comments on commit 1d4ae45

Please sign in to comment.