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 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',
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue