enforced new prettier config options

This commit is contained in:
Jordan Violet
2022-11-27 23:46:05 -05:00
parent c8ffc21374
commit 34cde35638
157 changed files with 2298 additions and 4940 deletions

View File

@@ -1,47 +1,47 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const footer = require("./footer");
const navbar = require("./navbar");
const plugins = require("./plugins");
const baseUrl = "/";
const footer = require('./footer');
const navbar = require('./navbar');
const plugins = require('./plugins');
const baseUrl = '/';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "SailPoint Developer Community",
title: 'SailPoint Developer Community',
tagline:
"The SailPoint Developer Community has everything you need to build, extend, and automate scalable identity solutions.",
url: "https://developer.sailpoint.com",
'The SailPoint Developer Community has everything you need to build, extend, and automate scalable identity solutions.',
url: 'https://developer.sailpoint.com',
baseUrl,
favicon: "img/SailPoint-Logo-Icon.ico",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
onDuplicateRoutes: "throw",
favicon: 'img/SailPoint-Logo-Icon.ico',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onDuplicateRoutes: 'throw',
i18n: {
defaultLocale: "en",
locales: ["en"],
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
"classic",
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
editUrl:
"https://github.com/sailpoint-oss/developer-community-site/edit/main/",
'https://github.com/sailpoint-oss/developer-community-site/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarCollapsible: true,
sidebarPath: require.resolve("./sidebars.js"),
docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/ApiItem", // Derived from docusaurus-theme-openapi
sidebarPath: require.resolve('./sidebars.js'),
docLayoutComponent: '@theme/DocPage',
docItemComponent: '@theme/ApiItem', // Derived from docusaurus-theme-openapi
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
@@ -51,11 +51,11 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
appId: "TB01H1DFAM",
apiKey: "726952a7a9389c484b6c96808a3e0010",
indexName: "prod_DEVELOPER_SAILPOINT_COM",
appId: 'TB01H1DFAM',
apiKey: '726952a7a9389c484b6c96808a3e0010',
indexName: 'prod_DEVELOPER_SAILPOINT_COM',
searchPagePath: false,
placeholder: "Search the Developer Community",
placeholder: 'Search the Developer Community',
},
docs: {
sidebar: {
@@ -64,7 +64,7 @@ const config = {
},
},
colorMode: {
defaultMode: "light",
defaultMode: 'light',
respectPrefersColorScheme: true,
},
navbar: navbar,
@@ -72,7 +72,7 @@ const config = {
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["http", "java", "ruby", "php", "csharp"],
additionalLanguages: ['http', 'java', 'ruby', 'php', 'csharp'],
},
}),
@@ -82,7 +82,7 @@ const config = {
mermaid: true,
},
themes: ["docusaurus-theme-openapi-docs", "@docusaurus/theme-mermaid"],
themes: ['docusaurus-theme-openapi-docs', '@docusaurus/theme-mermaid'],
};
module.exports = config;