1- import type { Options as ClientRedirectsPluginOptions } from ' @docusaurus/plugin-client-redirects' ;
2- import type { Options as BlogPluginOptions } from ' @docusaurus/plugin-content-blog' ;
3- import type * as Preset from ' @docusaurus/preset-classic' ;
4- import type { Config } from ' @docusaurus/types' ;
5- import { themes as prismThemes } from ' prism-react-renderer' ;
6- import redirects from ' ./redirects.json' ;
1+ import type { Options as ClientRedirectsPluginOptions } from " @docusaurus/plugin-client-redirects" ;
2+ import type { Options as BlogPluginOptions } from " @docusaurus/plugin-content-blog" ;
3+ import type * as Preset from " @docusaurus/preset-classic" ;
4+ import type { Config } from " @docusaurus/types" ;
5+ import { themes as prismThemes } from " prism-react-renderer" ;
6+ import redirects from " ./redirects.json" ;
77
8- const githubRepoUrl = ' https://github.com/halildurmus/win32' ;
8+ const githubRepoUrl = " https://github.com/halildurmus/win32" ;
99
1010const config : Config = {
11- title : ' win32' ,
12- tagline : ' Call Windows APIs from Dart' ,
13- url : ' https://win32.pub' ,
14- baseUrl : '/' ,
15- organizationName : ' halildurmus' ,
16- projectName : ' win32' ,
11+ title : " win32" ,
12+ tagline : " Call Windows APIs from Dart" ,
13+ url : " https://win32.pub" ,
14+ baseUrl : "/" ,
15+ organizationName : " halildurmus" ,
16+ projectName : " win32" ,
1717
1818 future : {
1919 v4 : true ,
@@ -22,38 +22,38 @@ const config: Config = {
2222
2323 headTags : [
2424 {
25- tagName : ' script' ,
25+ tagName : " script" ,
2626 attributes : {
27- type : ' application/ld+json' ,
27+ type : " application/ld+json" ,
2828 } ,
2929 innerHTML : JSON . stringify ( {
30- ' @context' : ' https://schema.org' ,
31- ' @type' : ' WebSite' ,
32- name : ' win32.pub' ,
33- url : ' https://win32.pub' ,
30+ " @context" : " https://schema.org" ,
31+ " @type" : " WebSite" ,
32+ name : " win32.pub" ,
33+ url : " https://win32.pub" ,
3434 } ) ,
3535 } ,
3636 {
37- tagName : ' meta' ,
37+ tagName : " meta" ,
3838 attributes : {
39- property : ' og:site_name' ,
40- content : ' win32.pub' ,
39+ property : " og:site_name" ,
40+ content : " win32.pub" ,
4141 } ,
4242 } ,
4343 {
44- tagName : ' link' ,
44+ tagName : " link" ,
4545 attributes : {
46- rel : ' icon' ,
47- type : ' image/png' ,
48- href : ' /img/favicon.png' ,
46+ rel : " icon" ,
47+ type : " image/png" ,
48+ href : " /img/favicon.png" ,
4949 } ,
5050 } ,
5151 {
52- tagName : ' link' ,
52+ tagName : " link" ,
5353 attributes : {
54- rel : ' icon' ,
55- type : ' image/svg+xml' ,
56- href : ' /img/favicon.svg' ,
54+ rel : " icon" ,
55+ type : " image/svg+xml" ,
56+ href : " /img/favicon.svg" ,
5757 } ,
5858 } ,
5959 ] ,
@@ -62,13 +62,13 @@ const config: Config = {
6262 // useful metadata like html lang. For example, if your site is Chinese, you
6363 // may want to replace "en" with "zh-Hans".
6464 i18n : {
65- defaultLocale : 'en' ,
66- locales : [ 'en' ] ,
65+ defaultLocale : "en" ,
66+ locales : [ "en" ] ,
6767 } ,
6868
6969 plugins : [
7070 [
71- ' @docusaurus/plugin-client-redirects' ,
71+ " @docusaurus/plugin-client-redirects" ,
7272 {
7373 redirects : redirects ,
7474 createRedirects ( existingPath ) {
@@ -84,74 +84,74 @@ const config: Config = {
8484 } ,
8585 } satisfies ClientRedirectsPluginOptions ,
8686 ] ,
87- ' ./plugins/tailwindcss.ts' ,
87+ " ./plugins/tailwindcss.ts" ,
8888 [
89- ' ./plugins/blog.js' ,
89+ " ./plugins/blog.js" ,
9090 {
91- path : ' blog' ,
92- routeBasePath : ' /blog' ,
93- blogTitle : ' win32 Blog' ,
91+ path : " blog" ,
92+ routeBasePath : " /blog" ,
93+ blogTitle : " win32 Blog" ,
9494 blogDescription :
95- ' A resource for package:win32, Flutter and Dart ecosystem, and Windows development.' ,
95+ " A resource for package:win32, Flutter and Dart ecosystem, and Windows development." ,
9696 blogSidebarCount : 0 ,
97- blogSidebarTitle : ' All posts' ,
97+ blogSidebarTitle : " All posts" ,
9898 feedOptions : {
99- type : ' all' ,
100- title : ' win32 Blog' ,
99+ type : " all" ,
100+ title : " win32 Blog" ,
101101 description :
102- ' A resource for package:win32, Flutter and Dart ecosystem, and Windows development.' ,
102+ " A resource for package:win32, Flutter and Dart ecosystem, and Windows development." ,
103103 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } • Halil Durmus` ,
104104 } ,
105105 postsPerPage : 12 ,
106106 admonitions : {
107- keywords : [ ' simple' , ' note' , ' tip' , ' info' , ' warning' , ' danger' ] ,
107+ keywords : [ " simple" , " note" , " tip" , " info" , " warning" , " danger" ] ,
108108 } ,
109109 } satisfies BlogPluginOptions ,
110110 ] ,
111111 [
112- ' ./plugins/changelog.js' ,
112+ " ./plugins/changelog.js" ,
113113 {
114- routeBasePath : ' /changelog' ,
115- authorsMapPath : ' authors.json' ,
116- blogTitle : ' win32 Changelog' ,
114+ routeBasePath : " /changelog" ,
115+ authorsMapPath : " authors.json" ,
116+ blogTitle : " win32 Changelog" ,
117117 blogDescription :
118- ' Keep yourself up-to-date about new features in every release' ,
119- blogSidebarCount : ' ALL' ,
120- blogSidebarTitle : ' Changelog' ,
118+ " Keep yourself up-to-date about new features in every release" ,
119+ blogSidebarCount : " ALL" ,
120+ blogSidebarTitle : " Changelog" ,
121121 feedOptions : {
122- type : ' all' ,
123- title : ' win32 Changelog' ,
122+ type : " all" ,
123+ title : " win32 Changelog" ,
124124 description :
125- ' Keep yourself up-to-date about new features in every release' ,
125+ " Keep yourself up-to-date about new features in every release" ,
126126 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } • Halil Durmus` ,
127127 } ,
128128 postsPerPage : 20 ,
129129 showReadingTime : false ,
130130 } ,
131131 ] ,
132- ' ./plugins/clarity.ts' ,
132+ " ./plugins/clarity.ts" ,
133133 ] ,
134134
135135 presets : [
136136 [
137- ' classic' ,
137+ " classic" ,
138138 {
139139 blog : false ,
140140 docs : {
141- path : ' docs' ,
142- sidebarPath : require . resolve ( ' ./sidebars.js' ) ,
141+ path : " docs" ,
142+ sidebarPath : require . resolve ( " ./sidebars.js" ) ,
143143 editUrl : `${ githubRepoUrl } /tree/main/website` ,
144144 showLastUpdateAuthor : true ,
145145 showLastUpdateTime : true ,
146146 admonitions : {
147- keywords : [ ' simple' , ' note' , ' tip' , ' info' , ' warning' , ' danger' ] ,
147+ keywords : [ " simple" , " note" , " tip" , " info" , " warning" , " danger" ] ,
148148 } ,
149- exclude : [ ' **/**/_*.md' ] ,
149+ exclude : [ " **/**/_*.md" ] ,
150150 // TODO(halildurmus): Enable feedback plugin.
151151 // remarkPlugins: [feedbackPlugin],
152152 } ,
153153 gtag : {
154- trackingID : ' G-SPFSB6RTZW' ,
154+ trackingID : " G-SPFSB6RTZW" ,
155155 } ,
156156 pages : {
157157 editLocalizedFiles : true ,
@@ -160,16 +160,16 @@ const config: Config = {
160160 showLastUpdateTime : true ,
161161 } ,
162162 sitemap : {
163- ignorePatterns : [ ' **/_*.md' ] ,
163+ ignorePatterns : [ " **/_*.md" ] ,
164164 } ,
165165 theme : {
166166 customCss : [
167- require . resolve ( ' ./src/win32-theme/css/colors.css' ) ,
168- require . resolve ( ' ./src/win32-theme/css/fonts.css' ) ,
169- require . resolve ( ' ./src/win32-theme/css/custom.css' ) ,
170- require . resolve ( ' ./src/css/custom.css' ) ,
171- require . resolve ( ' ./src/css/split-pane.css' ) ,
172- require . resolve ( ' ./src/css/demo-page.css' ) ,
167+ require . resolve ( " ./src/win32-theme/css/colors.css" ) ,
168+ require . resolve ( " ./src/win32-theme/css/fonts.css" ) ,
169+ require . resolve ( " ./src/win32-theme/css/custom.css" ) ,
170+ require . resolve ( " ./src/css/custom.css" ) ,
171+ require . resolve ( " ./src/css/split-pane.css" ) ,
172+ require . resolve ( " ./src/css/demo-page.css" ) ,
173173 ] ,
174174 } ,
175175 } satisfies Preset . Options ,
@@ -180,9 +180,9 @@ const config: Config = {
180180
181181 themeConfig : {
182182 algolia : {
183- appId : ' HX017D1R57' ,
184- apiKey : ' 8d7bf2c1447cea6d0acbdcc9615e1b08' ,
185- indexName : ' win32' ,
183+ appId : " HX017D1R57" ,
184+ apiKey : " 8d7bf2c1447cea6d0acbdcc9615e1b08" ,
185+ indexName : " win32" ,
186186 contextualSearch : true ,
187187 } ,
188188 colorMode : {
@@ -193,44 +193,44 @@ const config: Config = {
193193 autoCollapseCategories : true ,
194194 } ,
195195 } ,
196- image : ' img/social.png' ,
196+ image : " img/social.png" ,
197197 prism : {
198198 theme : prismThemes . github ,
199199 darkTheme : prismThemes . vsDark ,
200- additionalLanguages : [ ' bash' , ' dart' , ' diff' , ' json' ] ,
200+ additionalLanguages : [ " bash" , " dart" , " diff" , " json" ] ,
201201 magicComments : [
202202 // Remember to extend the default highlight class name as well!
203203 {
204- className : ' theme-code-block-highlighted-line' ,
205- line : ' highlight-next-line' ,
206- block : { start : ' highlight-start' , end : ' highlight-end' } ,
204+ className : " theme-code-block-highlighted-line" ,
205+ line : " highlight-next-line" ,
206+ block : { start : " highlight-start" , end : " highlight-end" } ,
207207 } ,
208208 {
209- className : ' code-block-hidden' ,
210- line : ' hide-next-line' ,
211- block : { start : ' hide-start' , end : ' hide-end' } ,
209+ className : " code-block-hidden" ,
210+ line : " hide-next-line" ,
211+ block : { start : " hide-start" , end : " hide-end" } ,
212212 } ,
213213 {
214- className : ' theme-code-block-added-line' ,
215- line : ' added-line' ,
216- block : { start : ' added-start' , end : ' added-end' } ,
214+ className : " theme-code-block-added-line" ,
215+ line : " added-line" ,
216+ block : { start : " added-start" , end : " added-end" } ,
217217 } ,
218218 {
219- className : ' theme-code-block-removed-line' ,
220- line : ' removed-line' ,
221- block : { start : ' removed-start' , end : ' removed-end' } ,
219+ className : " theme-code-block-removed-line" ,
220+ line : " removed-line" ,
221+ block : { start : " removed-start" , end : " removed-end" } ,
222222 } ,
223223 ] ,
224224 } ,
225225 metadata : [
226226 {
227- name : ' twitter:title' ,
228- content : ' win32 | Call Windows APIs from Dart' ,
227+ name : " twitter:title" ,
228+ content : " win32 | Call Windows APIs from Dart" ,
229229 } ,
230230 {
231- name : ' twitter:description' ,
231+ name : " twitter:description" ,
232232 content :
233- ' Bring the full capability of the Windows APIs to your Flutter and Dart applications.' ,
233+ " Bring the full capability of the Windows APIs to your Flutter and Dart applications." ,
234234 } ,
235235 ] ,
236236 } satisfies Preset . ThemeConfig ,
@@ -239,7 +239,7 @@ const config: Config = {
239239
240240 customFields : {
241241 description :
242- ' Bring the full capability of the Windows APIs to your Flutter and Dart applications.' ,
242+ " Bring the full capability of the Windows APIs to your Flutter and Dart applications." ,
243243 } ,
244244} ;
245245
0 commit comments