Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build-wheels-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Build Linux Wheels

on:
pull_request:
paths-ignore:
- "docs/*"
- "third_party/*"
- .gitignore
- "*.md"
- ".github/workflows/[cdprvu]*.yml"
push:
branches:
- nightly
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unittest_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ on:
- "third_party/*"
- .gitignore
- "*.md"
- ".github/workflows/[bcdprv]*.yml"
- ".github/workflows/unittest_ci_cpu.yml"
pull_request:
paths-ignore:
- "docs/*"
- "third_party/*"
- .gitignore
- "*.md"
- ".github/workflows/[bcdprv]*.yml"
- ".github/workflows/unittest_ci_cpu.yml"
workflow_dispatch:
inputs:
channel:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unittest_ci_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ on:
- "third_party/*"
- .gitignore
- "*.md"
- ".github/workflows/[bcdprv]*.yml"
- ".github/workflows/unittest_ci.yml"
pull_request:
paths-ignore:
- "docs/*"
- "third_party/*"
- .gitignore
- "*.md"
- ".github/workflows/[bcdprv]*.yml"
- ".github/workflows/unittest_ci.yml"
workflow_dispatch:
inputs:
channel:
Expand Down
5 changes: 3 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
sphinx==5.0.0
sphinx==7.2.6
sphinx-sitemap==2.7.1
pyre-extensions
sphinx-design
sphinx_copybutton
# torch
# PyTorch Theme
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
pytorch_sphinx_theme2==0.3.0
114 changes: 0 additions & 114 deletions docs/source/_static/css/custom.css

This file was deleted.

10 changes: 0 additions & 10 deletions docs/source/_templates/layout.html

This file was deleted.

65 changes: 51 additions & 14 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import os
import sys

import pytorch_sphinx_theme
import pytorch_sphinx_theme2

current_dir = os.path.dirname(__file__)
target_dir = os.path.abspath(os.path.join(current_dir, "../.."))
Expand Down Expand Up @@ -74,24 +74,61 @@
# a list of builtin themes.
#
# html_theme = 'alabaster'
html_theme = "pytorch_sphinx_theme"
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
html_theme = "pytorch_sphinx_theme2"
html_theme_path = [pytorch_sphinx_theme2.get_html_theme_path()]
Copy link
Contributor

Choose a reason for hiding this comment

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

there are quite a few params you need to configure to correctly migrate. See for details: https://github.com/pytorch/pytorch_sphinx_theme/blob/pytorch_sphinx_theme2/pytorch_sphinx_theme2_migration_guide.md


# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#

theme_variables = pytorch_sphinx_theme2.get_theme_variables()

html_theme_options = {
"pytorch_project": "torchrec",
"display_version": True,
"logo_only": True,
"collapse_navigation": False,
"includehidden": True,
"navigation_with_keys": False,
"show_lf_header": False,
"show_lf_footer": False,
"logo": {"text": "Home"},
"analytics_id": "GTM-NPLPKN5G",
"canonical_url": "https://meta-pytorch.org/torchrec",
"icon_links": [
{
"name": "X",
"url": "https://x.com/PyTorch",
"icon": "fa-brands fa-x-twitter",
},
{
"name": "GitHub",
"url": "https://github.com/meta-pytorch/torchrec",
"icon": "fa-brands fa-github",
},
{
"name": "Discourse",
"url": "https://dev-discuss.pytorch.org/",
"icon": "fa-brands fa-discourse",
},
{
"name": "PyPi",
"url": "https://pypi.org/project/torchrec/",
"icon": "fa-brands fa-python",
},
],
"use_edit_page_button": True,
"navbar_center": "navbar-nav",
}

html_context = {
"theme_variables": theme_variables,
"display_github": True,
"github_url": "https://github.com",
"github_user": "meta-pytorch",
"github_repo": "torchrec",
"feedback_url": "https://github.com/meta-pytorch/torchrec",
"github_version": "main",
"doc_path": "docs/source",
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

html_css_files = ["css/custom.css"]
templates_path = [
"_templates",
os.path.join(os.path.dirname(pytorch_sphinx_theme2.__file__), "templates"),
]
Loading