feat(docs): add logo (#23)

This commit is contained in:
Jacob
2022-08-04 16:41:24 +02:00
committed by GitHub
parent 129d557004
commit 78698e40a4
8 changed files with 14 additions and 9 deletions

View File

@@ -2,6 +2,9 @@ name: Deploy Documentation to GitHub Pages
on: workflow_dispatch
env:
HUSKY: 0
jobs:
deploy:
name: Deploy

View File

@@ -1,6 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['core', 'ui']],
'scope-enum': [2, 'always', ['core', 'ui', 'docs']],
},
};

View File

@@ -27,6 +27,7 @@ const config = {
logo: {
alt: 'Motion Canvas Logo',
src: 'img/logo.svg',
srcDark: 'img/logo_dark.svg',
},
items: [
{
@@ -113,6 +114,7 @@ const config = {
{
routeBasePath: '/',
sidebarPath: 'sidebars.js',
exclude: ['**/api/*.md'],
editUrl: ({versionDocsDirPath, docPath}) =>
`https://github.com/motion-canvas/motion-canvas/blob/main/${versionDocsDirPath}/${docPath}`,
},
@@ -151,7 +153,7 @@ const config = {
'../core/src/types',
'../core/src/utils',
],
tsconfig: '../core/tsconfig.json',
tsconfig: '../core/tsconfig.build.json',
},
],
],

View File

@@ -10,6 +10,7 @@ const sidebars = {
collapsed: false,
link: {
type: 'generated-index',
slug: 'api',
},
items: [{type: 'autogenerated', dirName: 'api/modules'}],
},
@@ -18,6 +19,7 @@ const sidebars = {
label: 'Classes',
link: {
type: 'generated-index',
slug: 'api/classes',
},
items: [{type: 'autogenerated', dirName: 'api/classes'}],
},
@@ -26,6 +28,7 @@ const sidebars = {
label: 'Enumerations',
link: {
type: 'generated-index',
slug: 'api/enums',
},
items: [{type: 'autogenerated', dirName: 'api/enums'}],
},
@@ -34,6 +37,7 @@ const sidebars = {
label: 'Interfaces',
link: {
type: 'generated-index',
slug: 'api/interfaces',
},
items: [{type: 'autogenerated', dirName: 'api/interfaces'}],
},

View File

@@ -32,10 +32,7 @@ function HomepageHeader() {
export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />"
>
<Layout description={siteConfig.tagline}>
<HomepageHeader />
<main>
<HomepageFeatures />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

@@ -1,3 +1 @@
<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="100" r="100" fill="#141414"/>
</svg>
<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><style>.b{fill:#99c47a;}.c{fill:#ff6470;}.d{fill:#ffc66d;}.e{fill:#404040;}.f{fill:#68abdf;}</style></defs><rect class="e" x="23.41" y="19.41" width="4" height="12" rx="2" ry="2" transform="translate(-10.53 25.41) rotate(-45)"/><rect class="f" x="24.12" y="11.22" width="4" height="10" rx="2" ry="2" transform="translate(-3.82 23.22) rotate(-45)"/><rect class="b" x="17.05" y="7.15" width="4" height="4" rx="2" ry="2" transform="translate(-.89 16.15) rotate(-45)"/><rect class="d" x="12.45" y="7.95" width="4" height="13" rx="2" ry="2" transform="translate(-5.99 14.45) rotate(-45)"/><rect class="c" x="12.1" y="16" width="4" height="16" rx="2" ry="2" transform="translate(-12.84 17) rotate(-45)"/><rect class="e" x="22.31" y="26.38" width="4" height="12" rx="2" ry="2" transform="translate(6.5 68.74) rotate(-117)"/><rect class="e" x="28.6" y="29.58" width="4" height="12" rx="2" ry="2" transform="translate(66.38 65.94) rotate(171)"/><rect class="e" x="33.58" y="24.6" width="4" height="12" rx="2" ry="2" transform="translate(71.37 .24) rotate(99)"/><rect class="e" x="30.38" y="18.31" width="4" height="12" rx="2" ry="2" transform="translate(14.57 -12.05) rotate(27)"/></svg>

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><style>.b{fill:#99c47a;}.c{fill:#ff6470;}.d{fill:#ffc66d;}.e{fill:#68abdf;}.f{fill:#f2f2f2;}</style></defs><rect class="f" x="23.41" y="19.41" width="4" height="12" rx="2" ry="2" transform="translate(-10.53 25.41) rotate(-45)"/><rect class="e" x="24.12" y="11.22" width="4" height="10" rx="2" ry="2" transform="translate(-3.82 23.22) rotate(-45)"/><rect class="b" x="17.05" y="7.15" width="4" height="4" rx="2" ry="2" transform="translate(-.89 16.15) rotate(-45)"/><rect class="d" x="12.45" y="7.95" width="4" height="13" rx="2" ry="2" transform="translate(-5.99 14.45) rotate(-45)"/><rect class="c" x="12.1" y="16" width="4" height="16" rx="2" ry="2" transform="translate(-12.84 17) rotate(-45)"/><rect class="f" x="22.31" y="26.38" width="4" height="12" rx="2" ry="2" transform="translate(6.5 68.74) rotate(-117)"/><rect class="f" x="28.6" y="29.58" width="4" height="12" rx="2" ry="2" transform="translate(66.38 65.94) rotate(171)"/><rect class="f" x="33.58" y="24.6" width="4" height="12" rx="2" ry="2" transform="translate(71.37 .24) rotate(99)"/><rect class="f" x="30.38" y="18.31" width="4" height="12" rx="2" ry="2" transform="translate(14.57 -12.05) rotate(27)"/></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB