diff --git a/docusaurus.config.js b/docusaurus.config.js index c042290..5c74254 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -3,6 +3,7 @@ const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +const pdfUrl = '/pdf/wiki.fome.pdf'; /** @type {import('@docusaurus/types').Config} */ const config = { @@ -62,17 +63,14 @@ const config = { logo: { alt: 'FOME Logo', src: 'img/logo-transparent.png', + style: { + height: 30, + marginTop: -2, + } }, items: [ - // { - // type: 'doc', - // docId: 'intro', - // position: 'left', - // label: 'Docs', - // }, - // { to: '/blog', label: 'Blog', position: 'left' }, { - to: '/pdf/docs.pdf', + to: pdfUrl, label: 'PDF', position: 'right', target: '_blank', @@ -91,15 +89,6 @@ const config = { footer: { style: 'dark', links: [ - // { - // title: 'Docs', - // items: [ - // { - // label: 'Tutorial', - // to: '/docs/intro', - // }, - // ], - // }, { title: 'Community', items: [ @@ -116,10 +105,11 @@ const config = { { title: 'More', items: [ - // { - // label: 'Blog', - // to: '/blog', - // }, + { + to: pdfUrl, + label: 'PDF version', + target: '_blank', + }, { label: 'FOME.tech', href: 'https://www.fome.tech', diff --git a/package.json b/package.json index c4dbace..1b3e726 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", - "pdf": "docusaurus-prince-pdf -u http://localhost:3000 -o static/pdf/docs.pdf" + "pdf": "docusaurus-prince-pdf -u http://localhost:3000 -o static/pdf/wiki.fome.pdf" }, "dependencies": { "@docusaurus/core": "2.4.0", diff --git a/static/pdf/docs.pdf b/static/pdf/wiki.fome.pdf similarity index 99% rename from static/pdf/docs.pdf rename to static/pdf/wiki.fome.pdf index fdfa4f3..98438b1 100644 Binary files a/static/pdf/docs.pdf and b/static/pdf/wiki.fome.pdf differ