PDF link in footer

This commit is contained in:
Piotr Rogowski 2023-05-05 10:53:27 +02:00
parent 5b961ebd93
commit a5dd4454d2
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
3 changed files with 12 additions and 22 deletions

View File

@ -3,6 +3,7 @@
const lightCodeTheme = require('prism-react-renderer/themes/github'); const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const pdfUrl = '/pdf/wiki.fome.pdf';
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
@ -62,17 +63,14 @@ const config = {
logo: { logo: {
alt: 'FOME Logo', alt: 'FOME Logo',
src: 'img/logo-transparent.png', src: 'img/logo-transparent.png',
style: {
height: 30,
marginTop: -2,
}
}, },
items: [ items: [
// {
// type: 'doc',
// docId: 'intro',
// position: 'left',
// label: 'Docs',
// },
// { to: '/blog', label: 'Blog', position: 'left' },
{ {
to: '/pdf/docs.pdf', to: pdfUrl,
label: 'PDF', label: 'PDF',
position: 'right', position: 'right',
target: '_blank', target: '_blank',
@ -91,15 +89,6 @@ const config = {
footer: { footer: {
style: 'dark', style: 'dark',
links: [ links: [
// {
// title: 'Docs',
// items: [
// {
// label: 'Tutorial',
// to: '/docs/intro',
// },
// ],
// },
{ {
title: 'Community', title: 'Community',
items: [ items: [
@ -116,10 +105,11 @@ const config = {
{ {
title: 'More', title: 'More',
items: [ items: [
// { {
// label: 'Blog', to: pdfUrl,
// to: '/blog', label: 'PDF version',
// }, target: '_blank',
},
{ {
label: 'FOME.tech', label: 'FOME.tech',
href: 'https://www.fome.tech', href: 'https://www.fome.tech',

View File

@ -13,7 +13,7 @@
"serve": "docusaurus serve", "serve": "docusaurus serve",
"write-translations": "docusaurus write-translations", "write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids", "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": { "dependencies": {
"@docusaurus/core": "2.4.0", "@docusaurus/core": "2.4.0",