Skip to content

Commit

Permalink
[Doc] Refactor example gallery to remove temporary flash (ray-project…
Browse files Browse the repository at this point in the history
…#37217)

Signed-off-by: pdmurray <peynmurray@gmail.com>
  • Loading branch information
peytondmurray authored and angelinalg committed Jul 11, 2023
1 parent 6e7c7ad commit 5410062
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
20 changes: 19 additions & 1 deletion doc/source/_static/css/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
text-transform: uppercase;
}

/* Hide the default sidebar content */
#site-navigation > div.bd-sidebar__content {
display: none;
}
#site-navigation > div.rtd-footer-container {
display: none;
}

.searchDiv {
margin-bottom: 2em;
}
Expand Down Expand Up @@ -160,7 +168,7 @@ div.sd-card-body > p.sd-card-text > a > span {
justify-content: center;
}

#noMatches.hidden,.gallery-item.hidden,.footer-article.hidden,div.header-article.row.sticky-top.noprint {
#noMatches.hidden,.gallery-item.hidden {
display: none !important;
}

Expand Down Expand Up @@ -197,3 +205,13 @@ button.try-anyscale > span {
.top-nav-content {
justify-content: initial;
}

/* Hide nav bar that has github, fullscreen, and print icons */
div.header-article.row.sticky-top.noprint {
display: none !important;
}

/* Hide the footer with 'prev article' and 'next article' buttons */
.footer-article.hidden {
display: none !important;
}
21 changes: 2 additions & 19 deletions doc/source/_static/js/tags.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# -*- coding: utf-8 -*-
import json
from datetime import datetime
from pathlib import Path
from importlib import import_module
import os
import sys
from jinja2.filters import FILTERS

sys.path.insert(0, os.path.abspath("."))
from custom_directives import *
from datetime import datetime
from custom_directives import (
DownloadAndPreprocessEcosystemDocs,
mock_modules,
update_context,
LinkcheckSummarizer,
build_gallery,
)


# Mocking modules allows Sphinx to work without installing Ray.
Expand Down
2 changes: 2 additions & 0 deletions doc/source/ray-overview/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Ray Examples

.. raw:: html

<link rel="stylesheet" type="text/css" href="../_static/css/examples.css">

<div>
<div class="searchDiv">
<input type="text" id="searchInput" class="searchTerm"
Expand Down

0 comments on commit 5410062

Please sign in to comment.