Skip to content

Commit

Permalink
Merge pull request #4 from illacloud/feat/homepage
Browse files Browse the repository at this point in the history
Feat/homepage
  • Loading branch information
Wangtaofeng authored Dec 29, 2023
2 parents 9ba32c1 + 416b580 commit 597ac9e
Show file tree
Hide file tree
Showing 20 changed files with 763 additions and 467 deletions.
4 changes: 3 additions & 1 deletion crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
project_id: '554141'
project_id: "554141"
api_token_env: CROWDIN_PERSONAL_TOKEN
preserve_hierarchy: true
files:
# JSON 翻译文件
- source: /i18n/en/**/*
translation: /i18n/%two_letters_code%/**/%original_file_name%
- source: /src/pages/**/*.mdx
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-pages/**/%original_file_name%
92 changes: 23 additions & 69 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const config: Config = {
theme: {
customCss: ["./src/ILLATheme/css/custom.css", "./src/css/custom.css"],
},
gtag: {
trackingID: "G-QW745VE33W",
},
} satisfies Preset.Options,
],
],
Expand All @@ -49,53 +52,24 @@ const config: Config = {
colorMode: {
defaultMode: "dark",
},
navbar: {
title: "ILLA",
logo: {
alt: "ILLA",
srcDark: "img/logo.svg",
src: "img/whiteLogo.svg",
width: "51px",
height: "24px",
metadata: [
{
name: "twitter:card",
content: "summary_large_image",
},
items: [{ to: "/blog", label: "Blog", position: "left" }],
},
footer: {
style: "dark",
links: [
{
title: "Community",
items: [
{
label: "Stack Overflow",
href: "https://stackoverflow.com/questions/tagged/docusaurus",
},
{
label: "Discord",
href: "https://discordapp.com/invite/docusaurus",
},
{
label: "Twitter",
href: "https://twitter.com/docusaurus",
},
],
},
{
title: "More",
items: [
{
label: "Blog",
to: "/blog",
},
{
label: "GitHub",
href: "https://github.com/facebook/docusaurus",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
{
name: "twitter:site",
content: "@illaCloudHQ",
},
{
name: "twitter:creator",
content: "@illaCloudHQ",
},
{
property: "og:image",
content: "img/social-card-large.png",
},
],
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
Expand Down Expand Up @@ -130,29 +104,6 @@ const config: Config = {
},
}
},
// function svgFix() {
// return {
// name: 'svg-fix',
// configureWebpack(config) {
// const svgRuleIndex = config.module.rules.findIndex((r) =>
// r.test.test('file.svg'),
// );
// const svgrConfigIndex = config.module.rules[
// svgRuleIndex
// ].oneOf.findIndex((r) => {
// if (!Array.isArray(r.use) || r.use.length === 0) return false;
// return r.use[0].loader.indexOf('@svgr/webpack') !== -1;
// });
// if (svgRuleIndex === -1 || svgrConfigIndex === -1) return;

// config.module.rules[svgRuleIndex].oneOf[
// svgrConfigIndex
// ].use[0].options.svgoConfig.plugins[0].params.overrides.cleanupIDs =
// false;
// return config;
// },
// };
// },
async function taildindcss() {
return {
name: "docusaurus-tailwindcss",
Expand Down Expand Up @@ -185,6 +136,9 @@ const config: Config = {
},
],
"./plugins/solution-plugin.js",
"./plugins/linkedin.js",
"./plugins/twitter.js",
"./plugins/chatwoot.js",
],
}

Expand Down
Loading

0 comments on commit 597ac9e

Please sign in to comment.