-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: added gradle and groovy style.
- Loading branch information
Showing
3 changed files
with
87 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
.docusaurus/ | ||
build/ | ||
build/ | ||
.idea |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,96 @@ | ||
import type * as Preset from '@docusaurus/preset-classic'; | ||
import type { Config } from '@docusaurus/types'; | ||
import { catppuccinLatteTheme, catppuccinMochaTheme } from './src/theme/prism-catppuccin'; | ||
import type {Config} from '@docusaurus/types'; | ||
import {catppuccinLatteTheme, catppuccinMochaTheme} from './src/theme/prism-catppuccin'; | ||
|
||
const config: Config = { | ||
title: 'TheGuideForYou', | ||
tagline: 'Prático, didático e multi-linguagem', | ||
favicon: 'img/favicon.ico', | ||
title: 'TheGuideForYou', | ||
tagline: 'Prático, didático e multi-linguagem', | ||
favicon: 'img/favicon.ico', | ||
|
||
// Set the production url of your site here | ||
url: 'https://theguideforyou.github.io/', | ||
// Set the /<baseUrl>/ pathname under which your site is served | ||
// For GitHub pages deployment, it is often '/<projectName>/' | ||
baseUrl: '/', | ||
// Set the production url of your site here | ||
url: 'https://theguideforyou.github.io/', | ||
// Set the /<baseUrl>/ pathname under which your site is served | ||
// For GitHub pages deployment, it is often '/<projectName>/' | ||
baseUrl: '/', | ||
|
||
// GitHub pages deployment config. | ||
// If you aren't using GitHub pages, you don't need these. | ||
organizationName: 'theguideforyou', // Usually your GitHub org/user name. | ||
projectName: 'theguideforyou.github.io', // Usually your repo name. | ||
// GitHub pages deployment config. | ||
// If you aren't using GitHub pages, you don't need these. | ||
organizationName: 'theguideforyou', // Usually your GitHub org/user name. | ||
projectName: 'theguideforyou.github.io', // Usually your repo name. | ||
|
||
onBrokenLinks: 'ignore', //throw | ||
onBrokenMarkdownLinks: 'warn', | ||
trailingSlash: true, | ||
onBrokenLinks: 'ignore', //throw | ||
onBrokenMarkdownLinks: 'warn', | ||
trailingSlash: true, | ||
|
||
// Even if you don't use internationalization, you can use this field to set | ||
// useful metadata like html lang. For example, if your site is Chinese, you | ||
// may want to replace "en" with "zh-Hans". | ||
i18n: { | ||
defaultLocale: 'en', | ||
locales: ['en', 'pt'], | ||
}, | ||
// Even if you don't use internationalization, you can use this field to set | ||
// useful metadata like html lang. For example, if your site is Chinese, you | ||
// may want to replace "en" with "zh-Hans". | ||
i18n: { | ||
defaultLocale: 'en', | ||
locales: ['en', 'pt'], | ||
}, | ||
|
||
presets: [ | ||
[ | ||
'classic', | ||
{ | ||
docs: { | ||
sidebarPath: './sidebars/index.ts', | ||
// Please change this to your repo. | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: | ||
'https://github.com/theguideforyou/theguideforyou.github.io/tree/main', | ||
}, | ||
theme: { | ||
customCss: './src/css/custom.css', | ||
}, | ||
} satisfies Preset.Options, | ||
presets: [ | ||
[ | ||
'classic', | ||
{ | ||
docs: { | ||
sidebarPath: './sidebars/index.ts', | ||
// Please change this to your repo. | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: | ||
'https://github.com/theguideforyou/theguideforyou.github.io/tree/main', | ||
}, | ||
theme: { | ||
customCss: './src/css/custom.css', | ||
}, | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
], | ||
|
||
themeConfig: { | ||
// Replace with your project's social card | ||
image: 'img/docusaurus-social-card.jpg', | ||
navbar: { | ||
title: 'TheGuideForYou', | ||
logo: { | ||
alt: 'My Site Logo', | ||
src: 'img/readme/TheGuideLogo.png', | ||
}, | ||
items: [ | ||
{ | ||
type: 'docSidebar', | ||
sidebarId: 'tutorialSidebar', | ||
position: 'left', | ||
label: 'Documentação', | ||
themeConfig: { | ||
// Replace with your project's social card | ||
image: 'img/docusaurus-social-card.jpg', | ||
navbar: { | ||
title: 'TheGuideForYou', | ||
logo: { | ||
alt: 'My Site Logo', | ||
src: 'img/readme/TheGuideLogo.png', | ||
}, | ||
items: [ | ||
{ | ||
type: 'docSidebar', | ||
sidebarId: 'tutorialSidebar', | ||
position: 'left', | ||
label: 'Documentação', | ||
}, | ||
{ | ||
href: 'https://github.com/theguideforyou', | ||
label: 'GitHub', | ||
position: 'right', | ||
}, | ||
], | ||
}, | ||
{ | ||
href: 'https://github.com/theguideforyou', | ||
label: 'GitHub', | ||
position: 'right', | ||
}, | ||
], | ||
}, | ||
prism: { | ||
theme: catppuccinLatteTheme, | ||
darkTheme: catppuccinMochaTheme, | ||
additionalLanguages: ['java', 'ini', 'shell-session'] | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
plugins: [ | ||
async function myPlugin() { | ||
return { | ||
name: "docusaurus-tailwindcss", | ||
configurePostCss(postcssOptions) { | ||
// Appends TailwindCSS and AutoPrefixer. | ||
postcssOptions.plugins.push(require("tailwindcss/nesting")); | ||
postcssOptions.plugins.push(require("tailwindcss")); | ||
postcssOptions.plugins.push(require("autoprefixer")); | ||
return postcssOptions; | ||
prism: { | ||
theme: catppuccinLatteTheme, | ||
darkTheme: catppuccinMochaTheme, | ||
additionalLanguages: ['java', 'ini', 'shell-session', 'gradle', 'groovy'] | ||
}, | ||
}; | ||
} | ||
] | ||
} satisfies Preset.ThemeConfig, | ||
plugins: [ | ||
async function myPlugin() { | ||
return { | ||
name: "docusaurus-tailwindcss", | ||
configurePostCss(postcssOptions) { | ||
// Appends TailwindCSS and AutoPrefixer. | ||
postcssOptions.plugins.push(require("tailwindcss/nesting")); | ||
postcssOptions.plugins.push(require("tailwindcss")); | ||
postcssOptions.plugins.push(require("autoprefixer")); | ||
return postcssOptions; | ||
}, | ||
}; | ||
} | ||
] | ||
}; | ||
|
||
export default config; |