Fix PDF link

This commit is contained in:
Piotr Rogowski 2023-06-19 11:37:42 +02:00
parent 01e3abd308
commit 583c3ca734
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
3 changed files with 14 additions and 8 deletions

View File

@ -2,13 +2,16 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const pdfUrl = '/pdf/wiki.fome.pdf';
const url = 'https://wiki.fome.tech';
const isBuild = process.env.NODE_ENV === 'production';
const pdfUrl = `${isBuild ? url : 'http://localhost:3000'}/pdf/wiki.fome.pdf`;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'FOME Wiki',
tagline: 'Free Open Motorsports ECU',
url: 'https://wiki.fome.tech',
url,
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
@ -140,7 +143,7 @@ const config = {
},
items: [
{
to: pdfUrl,
href: pdfUrl,
label: 'PDF',
position: 'right',
target: '_blank',

View File

@ -80,14 +80,20 @@ http://localhost:3000/Basic-Features/Fuel-Pump-Relay/
http://localhost:3000/Basic-Features/GPPWM/
http://localhost:3000/Basic-Features/Main-Relay/
http://localhost:3000/category/advanced-features/
http://localhost:3000/Advanced-Features/CAN-Settings/
http://localhost:3000/Advanced-Features/Cylinder-Angle-Offset/
http://localhost:3000/category/etb/
http://localhost:3000/Advanced-Features/ETB/ETB-Bias-Table/
http://localhost:3000/Advanced-Features/ETB/ETB-Idle/
http://localhost:3000/Advanced-Features/ETB/ETB-PID/
http://localhost:3000/Advanced-Features/ETB/ETB-Pedal-Target/
http://localhost:3000/Advanced-Features/ETB/ETB-settings/
http://localhost:3000/Advanced-Features/ETB/Redundant-Sensors/
http://localhost:3000/category/vvt/
http://localhost:3000/Advanced-Features/Variable-Cam-Timing/On-Off-VVT/
http://localhost:3000/Advanced-Features/Variable-Cam-Timing/VVT-PID/
http://localhost:3000/Advanced-Features/Variable-Cam-Timing/VVT-Target-Tables/
http://localhost:3000/Advanced-Features/CAN-Settings/
http://localhost:3000/Advanced-Features/Cylinder-Angle-Offset/
http://localhost:3000/Advanced-Features/Debug-Mode/
http://localhost:3000/Advanced-Features/Fuel-Related/Barometric-Pressure-Compensation/
http://localhost:3000/Advanced-Features/Fuel-Related/Charge-Temp-Estimation/
http://localhost:3000/Advanced-Features/Fuel-Related/Closed-Loop-Fuel/
@ -103,9 +109,6 @@ http://localhost:3000/Advanced-Features/Override-Table-Axis/
http://localhost:3000/Advanced-Features/Rotary/Rotary-Settings/
http://localhost:3000/Advanced-Features/Smart-Alternator/
http://localhost:3000/Advanced-Features/Spark-Related/Multispark/
http://localhost:3000/Advanced-Features/Variable-Cam-Timing/On-Off-VVT/
http://localhost:3000/Advanced-Features/Variable-Cam-Timing/VVT-PID/
http://localhost:3000/Advanced-Features/Variable-Cam-Timing/VVT-Target-Tables/
http://localhost:3000/category/fuel/
http://localhost:3000/category/fuel-algorithms/
http://localhost:3000/Fuel/Fuel-Algorithms/AlphaN/

Binary file not shown.