Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages and disable trailing slash #8

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports =
baseUrl: '/', // Base URL for your project */
projectName: "pixieditor.github.io",
organizationName: 'PixiEditor',
trailingSlash: false,
scripts: [{
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",
async: true,
Expand All @@ -26,7 +27,15 @@ module.exports =
path: '../docs',
// Sidebars file relative to website dir.
sidebarPath: require.resolve('./sidebars.json'),
},
},
googleAnalytics: {
trackingID: 'G-XLN6FQ07LW',
anonymizeIP: true,
},
gtag: {
trackingID: 'G-XLN6FQ07LW',
anonymizeIP: true,
},
theme: {
customCss: [require.resolve('./src/css/theme.css')],
}
Expand All @@ -44,14 +53,6 @@ module.exports =
defaultMode: "dark",
disableSwitch: true
},
googleAnalytics: {
trackingID: 'G-XLN6FQ07LW',
anonymizeIP: true,
},
gtag: {
trackingID: 'G-XLN6FQ07LW',
anonymizeIP: true,
},
navbar: {
title: "PixiEditor",
logo: {
Expand Down
143 changes: 143 additions & 0 deletions website/docusaurus.config.js.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
module.exports =
{
favicon: 'img/favicon.ico',
title: "PixiEditor",
tagline: 'A beautiful pixel art editor',
url: 'https://pixieditor.net', // Your website URL
baseUrl: '/', // Base URL for your project */
projectName: "pixieditor.github.io",
organizationName: 'PixiEditor',
scripts: [{
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",
async: true,
["data-ad-client"]: "ca-pub-8372287848779618"
},
{
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8372287848779618",
async: true,
crossOrigin: "anonymous"
}],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
// Docs folder path relative to website dir.
path: '../docs',
// Sidebars file relative to website dir.
sidebarPath: require.resolve('./sidebars.json'),
},
googleAnalytics: {
trackingID: 'G-XLN6FQ07LW',
anonymizeIP: true,
},
gtag: {
trackingID: 'G-XLN6FQ07LW',
anonymizeIP: true,
},
theme: {
customCss: [require.resolve('./src/css/theme.css')],
}
// ...
},
],
],

themeConfig: {
prism:{
theme: require('prism-react-renderer/themes/dracula'),
additionalLanguages: ['csharp'],
},
colorMode: {
defaultMode: "dark",
disableSwitch: true
},
navbar: {
title: "PixiEditor",
logo: {
alt: "PixiEditor Logo",
src: "img/favicon-96x96.png"
},
items: [
{to: 'docs/introduction', label: 'Docs', position: 'left'},
{to: 'help', label: 'Help', position: 'left'},
{
href: 'https://github.com/PixiEditor/PixiEditor',
label: 'GitHub',
position: 'right',
},
{
href: 'https://opencollective.com/pixieditor',
label: 'Donate ✨',
position: 'right',
},
{to: 'blog', label: 'Blog', position: 'left'},
{to: "colorpicker", label: "Color Picker", position: 'left'}
],
},
footer: {
logo: {
alt: "PixiEditor Logo",
src: "img/favicon-96x96.png",
href: "/"
},
links: [
{
title: "Docs",
items: [
{
label: "Getting started",
to: "docs/Introduction"
}
],
},
{
title: "Community",
items: [
{
label: "Reddit",
href: "https://www.reddit.com/r/PixiEditor/"
},
{
label: "Twitter",
href: "https://twitter.com/PixiEditor"
},
{
label: "Discord",
href: "https://discord.gg/qSRMYmq"
},
{
label: "YouTube",
href: "https://www.youtube.com/channel/UCT5XvyvX1q5PAIaXfWmpsMQ"
},
{
label: "Instagram",
href: "https://instagram.com/pixi.editor"
}
]
},
{
title: "More",
items: [
{
label: "Donate",
href: "https://opencollective.com/pixieditor"
}
]
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
to: "docs/privacy-policy"
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} PixiEditor Organization`,
},
image: "img/PixiEditorBanner.png",
sidebarCollapse: false
},
};
Loading