Skip to content

Commit

Permalink
Merge pull request #8 from PixiEditor/fix-links
Browse files Browse the repository at this point in the history
Update packages and disable trailing slash
  • Loading branch information
flabbet authored Feb 1, 2022
2 parents 4c76ba9 + 2cc6978 commit e119e98
Show file tree
Hide file tree
Showing 3 changed files with 18,709 additions and 14,097 deletions.
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

0 comments on commit e119e98

Please sign in to comment.