瀏覽代碼

Add the blog section back (#670)

* Revert "docs/blog: remove (#273)"

This reverts commit df3509ec998d002e8bcef6285c7c0bc16b54d513.

* chore: intro to the blog post

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
Xe Iaso 1 周之前
父節點
當前提交
81f6380dd4
共有 4 個文件被更改,包括 50 次插入17 次删除
  1. 14 0
      docs/blog/2025-06-16-welcome/index.mdx
  2. 9 0
      docs/blog/authors.yml
  3. 1 0
      docs/blog/tags.yml
  4. 26 17
      docs/docusaurus.config.ts

+ 14 - 0
docs/blog/2025-06-16-welcome/index.mdx

@@ -0,0 +1,14 @@
+---
+slug: welcome
+title: Welcome to the Anubis blog!
+authors: [xe]
+tags: [intro]
+---
+
+Hello, world!
+
+At Techaro, we've been working on making Anubis even better, and in the process we want to share what we've done, how it works, and signal boost cool things the community has done. As things happen, we'll blog about them so that you can learn from our struggles.
+
+More details to come soon!
+
+{/* truncate */}

+ 9 - 0
docs/blog/authors.yml

@@ -0,0 +1,9 @@
+xe:
+  name: Xe Iaso
+  title: CEO @ Techaro
+  url: https://github.com/Xe
+  image_url: https://github.com/Xe.png
+  email: xe@techaro.lol
+  page: true
+  socials:
+    github: Xe

+ 1 - 0
docs/blog/tags.yml

@@ -0,0 +1 @@
+

+ 26 - 17
docs/docusaurus.config.ts

@@ -47,21 +47,21 @@ const config: Config = {
           editUrl:
             'https://github.com/TecharoHQ/anubis/tree/main/docs/',
         },
-        // blog: {
-        //   showReadingTime: true,
-        //   feedOptions: {
-        //     type: ['rss', 'atom', "json"],
-        //     xslt: true,
-        //   },
-        //   // Please change this to your repo.
-        //   // Remove this to remove the "edit this page" links.
-        //   editUrl:
-        //     'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
-        //   // Useful options to enforce blogging best practices
-        //   onInlineTags: 'warn',
-        //   onInlineAuthors: 'warn',
-        //   onUntruncatedBlogPosts: 'warn',
-        // },
+        blog: {
+          showReadingTime: true,
+          feedOptions: {
+            type: ['rss', 'atom', "json"],
+            xslt: true,
+          },
+          // Please change this to your repo.
+          // Remove this to remove the "edit this page" links.
+          editUrl:
+            'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
+          // Useful options to enforce blogging best practices
+          onInlineTags: 'warn',
+          onInlineAuthors: 'warn',
+          onUntruncatedBlogPosts: 'warn',
+        },
         theme: {
           customCss: './src/css/custom.css',
         },
@@ -86,9 +86,14 @@ const config: Config = {
           type: 'docSidebar',
           sidebarId: 'tutorialSidebar',
           position: 'left',
-          label: 'Tutorial',
+          label: 'Docs',
+        },
+        { to: '/blog', label: 'Blog', position: 'left' },
+        {
+          href: 'https://github.com/sponsors/Xe',
+          label: "Sponsorship",
+          position: 'left'
         },
-        // { to: '/blog', label: 'Blog', position: 'left' },
         {
           href: 'https://github.com/TecharoHQ/anubis',
           label: 'GitHub',
@@ -128,6 +133,10 @@ const config: Config = {
         {
           title: 'More',
           items: [
+            {
+              label: 'Blog',
+              to: '/blog',
+            },
             {
               label: 'GitHub',
               href: 'https://github.com/TecharoHQ/anubis',