1- const { join, resolve } = require ( " node:path" ) ;
1+ const { join, resolve } = require ( ' node:path' ) ;
22
3- const { config } = require ( " @apify/docs-theme" ) ;
3+ const { config } = require ( ' @apify/docs-theme' ) ;
44
5- const { externalLinkProcessor } = require ( " ./tools/utils/externalLink" ) ;
6- const versions = require ( " ./versions.json" ) ;
5+ const { externalLinkProcessor } = require ( ' ./tools/utils/externalLink' ) ;
6+ const versions = require ( ' ./versions.json' ) ;
77
88const GROUP_ORDER = [
9- " Apify API clients" ,
10- " HTTP clients" ,
11- " Resource clients" ,
12- " Errors" ,
13- " Models" ,
14- " Typed dicts" ,
15- " Other" ,
9+ ' Apify API clients' ,
10+ ' HTTP clients' ,
11+ ' Resource clients' ,
12+ ' Errors' ,
13+ ' Models' ,
14+ ' Typed dicts' ,
15+ ' Other' ,
1616] ;
1717
1818const groupSort = ( g1 , g2 ) => {
@@ -46,57 +46,57 @@ module.exports = {
4646 useCssCascadeLayers : false ,
4747 } ,
4848 } ,
49- title : " API client for Python | Apify Documentation" ,
49+ title : ' API client for Python | Apify Documentation' ,
5050 url : absoluteUrl ,
51- baseUrl : " /api/client/python" ,
51+ baseUrl : ' /api/client/python' ,
5252 trailingSlash : false ,
53- organizationName : " apify" ,
54- projectName : " apify-client-python" ,
55- favicon : " img/favicon.ico" ,
56- scripts : [ " /js/custom.js" , ...( config . scripts ?? [ ] ) ] ,
57- onBrokenLinks : /** @type {import('@docusaurus/types').ReportingSeverity } */ ( " warn" ) ,
58- onBrokenMarkdownLinks : /** @type {import('@docusaurus/types').ReportingSeverity } */ ( " warn" ) ,
53+ organizationName : ' apify' ,
54+ projectName : ' apify-client-python' ,
55+ favicon : ' img/favicon.ico' ,
56+ scripts : [ ' /js/custom.js' , ...( config . scripts ?? [ ] ) ] ,
57+ onBrokenLinks : /** @type {import('@docusaurus/types').ReportingSeverity } */ ( ' warn' ) ,
58+ onBrokenMarkdownLinks : /** @type {import('@docusaurus/types').ReportingSeverity } */ ( ' warn' ) ,
5959 themes : [
6060 [
61- " @apify/docs-theme" ,
61+ ' @apify/docs-theme' ,
6262 {
6363 changelogFromRoot : true ,
6464 changelogDisplayedSidebar : `sidebar` ,
6565 subNavbar : {
66- title : " API Client for Python" ,
66+ title : ' API Client for Python' ,
6767 items : [
6868 {
69- type : " doc" ,
70- docId : " introduction/introduction" ,
71- label : " Docs" ,
72- position : " left" ,
73- activeBaseRegex : " /docs(?!/changelog)" ,
69+ type : ' doc' ,
70+ docId : ' introduction/introduction' ,
71+ label : ' Docs' ,
72+ position : ' left' ,
73+ activeBaseRegex : ' /docs(?!/changelog)' ,
7474 } ,
7575 {
76- type : " custom-versioned-reference" ,
77- label : " Reference" ,
78- position : " left" ,
79- activeBaseRegex : " /reference" ,
76+ type : ' custom-versioned-reference' ,
77+ label : ' Reference' ,
78+ position : ' left' ,
79+ activeBaseRegex : ' /reference' ,
8080 } ,
8181 {
82- type : " doc" ,
83- docId : " changelog" ,
84- label : " Changelog" ,
85- position : " left" ,
86- activeBaseRegex : " /docs/changelog" ,
82+ type : ' doc' ,
83+ docId : ' changelog' ,
84+ label : ' Changelog' ,
85+ position : ' left' ,
86+ activeBaseRegex : ' /docs/changelog' ,
8787 } ,
8888 {
89- href : " https://github.com/apify/apify-client-python" ,
90- label : " GitHub" ,
91- position : " left" ,
89+ href : ' https://github.com/apify/apify-client-python' ,
90+ label : ' GitHub' ,
91+ position : ' left' ,
9292 } ,
9393 {
94- type : " docsVersionDropdown" ,
95- position : " left" ,
96- className : " navbar__item" ,
97- " data-api-links" : JSON . stringify ( [
98- " reference/next" ,
99- ...versions . map ( ( version , i ) => ( i === 0 ? " reference" : `reference/${ version } ` ) ) ,
94+ type : ' docsVersionDropdown' ,
95+ position : ' left' ,
96+ className : ' navbar__item' ,
97+ ' data-api-links' : JSON . stringify ( [
98+ ' reference/next' ,
99+ ...versions . map ( ( version , i ) => ( i === 0 ? ' reference' : `reference/${ version } ` ) ) ,
100100 ] ) ,
101101 dropdownItemsBefore : [ ] ,
102102 dropdownItemsAfter : [ ] ,
@@ -108,47 +108,47 @@ module.exports = {
108108 ] ,
109109 presets : /** @type {import('@docusaurus/types').PresetConfig[] } */ ( [
110110 [
111- " @docusaurus/preset-classic" ,
111+ ' @docusaurus/preset-classic' ,
112112 /** @type {import('@docusaurus/preset-classic').Options } */
113113 ( {
114114 docs : {
115- path : " ../docs" ,
116- sidebarPath : " ./sidebars.js" ,
115+ path : ' ../docs' ,
116+ sidebarPath : ' ./sidebars.js' ,
117117 rehypePlugins : [ externalLinkProcessor ] ,
118- editUrl : " https://github.com/apify/apify-client-python/blob/master/website/" ,
118+ editUrl : ' https://github.com/apify/apify-client-python/blob/master/website/' ,
119119 } ,
120120 } ) ,
121121 ] ,
122122 ] ) ,
123123 plugins : [
124124 [
125- " @apify/docusaurus-plugin-typedoc-api" ,
125+ ' @apify/docusaurus-plugin-typedoc-api' ,
126126 {
127- projectRoot : "." ,
127+ projectRoot : '.' ,
128128 changelogs : false ,
129129 readmes : false ,
130- packages : [ { path : "." } ] ,
130+ packages : [ { path : '.' } ] ,
131131 typedocOptions : {
132132 excludeExternals : false ,
133133 } ,
134134 sortSidebar : groupSort ,
135- routeBasePath : " reference" ,
135+ routeBasePath : ' reference' ,
136136 python : true ,
137137 pythonOptions : {
138- pythonModulePath : join ( __dirname , " ../src/apify_client" ) ,
139- moduleShortcutsPath : join ( __dirname , " module_shortcuts.json" ) ,
138+ pythonModulePath : join ( __dirname , ' ../src/apify_client' ) ,
139+ moduleShortcutsPath : join ( __dirname , ' module_shortcuts.json' ) ,
140140 } ,
141141 } ,
142142 ] ,
143143 [
144- resolve ( __dirname , " src/plugins/docusaurus-plugin-segment" ) ,
144+ resolve ( __dirname , ' src/plugins/docusaurus-plugin-segment' ) ,
145145 {
146146 writeKey : process . env . SEGMENT_TOKEN ,
147147 allowedInDev : false ,
148148 } ,
149149 ] ,
150150 [
151- " @signalwire/docusaurus-plugin-llms-txt" ,
151+ ' @signalwire/docusaurus-plugin-llms-txt' ,
152152 {
153153 content : {
154154 includeVersionedDocs : false ,
@@ -158,10 +158,10 @@ module.exports = {
158158 includePages : true ,
159159 relativePaths : false ,
160160 excludeRoutes : [
161- " /api/client/python/reference/[0-9]*/**" ,
162- " /api/client/python/reference/[0-9]*" ,
163- " /api/client/python/reference/next/**" ,
164- " /api/client/python/reference/next" ,
161+ ' /api/client/python/reference/[0-9]*/**' ,
162+ ' /api/client/python/reference/[0-9]*' ,
163+ ' /api/client/python/reference/next/**' ,
164+ ' /api/client/python/reference/next' ,
165165 ] ,
166166 } ,
167167 } ,
@@ -179,11 +179,11 @@ module.exports = {
179179 ...config . themeConfig . footer ,
180180 logo : {
181181 ...config . themeConfig . footer . logo ,
182- href : " docs" ,
182+ href : ' docs' ,
183183 } ,
184184 } ,
185185 } ,
186- staticDirectories : [ " node_modules/@apify/docs-theme/static" , " static" ] ,
186+ staticDirectories : [ ' node_modules/@apify/docs-theme/static' , ' static' ] ,
187187 customFields : {
188188 ...( config . customFields ?? [ ] ) ,
189189 } ,
0 commit comments