From dbc52f9db0cbac30ca66b0f9cfbecd2ea827c222 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Fri, 31 Jan 2025 10:42:20 +0100
Subject: [PATCH] Add stubs to make redirects from swh-dataset to swh-export
 work

---
 docs/.gitignore                                | 1 +
 docs/devel/swh-dataset/export.rst              | 3 +++
 docs/devel/swh-dataset/generate_subdataset.rst | 3 +++
 docs/devel/swh-dataset/graph/athena.rst        | 4 ++++
 docs/devel/swh-dataset/graph/dataset.rst       | 3 +++
 docs/devel/swh-dataset/graph/schema.rst        | 3 +++
 docs/devel/swh-dataset/index.rst               | 3 +++
 swh/docs/sphinx/conf.py                        | 1 -
 8 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 docs/devel/swh-dataset/export.rst
 create mode 100644 docs/devel/swh-dataset/generate_subdataset.rst
 create mode 100644 docs/devel/swh-dataset/graph/athena.rst
 create mode 100644 docs/devel/swh-dataset/graph/dataset.rst
 create mode 100644 docs/devel/swh-dataset/graph/schema.rst
 create mode 100644 docs/devel/swh-dataset/index.rst

diff --git a/docs/.gitignore b/docs/.gitignore
index ff321326..9be90d0d 100644
--- a/docs/.gitignore
+++ b/docs/.gitignore
@@ -1,6 +1,7 @@
 *-stamp
 _build/
 devel/swh-*
+!devel/swh-dataset
 errors.log
 !/swh-loader.rst
 sources/
diff --git a/docs/devel/swh-dataset/export.rst b/docs/devel/swh-dataset/export.rst
new file mode 100644
index 00000000..bc7cd9c1
--- /dev/null
+++ b/docs/devel/swh-dataset/export.rst
@@ -0,0 +1,3 @@
+:orphan:
+
+This page was moved to: :ref:`swh-graph-export`.
diff --git a/docs/devel/swh-dataset/generate_subdataset.rst b/docs/devel/swh-dataset/generate_subdataset.rst
new file mode 100644
index 00000000..637edd25
--- /dev/null
+++ b/docs/devel/swh-dataset/generate_subdataset.rst
@@ -0,0 +1,3 @@
+:orphan:
+
+This page was moved to: :ref:`swh-graph-export-subdataset`.
diff --git a/docs/devel/swh-dataset/graph/athena.rst b/docs/devel/swh-dataset/graph/athena.rst
new file mode 100644
index 00000000..87f690f0
--- /dev/null
+++ b/docs/devel/swh-dataset/graph/athena.rst
@@ -0,0 +1,4 @@
+:orphan:
+
+This page was moved to: :ref:`swh-graph-athena`.
+
diff --git a/docs/devel/swh-dataset/graph/dataset.rst b/docs/devel/swh-dataset/graph/dataset.rst
new file mode 100644
index 00000000..e5c5e115
--- /dev/null
+++ b/docs/devel/swh-dataset/graph/dataset.rst
@@ -0,0 +1,3 @@
+:orphan:
+
+This page was moved to: :ref:`swh-export-list`.
diff --git a/docs/devel/swh-dataset/graph/schema.rst b/docs/devel/swh-dataset/graph/schema.rst
new file mode 100644
index 00000000..145205d3
--- /dev/null
+++ b/docs/devel/swh-dataset/graph/schema.rst
@@ -0,0 +1,3 @@
+:orphan:
+
+This page was moved to: :ref:`swh-export-schema`.
diff --git a/docs/devel/swh-dataset/index.rst b/docs/devel/swh-dataset/index.rst
new file mode 100644
index 00000000..dc22e5a1
--- /dev/null
+++ b/docs/devel/swh-dataset/index.rst
@@ -0,0 +1,3 @@
+:orphan:
+
+This page was moved to: :ref:`swh-export`.
diff --git a/swh/docs/sphinx/conf.py b/swh/docs/sphinx/conf.py
index 844fb25e..9f9da874 100644
--- a/swh/docs/sphinx/conf.py
+++ b/swh/docs/sphinx/conf.py
@@ -218,7 +218,6 @@ redirects = {
     "swh-dataset/graph/dataset.html": "swh-export/graph/dataset.html",
     "swh-dataset/graph/schema.html": "swh-export/graph/schema.html",
     "swh-dataset/graph/athena.html": "swh-export/graph/athena.html",
-    "swh-dataset/graph/databricks.html": "swh-export/graph/databricks.html",
     "swh-dataset/export.html": "swh-export/export.html",
     "swh-dataset/generate_subdataset.html": "swh-export/generate_subdataset.html",
     "apidoc/swh.dataset.html": "apidoc/swh.export.html",
-- 
GitLab