Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit bbe0060

Browse files
authored
Add a 404 page that forwards Thrust to CCCL/thrust.
1 parent 17f60df commit bbe0060

File tree

2 files changed

+14
-45
lines changed

2 files changed

+14
-45
lines changed

docs/github_pages/404.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>Redirecting to nvidia.github.io/cccl/thrust</title>
4+
5+
<html>
6+
<head>
7+
<script>
8+
var localUri = window.location.pathname.replace(/^\/.*?\//g, "");
9+
window.location.href =
10+
"https://nvidia.github.io/cccl/thrust/" + localUri
11+
</script>
12+
</head>
13+
</html>

docs/github_pages/_config.yml

+1-45
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,3 @@
1-
title: Thrust
1+
title: Redirect to CCCL
22

33
repository: nvidia/thrust
4-
5-
remote_theme: pmarsceill/just-the-docs
6-
7-
color_scheme: nvidia
8-
logo: /assets/images/nvidia_logo.png
9-
10-
search_enabled: true
11-
search.heading_level: 4
12-
13-
incremental: true
14-
15-
# just-the-docs ignores these filenames by default.
16-
include: [ "contributing.md", "code_of_conduct.md" ]
17-
18-
exclude: [ "node_modules", "doxybook_templates",
19-
"generate_markdown.bash", "serve_docs_locally.bash" ]
20-
21-
plugins:
22-
- jekyll-optional-front-matter # GitHub Pages.
23-
- jekyll-default-layout # GitHub Pages.
24-
- jekyll-titles-from-headings # GitHub Pages.
25-
- jekyll-relative-links # GitHub Pages.
26-
- jekyll-include-cache
27-
28-
defaults:
29-
-
30-
scope:
31-
path: overview.md
32-
values:
33-
title: Overview
34-
nav_order: 0
35-
permalink: /
36-
-
37-
scope:
38-
path: contributing/code_of_conduct.md
39-
values:
40-
parent: Contributing
41-
nav_order: 2
42-
-
43-
scope:
44-
path: releases/changelog.md
45-
values:
46-
parent: Releases
47-
nav_order: 0

0 commit comments

Comments
 (0)