mirror of https://github.com/FOME-Tech/wiki.git
PDF link in footer
This commit is contained in:
parent
5b961ebd93
commit
a5dd4454d2
|
@ -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',
|
||||
|
|
|
@ -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",
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue