Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useState } from "react";
import Image from "next/image";
import Link from "next/link";
import { documentdbDiscordUrl } from "../services/externalLinks";
import { withBasePath } from "../services/sitePath";

type NavItem = {
Expand All @@ -24,7 +25,7 @@ const navItems: NavItem[] = [
},
{
label: "Discord",
href: "https://discord.gg/vH7bYu524D",
href: documentdbDiscordUrl,
kind: "anchor",
newTab: true,
icon: "discord",
Expand Down
3 changes: 2 additions & 1 deletion app/services/articleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import matter from 'gray-matter';
import { Article } from '../types/Article';
import { Link } from '../types/Link';
import { buildAptInstallCommand, buildRpmInstallCommand } from '../lib/packageInstall';
import { documentdbDiscordUrl } from './externalLinks';

const articlesDirectory = path.join(process.cwd(), 'articles');
const dockerGuideContent = `# Docker Quick Start
Expand Down Expand Up @@ -372,7 +373,7 @@ For extension-specific help or bugs:
- [GitHub repository](https://github.com/microsoft/vscode-documentdb)
- [GitHub discussions](https://github.com/microsoft/vscode-documentdb/discussions)
- [GitHub issues](https://github.com/microsoft/vscode-documentdb/issues)
- [DocumentDB Discord](https://discord.gg/vH7bYu524D)
- [DocumentDB Discord](${documentdbDiscordUrl})

## Next steps

Expand Down
2 changes: 2 additions & 0 deletions app/services/externalLinks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const documentdbDiscordUrl = 'https://discord.gg/vH7bYu524D';

export const documentdbKubernetesOperatorDocsUrl =
'https://documentdb.io/documentdb-kubernetes-operator/preview/';

Expand Down
3 changes: 3 additions & 0 deletions blogs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
title: DocumentDB Blog
description: Insights, updates, and deep dives into the world of document databases and open-source innovation.
# Shared external links. The Next.js app keeps the same values in
# app/services/externalLinks.ts; update both when one changes.
discord_url: https://discord.gg/vH7bYu524D
baseurl: /blogs
url: ""
permalink: pretty
Expand Down
2 changes: 1 addition & 1 deletion blogs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<nav class="site-nav" aria-label="Primary">
<a href="{{ home_href }}">Home</a>
<a href="https://github.com/documentdb/documentdb" target="_blank" rel="noopener noreferrer">GitHub</a>
<a href="https://discord.gg/vH7bYu524D" target="_blank" rel="noopener noreferrer">Discord</a>
<a href="{{ site.discord_url }}" target="_blank" rel="noopener noreferrer">Discord</a>
<a href="{{ docs_href }}">Docs</a>
<a href="{{ packages_href }}">Download</a>
<a href="{{ operator_href }}">K8s Operator</a>
Expand Down