diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index f3712cbe..4f48b31b 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -70,6 +70,22 @@ plugins: - mkdocs-jupyter - render_swagger: allow_arbitrary_locations: true + - redirects: + redirect_maps: + # Redirect the home page and other top-level markdown files. This enables maximum SEO benefit + # other sub-pages are handled by the ingected js in overrides/partials/header.html + 'index.md': 'https://lancedb.com/docs/' + 'guides/tables.md': 'https://lancedb.com/docs/tables/' + 'ann_indexes.md': 'https://lancedb.com/docs/indexing/' + 'basic.md': 'https://lancedb.com/docs/quickstart/' + 'faq.md': 'https://lancedb.com/docs/faq/' + 'embeddings/understanding_embeddings.md': 'https://lancedb.com/docs/embedding/' + 'integrations.md': 'https://lancedb.com/docs/integrations/' + 'examples.md': 'https://lancedb.com/docs/tutorials/' + 'concepts/vector_search.md': 'https://lancedb.com/docs/search/vector-search/' + 'troubleshooting.md': 'https://lancedb.com/docs/troubleshooting/' + + markdown_extensions: - admonition @@ -386,4 +402,4 @@ extra: - icon: fontawesome/brands/x-twitter link: https://twitter.com/lancedb - icon: fontawesome/brands/linkedin - link: https://www.linkedin.com/company/lancedb + link: https://www.linkedin.com/company/lancedb \ No newline at end of file diff --git a/docs/overrides/partials/header.html b/docs/overrides/partials/header.html index a0835b45..e82311bc 100644 --- a/docs/overrides/partials/header.html +++ b/docs/overrides/partials/header.html @@ -19,7 +19,13 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - +
{% set class = "md-header" %} {% if "navigation.tabs.sticky" in features %} {% set class = class ~ " md-header--shadow md-header--lifted" %} @@ -150,9 +156,9 @@