diff --git a/astro-site/src/components/PlaybookNav.astro b/astro-site/src/components/PlaybookNav.astro
deleted file mode 100644
index 6b8b15e..0000000
--- a/astro-site/src/components/PlaybookNav.astro
+++ /dev/null
@@ -1,81 +0,0 @@
----
-interface Recipe {
- slug: string;
- title: string;
-}
-
-interface Props {
- currentSection: string;
-}
-
-const { currentSection } = Astro.props;
-const base = import.meta.env.BASE_URL;
-
-const groups: { label: string; recipes: Recipe[] }[] = [
- {
- label: "Everyday",
- recipes: [
- { slug: "playbook/undoing-changes", title: "Undoing Changes" },
- { slug: "playbook/diffing", title: "Diffing" },
- { slug: "playbook/history", title: "History" },
- { slug: "playbook/stashing", title: "Stashing" },
- ],
- },
- {
- label: "Branching and Merging",
- recipes: [
- { slug: "playbook/branching", title: "Branching" },
- { slug: "playbook/merging", title: "Merging" },
- { slug: "playbook/rebasing", title: "Rebasing" },
- { slug: "playbook/cherry-picking", title: "Cherry-Picking" },
- ],
- },
- {
- label: "Remote",
- recipes: [
- { slug: "playbook/remote-operations", title: "Remote Operations" },
- { slug: "playbook/remote-management", title: "Remote Management" },
- ],
- },
- {
- label: "Project Structure",
- recipes: [
- { slug: "playbook/tagging", title: "Tagging" },
- { slug: "playbook/submodules", title: "Submodules" },
- { slug: "playbook/subtrees", title: "Subtrees" },
- ],
- },
- {
- label: "Advanced",
- recipes: [
- { slug: "playbook/selectors", title: "Selectors" },
- { slug: "playbook/hooks", title: "Hooks" },
- { slug: "playbook/debugging", title: "Debugging" },
- { slug: "playbook/configuration", title: "Configuration" },
- ],
- },
-];
----
-
-
diff --git a/astro-site/src/layouts/DocLayout.astro b/astro-site/src/layouts/DocLayout.astro
index 8b9d5c8..e9a11b6 100644
--- a/astro-site/src/layouts/DocLayout.astro
+++ b/astro-site/src/layouts/DocLayout.astro
@@ -2,7 +2,6 @@
import "../styles/global.css";
import Header from "../components/Header.astro";
import TableOfContents from "../components/TableOfContents.astro";
-import PlaybookNav from "../components/PlaybookNav.astro";
import TutorialLinks from "../components/TutorialLinks.astro";
import Footer from "../components/Footer.astro";
import site from "../data/site.json";
@@ -12,12 +11,10 @@ interface Props {
description?: string;
headings?: { depth: number; slug: string; text: string }[];
currentPath?: string;
- currentSection?: string;
jsonLd?: Record;
}
-const { title, description, headings = [], currentPath = "/", currentSection = "", jsonLd } = Astro.props;
-const isPlaybook = currentSection === "playbook" || currentSection.startsWith("playbook/");
+const { title, description, headings = [], currentPath = "/", jsonLd } = Astro.props;
const pageDescription = description || site.description;
const pageTitle = `${title} — ${site.title}`;
const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
@@ -31,6 +28,7 @@ const ogImage = new URL("/tutorial-git/images/og-banner.png", Astro.site);
{pageTitle}
+
@@ -47,12 +45,7 @@ const ogImage = new URL("/tutorial-git/images/og-banner.png", Astro.site);
-
-
-
+
{jsonLd && (
@@ -70,16 +63,54 @@ const ogImage = new URL("/tutorial-git/images/og-banner.png", Astro.site);
+
{title}
- {isPlaybook ? (
-
- ) : (
-
- )}
+
+
+
+