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 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',

View File

@ -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",