11import { themes as prismThemes } from 'prism-react-renderer' ;
22import type { Config } from '@docusaurus/types' ;
33import type * as Preset from '@docusaurus/preset-classic' ;
4+ import {
5+ DISCORD_URL ,
6+ REDDIT_URL ,
7+ TWITTER_URL ,
8+ GITHUB_MAIN_REPO_URL ,
9+ GITHUB_ISSUES_MAIN_URL ,
10+ GITHUB_FEATURES_URL ,
11+ VSCODE_MARKETPLACE_URL ,
12+ OPEN_VSX_URL ,
13+ CONTACT_EMAIL ,
14+ CAREERS_URL ,
15+ WEBSITE_PRIVACY_URL ,
16+ EXTENSION_PRIVACY_URL ,
17+ GITHUB_REPO_URL
18+ } from './src/constants' ;
419
520// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
621
@@ -38,7 +53,7 @@ const config: Config = {
3853 docs : {
3954 sidebarPath : './sidebars.ts' ,
4055 routeBasePath : '/' ,
41- editUrl : 'https://github.com/RooVetGit/Roo-Code-Docs/ edit/main/' ,
56+ editUrl : ` ${ GITHUB_REPO_URL } / edit/main/` ,
4257 showLastUpdateTime : true ,
4358 } ,
4459 blog : false , // Disable blog feature
@@ -156,12 +171,12 @@ const config: Config = {
156171 } ,
157172 items : [
158173 {
159- href : 'https://github.com/RooVetGit/Roo-Code' ,
174+ href : GITHUB_MAIN_REPO_URL ,
160175 label : 'GitHub' ,
161176 position : 'right' ,
162177 } ,
163178 {
164- href : 'https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline' ,
179+ href : VSCODE_MARKETPLACE_URL ,
165180 label : 'Install Extension' ,
166181 position : 'right' ,
167182 } ,
@@ -175,15 +190,15 @@ const config: Config = {
175190 items : [
176191 {
177192 label : 'Discord' ,
178- href : 'https://discord.gg/roocode' ,
193+ href : DISCORD_URL ,
179194 } ,
180195 {
181196 label : 'Reddit' ,
182- href : 'https://www.reddit.com/r/RooCode/' ,
197+ href : REDDIT_URL ,
183198 } ,
184199 {
185200 label : 'Twitter' ,
186- href : 'https://x.com/roo_code' ,
201+ href : TWITTER_URL ,
187202 } ,
188203 ] ,
189204 } ,
@@ -192,11 +207,11 @@ const config: Config = {
192207 items : [
193208 {
194209 label : 'Issues' ,
195- href : 'https://github.com/RooVetGit/Roo-Code/issues' ,
210+ href : GITHUB_ISSUES_MAIN_URL ,
196211 } ,
197212 {
198213 label : 'Feature Requests' ,
199- href : 'https://github.com/RooVetGit/Roo-Code/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop' ,
214+ href : GITHUB_FEATURES_URL ,
200215 } ,
201216 ] ,
202217 } ,
@@ -205,11 +220,11 @@ const config: Config = {
205220 items : [
206221 {
207222 label : 'VS Code Marketplace' ,
208- href : 'https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline' ,
223+ href : VSCODE_MARKETPLACE_URL ,
209224 } ,
210225 {
211226 label : 'Open VSX Registry' ,
212- href : 'https://open-vsx.org/extension/RooVeterinaryInc/roo-cline' ,
227+ href : OPEN_VSX_URL ,
213228 } ,
214229 ] ,
215230 } ,
@@ -218,20 +233,20 @@ const config: Config = {
218233 items : [
219234 {
220235 label : 'Contact' ,
221- 236+ href : CONTACT_EMAIL ,
222237 target : '_self' ,
223238 } ,
224239 {
225240 label : 'Careers' ,
226- href : 'https://careers.roocode.com' ,
241+ href : CAREERS_URL ,
227242 } ,
228243 {
229244 label : 'Website Privacy Policy' ,
230- href : 'https://roocode.com/privacy' ,
245+ href : WEBSITE_PRIVACY_URL ,
231246 } ,
232247 {
233248 label : 'Extension Privacy Policy' ,
234- href : 'https://github.com/RooVetGit/Roo-Code/blob/main/PRIVACY.md' ,
249+ href : EXTENSION_PRIVACY_URL ,
235250 } ,
236251 ] ,
237252 } ,
0 commit comments