From 94ff3903c3e5d2c507ea7c33b389e962bd65e472 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 24 Jun 2024 08:35:16 +0200 Subject: [PATCH] docs: remove blog in favor of news page --- blog/2024-06-22-v11.md => docs/news.md | 22 +++++++++------------- docusaurus.config.ts | 11 ++++++++--- 2 files changed, 17 insertions(+), 16 deletions(-) rename blog/2024-06-22-v11.md => docs/news.md (63%) diff --git a/blog/2024-06-22-v11.md b/docs/news.md similarity index 63% rename from blog/2024-06-22-v11.md rename to docs/news.md index a4b259f..360f5e8 100644 --- a/blog/2024-06-22-v11.md +++ b/docs/news.md @@ -1,24 +1,20 @@ --- -title: What's New in v11.0? -tags: - - release +sidebar_position: 10 --- -Learn about the new features and improvements in **lazy.nvim** v11.0 +# 📰 What's new? - +## 11.x -## New Website - -There's a whole new website with a fresh look and improved documentation. -Check it out at [lazy.nvim](https://lazy.folke.io/). -The GitHub `README.md` has been updated to point to the new website. -The `vimdoc` contains all the information that is available on the website. - -## New Features +- **New Website**: There's a whole new website with a fresh look and improved documentation. + Check it out at [lazy.nvim](https://lazy.folke.io/). + The GitHub `README.md` has been updated to point to the new website. + The `vimdoc` contains all the information that is available on the website. - **Spec Resolution & Merging**: the code that resolves a final spec from a plugin's fragments has been rewritten. This should be a tiny bit faster, but more importantly, fixes some issues and is easier to maintain. + - `rocks`: specs can now specify a list of rocks ([luarocks](https://luarocks.org/)) that should be installed. + - [Packages](https://lazy.folke.io/packages) can now specify their dependencies and configuration using one of: - **Lazy**: `lazy.lua` file - **Rockspec**: [luarocks](https://luarocks.org/) `*-scm-1.rockspec` [file](https://github.com/luarocks/luarocks/wiki/Rockspec-format) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ac49b91..5b97c9c 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -34,7 +34,7 @@ const config: Config = { sidebarPath: "./sidebars.ts", editUrl: "https://github.com/folke/lazy.nvim/tree/docs/", }, - // blog: false, + blog: false, theme: { customCss: "./src/css/custom.css", }, @@ -66,8 +66,13 @@ const config: Config = { src: "img/icon.svg", }, items: [ - { to: "/", label: "Docs", position: "left" }, - { to: "blog", label: "Blog", position: "left" }, + { + to: "/", + label: "Docs", + position: "left", + activeBaseRegex: "^(?!.*news).*$", + }, + { to: "news", label: "News", position: "left" }, ...require("./socials.ts"), ], },