From 200dc73f9b189b6e9a6844d74f4e3fafa67b4f13 Mon Sep 17 00:00:00 2001
From: Thomas Kunwar <20840228+yathomasi@users.noreply.github.com>
Date: Mon, 9 Dec 2024 18:36:53 +0545
Subject: [PATCH] chore: follow up docs navigation update (#673)
* chore: follow up docs navigaiton update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore: update dark theme color
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
---
docs/contributing.md | 4 +++
docs/css/github-permalink-style.css | 39 +++++++++++++++++++++++++++++
docs/examples.md | 3 +++
docs/index.md | 5 +++-
docs/quick-start.md | 4 +++
docs/references/index.md | 4 +++
docs/tutorials.md | 4 +++
mkdocs.yml | 34 +++++++++++++------------
8 files changed, 80 insertions(+), 17 deletions(-)
create mode 100644 docs/css/github-permalink-style.css
diff --git a/docs/contributing.md b/docs/contributing.md
index 5d8a2e32c..ad4d22d37 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -1,3 +1,7 @@
+---
+title: Contributing
+---
+
# Contributor Guide
Thank you for your interest in improving this project. This project is
diff --git a/docs/css/github-permalink-style.css b/docs/css/github-permalink-style.css
new file mode 100644
index 000000000..77ff3e827
--- /dev/null
+++ b/docs/css/github-permalink-style.css
@@ -0,0 +1,39 @@
+.headerlink {
+ --permalink-size: 16px; /* for font-relative sizes, 0.6em is a good choice */
+ --permalink-spacing: 4px;
+
+ width: calc(var(--permalink-size) + var(--permalink-spacing));
+ height: var(--permalink-size);
+ vertical-align: middle;
+ background-color: var(--md-default-fg-color--lighter);
+ background-size: var(--permalink-size);
+ mask-size: var(--permalink-size);
+ -webkit-mask-size: var(--permalink-size);
+ mask-repeat: no-repeat;
+ -webkit-mask-repeat: no-repeat;
+ visibility: visible;
+ mask-image: url('data:image/svg+xml;utf8,');
+ -webkit-mask-image: url('data:image/svg+xml;utf8,');
+}
+
+[id]:target .headerlink {
+ background-color: var(--md-typeset-a-color);
+}
+
+.headerlink:hover {
+ background-color: var(--md-accent-fg-color) !important;
+}
+
+@media screen and (min-width: 76.25em) {
+ h1, h2, h3, h4, h5, h6 {
+ display: flex;
+ align-items: center;
+ flex-direction: row;
+ column-gap: 0.2em; /* fixes spaces in titles */
+ }
+
+ .headerlink {
+ order: -1;
+ margin-left: calc(var(--permalink-size) * -1 - var(--permalink-spacing)) !important;
+ }
+}
diff --git a/docs/examples.md b/docs/examples.md
index 2d4362862..5b0d0b236 100644
--- a/docs/examples.md
+++ b/docs/examples.md
@@ -1,3 +1,6 @@
+---
+title: Examples
+---
# Examples
diff --git a/docs/index.md b/docs/index.md
index fc86d14d7..af1341677 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,3 +1,6 @@
+---
+title: Welcome to DataChain
+---
# DataChain