From 1a9a392e2059d8bfe2aeeb4faf0f16141c26e79d Mon Sep 17 00:00:00 2001 From: Leon Yee <43097991+unkn-wn@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:52:34 -0700 Subject: [PATCH] [docs] CTA for discord + twitter (#218) ![image](https://github.com/lancedb/lancedb/assets/43097991/33eb893c-3baf-4166-8291-47d2f4bde23a) Includes discord and twitter links in documentation [#1001](https://github.com/lancedb/sophon/issues/1001) --- docs/mkdocs.yml | 1 + docs/overrides/partials/header.html | 176 ++++++++++++++++++++++++++++ docs/src/integrations.md | 2 +- 3 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 docs/overrides/partials/header.html diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 64f91a192..fab1d367a 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -12,6 +12,7 @@ theme: - content.tabs.link icon: repo: fontawesome/brands/github + custom_dir: overrides plugins: - search diff --git a/docs/overrides/partials/header.html b/docs/overrides/partials/header.html new file mode 100644 index 000000000..a0835b45c --- /dev/null +++ b/docs/overrides/partials/header.html @@ -0,0 +1,176 @@ + + +{% set class = "md-header" %} +{% if "navigation.tabs.sticky" in features %} + {% set class = class ~ " md-header--shadow md-header--lifted" %} +{% elif "navigation.tabs" not in features %} + {% set class = class ~ " md-header--shadow" %} +{% endif %} + + +
+ + + + {% if "navigation.tabs.sticky" in features %} + {% if "navigation.tabs" in features %} + {% include "partials/tabs.html" %} + {% endif %} + {% endif %} +
\ No newline at end of file diff --git a/docs/src/integrations.md b/docs/src/integrations.md index 47627845c..0413827d8 100644 --- a/docs/src/integrations.md +++ b/docs/src/integrations.md @@ -26,7 +26,7 @@ data = pd.DataFrame({ table = db.create_table("pd_table", data=data) ``` -You will find detailed instructions of creating dataset and index in [Basic Operations](basic.md) and [Indexing](indexing.md) +You will find detailed instructions of creating dataset and index in [Basic Operations](basic.md) and [Indexing](ann_indexes.md) sections.