Skip to content

Commit

Permalink
docs: update doc site
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Oct 3, 2023
1 parent e326f5b commit 21e6e28
Show file tree
Hide file tree
Showing 8 changed files with 303 additions and 300 deletions.
14 changes: 5 additions & 9 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
title: 'Drawer',
tagline: 'Drawer made for can draw easily and fast where you want in web interface. Using canvas, multiple things is possibl, your mind is the only limit !',
favicon: 'img/favicon.ico',

// Set the production url of your site here
Expand Down Expand Up @@ -64,9 +64,9 @@ const config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: 'Drawer',
logo: {
alt: 'My Site Logo',
alt: 'Drawer Logo',
src: 'img/logo.svg',
},
items: [
Expand All @@ -76,7 +76,7 @@ const config = {
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{to: '/docs/examples', label: 'Examples', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
Expand Down Expand Up @@ -116,10 +116,6 @@ const config = {
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
Expand Down
556 changes: 280 additions & 276 deletions docs/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@docusaurus/core": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.1"
"@docusaurus/module-type-aliases": "^2.4.3"
},
"browserslist": {
"production": [
Expand Down
11 changes: 8 additions & 3 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ function HomepageHeader() {
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<p className="hero__subtitle text--primary">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min ⏱️
to="/docs/api#get-started">
Get Started
</Link>
<a
className="button button--secondary button--lg margin-left--sm"
href="https://github.com/fabwcie/drawer" target="_blank">
View on GitHub
</a>
</div>
</div>
</header>
Expand Down
7 changes: 6 additions & 1 deletion docs/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
* and scoped locally.
*/

:root {
--ifm-color-primary: #646cff;
--ifm-code-font-size: 95%;
}

.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
background: url("@site/static/img/illustration_blank_canvas.svg") no-repeat #646cff;
background: url('@site/static/img/illustration_blank_canvas.svg') no-repeat;
}

@media screen and (max-width: 996px) {
Expand Down
7 changes: 0 additions & 7 deletions docs/src/pages/markdown-page.md

This file was deleted.

Empty file added docs/static/img/hero-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/static/img/illustration_blank_canvas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21e6e28

Please sign in to comment.