Skip to content

Commit

Permalink
build: added gradle and groovy style.
Browse files Browse the repository at this point in the history
  • Loading branch information
LMS5413 committed Apr 19, 2024
1 parent 79b78e2 commit 5758a3a
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 84 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.docusaurus/
build/
build/
.idea
6 changes: 4 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

162 changes: 81 additions & 81 deletions docusaurus.config.ts
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;

0 comments on commit 5758a3a

Please sign in to comment.