Преглед на файлове

docs: Styling & branding

Michael Bromley преди 2 години
родител
ревизия
2b69826870
променени са 6 файла, в които са добавени 48 реда и са изтрити 4 реда
  1. 3 3
      docs/docusaurus.config.js
  2. 28 1
      docs/sidebars.js
  3. 4 0
      docs/src/css/custom.css
  4. 5 0
      docs/static/img/github-icon.svg
  5. BIN
      docs/static/img/logo.webp
  6. 8 0
      docs/static/img/npm-logo.svg

+ 3 - 3
docs/docusaurus.config.js

@@ -57,10 +57,10 @@ const config = {
             // Replace with your project's social card
             image: 'img/docusaurus-social-card.jpg',
             navbar: {
-                title: 'My Site',
+                title: '',
                 logo: {
-                    alt: 'My Site Logo',
-                    src: 'img/logo.svg',
+                    alt: 'Vendure logo',
+                    src: 'img/logo.webp',
                 },
                 items: [
                     {

+ 28 - 1
docs/sidebars.js

@@ -15,7 +15,34 @@
 const sidebars = {
     // By default, Docusaurus generates a sidebar from the docs folder structure
     learnSidebar: [{ type: 'autogenerated', dirName: 'guides' }],
-    referenceSidebar: [{ type: 'autogenerated', dirName: 'reference' }],
+    referenceSidebar: [
+        {
+            type: 'category',
+            label: 'TypeScript API',
+            items: [{ type: 'autogenerated', dirName: 'reference/typescript-api' }],
+        },
+        {
+            type: 'category',
+            label: 'GraphQL API',
+            items: [
+                {
+                    type: 'category',
+                    label: 'Admin API',
+                    items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/admin' }],
+                },
+                {
+                    type: 'category',
+                    label: 'Shop API',
+                    items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/shop' }],
+                },
+            ],
+        },
+        {
+            type: 'category',
+            label: 'Admin UI API',
+            items: [{ type: 'autogenerated', dirName: 'reference/admin-ui-api' }],
+        },
+    ],
     // But you can create a sidebar manually
     /*
   tutorialSidebar: [

+ 4 - 0
docs/src/css/custom.css

@@ -33,6 +33,10 @@
     --color-graphql-identifier: rgb(255, 121, 198);
 }
 
+.markdown {
+    --ifm-h2-vertical-rhythm-top: 6;
+}
+
 
 .members-wrapper {
     border-left: 1px solid var(--ifm-color-secondary);

+ 5 - 0
docs/static/img/github-icon.svg

@@ -0,0 +1,5 @@
+<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
+    <path fill="#888" fill-rule="evenodd" clip-rule="evenodd"
+          d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"
+          transform="scale(64)" />
+</svg>

BIN
docs/static/img/logo.webp


+ 8 - 0
docs/static/img/npm-logo.svg

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="540px" height="210px" viewBox="0 0 18 7">
+<path fill="#888" d="M0,0h18v6H9v1H5V6H0V0z M1,5h2V2h1v3h1V1H1V5z M6,1v5h2V5h2V1H6z M8,2h1v2H8V2z M11,1v4h2V2h1v3h1V2h1v3h1V1H11z"/>
+<polygon fill="#FFFFFF" points="1,5 3,5 3,2 4,2 4,5 5,5 5,1 1,1 "/>
+<path fill="#FFFFFF" d="M6,1v5h2V5h2V1H6z M9,4H8V2h1V4z"/>
+<polygon fill="#FFFFFF" points="11,1 11,5 13,5 13,2 14,2 14,5 15,5 15,2 16,2 16,5 17,5 17,1 "/>
+</svg>