1+ // @ts -check
2+ // `@type` JSDoc annotations allow editor autocompletion and type checking
3+ // (when paired with `@ts-check`).
4+ // There are various equivalent ways to declare your Docusaurus config.
5+ // See: https://docusaurus.io/docs/api/docusaurus-config
6+
7+ import { themes as prismThemes } from 'prism-react-renderer' ;
8+
9+ // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
10+
11+ /** @type {import('@docusaurus/types').Config } */
12+ const config = {
13+ title : 'Azure Linux Image Tools' ,
14+ tagline : 'Tools for building Azure Linux images' ,
15+ favicon : 'img/favicon.ico' ,
16+
17+ // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
18+ future : {
19+ v4 : true , // Improve compatibility with the upcoming Docusaurus v4
20+ } ,
21+
22+ // When GitHub Pages is public
23+ // url: 'https://microsoft.github.io',
24+ // baseUrl: '/azure-linux-image-tools/',
25+
26+ // While GitHub Pages is private
27+ url : 'https://vigilant-adventure-5jnm363.pages.github.io/' ,
28+ baseUrl : '/' ,
29+
30+ // GitHub pages deployment config.
31+ // If you aren't using GitHub pages, you don't need these.
32+ organizationName : 'Microsoft' , // Usually your GitHub org/user name.
33+ projectName : 'azure-linux-image-tools' , // Usually your repo name.
34+
35+ onBrokenLinks : 'throw' ,
36+ onBrokenMarkdownLinks : 'warn' ,
37+
38+ // Even if you don't use internationalization, you can use this field to set
39+ // useful metadata like html lang. For example, if your site is Chinese, you
40+ // may want to replace "en" with "zh-Hans".
41+ i18n : {
42+ defaultLocale : 'en' ,
43+ locales : [ 'en' ] ,
44+ } ,
45+
46+ presets : [
47+ [
48+ 'classic' ,
49+ /** @type {import('@docusaurus/preset-classic').Options } */
50+ ( {
51+ docs : {
52+ path : '../docs' ,
53+ routeBasePath : '/docs/' ,
54+ sidebarPath : './sidebars.js' ,
55+ // Please change this to your repo.
56+ // Remove this to remove the "edit this page" links.
57+ editUrl :
58+ 'https://github.com/microsoft/azure-linux-image-tools/tree/main/docs/' ,
59+ } ,
60+ theme : {
61+ customCss : './src/css/custom.css' ,
62+ } ,
63+ } ) ,
64+ ] ,
65+ ] ,
66+
67+ themeConfig :
68+ /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
69+ ( {
70+ // Replace with your project's social card
71+ image : 'img/docusaurus-social-card.jpg' ,
72+ navbar : {
73+ title : 'Azure Linux Image Tools' ,
74+ logo : {
75+ alt : 'Azure Linux Image Tools Logo' ,
76+ src : 'img/logo.svg' ,
77+ } ,
78+ items : [
79+ {
80+ type : 'doc' ,
81+ docId : 'imagecustomizer/README' ,
82+ position : 'left' ,
83+ label : 'Image Customizer' ,
84+ } ,
85+ {
86+ type : 'doc' ,
87+ docId : 'imagecreator/README' ,
88+ position : 'left' ,
89+ label : 'Image Creator' ,
90+ } ,
91+ {
92+ href : 'https://github.com/microsoft/azure-linux-image-tools' ,
93+ label : 'GitHub' ,
94+ position : 'right' ,
95+ } ,
96+ ] ,
97+ } ,
98+ footer : {
99+ style : 'dark' ,
100+ links : [
101+ {
102+ title : 'Docs' ,
103+ items : [
104+ {
105+ label : 'Image Customizer' ,
106+ to : '/docs/imagecustomizer' ,
107+ } ,
108+ {
109+ label : 'Image Creator' ,
110+ to : '/docs/imagecreator' ,
111+ } ,
112+ ] ,
113+ } ,
114+ {
115+ title : 'Community' ,
116+ items : [
117+ // {
118+ // label: 'Stack Overflow',
119+ // href: 'https://stackoverflow.com/questions/tagged/azure-linux-image-tools',
120+ // },
121+ // {
122+ // label: 'Discord',
123+ // href: 'https://discordapp.com/invite/azure-linux-image-tools',
124+ // },
125+ // {
126+ // label: 'X',
127+ // href: 'https://x.com/azure-linux-image-tools',
128+ // },
129+ ] ,
130+ } ,
131+ {
132+ title : 'More' ,
133+ items : [
134+ {
135+ label : 'GitHub' ,
136+ href : 'https://github.com/microsoft/azure-linux-image-tools' ,
137+ } ,
138+ ] ,
139+ } ,
140+ ] ,
141+ // copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
142+ } ,
143+ prism : {
144+ theme : prismThemes . github ,
145+ darkTheme : prismThemes . dracula ,
146+ } ,
147+ } ) ,
148+ themes : [
149+ [
150+ require . resolve ( "@easyops-cn/docusaurus-search-local" ) ,
151+ /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions } */
152+ {
153+ hashed : true ,
154+ } ,
155+ ] ,
156+ '@docusaurus/theme-mermaid'
157+ ] ,
158+ } ;
159+ export default config ;
0 commit comments