mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
This is a super rough start for a download page for the website. Please
make contributions since this is pretty bad so far. Can you tell Im not
a front end dev? 😆
In order for the links to always work we either need to:
* Modify our electron build to not add versions to the filename
* Add some way for the page to know the current version and use that in
the requested filename
For now they are hard coded with the version so they wont work next
month unless something changes.
For now the OS logos are colored so that they can be seen in both light
and dark modes. Im sure there is a better way than making them purple.
169 lines
4.2 KiB
JavaScript
169 lines
4.2 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
const defaultOptions = {
|
|
editUrl: 'https://github.com/actualbudget/docs/tree/master/',
|
|
beforeDefaultRemarkPlugins: [
|
|
require('./src/remark/rewrite-images'),
|
|
require('./src/remark/mentions'),
|
|
],
|
|
};
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
module.exports = {
|
|
title: 'Actual Budget Documentation',
|
|
tagline: 'Your finances - made simple',
|
|
url: 'https://actualbudget.org/',
|
|
baseUrl: '/',
|
|
onBrokenLinks: 'throw',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
favicon: 'img/favicon.ico',
|
|
|
|
// Even if you don't use internalization, you can use this field to set useful
|
|
// metadata like html lang. For example, if your site is Chinese, you may want
|
|
// to replace "en" with "zh-Hans".
|
|
i18n: {
|
|
defaultLocale: 'en',
|
|
locales: ['en'],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
routeBasePath: 'docs',
|
|
sidebarPath: require.resolve('./docs-sidebar.js'),
|
|
...defaultOptions,
|
|
},
|
|
blog: {
|
|
...defaultOptions,
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
logo: {
|
|
alt: 'Actual Open Source',
|
|
src: 'img/actual.png',
|
|
},
|
|
items: [
|
|
{
|
|
to: '/#features',
|
|
// never render as active
|
|
activeBaseRegex: '^$',
|
|
label: 'Features',
|
|
position: 'left',
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'index',
|
|
label: 'Docs',
|
|
position: 'left',
|
|
},
|
|
{
|
|
to: 'blog',
|
|
label: 'Blog',
|
|
position: 'left',
|
|
},
|
|
{
|
|
to: '/contact',
|
|
label: 'Contact',
|
|
position: 'left',
|
|
},
|
|
{
|
|
to: '/download',
|
|
label: 'Download',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://opencollective.com/actual',
|
|
label: 'Donate',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://discord.gg/8JfAXSgfRf',
|
|
label: 'Discord',
|
|
position: 'right',
|
|
},
|
|
{
|
|
href: 'https://github.com/actualbudget/actual',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
label: 'Discord',
|
|
href: 'https://discord.gg/8JfAXSgfRf',
|
|
},
|
|
{
|
|
label: 'GitHub',
|
|
href: 'https://github.com/actualbudget/actual',
|
|
},
|
|
{
|
|
href: 'https://opencollective.com/actual',
|
|
label: 'Donate',
|
|
},
|
|
{
|
|
label: 'Website Source',
|
|
href: 'https://github.com/actualbudget/docs',
|
|
},
|
|
{
|
|
label: 'Privacy Policy',
|
|
to: '/docs/privacy-policy',
|
|
},
|
|
{
|
|
label: 'RSS Feed',
|
|
href: '/blog/rss.xml',
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Actual Budget. Built with Docusaurus.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
additionalLanguages: ['nginx'],
|
|
},
|
|
}),
|
|
plugins: [
|
|
[
|
|
require.resolve('@cmfcmf/docusaurus-search-local'),
|
|
{
|
|
indexDocs: true,
|
|
indexDocSidebarParentCategories: 0,
|
|
indexPages: false,
|
|
language: 'en',
|
|
style: undefined,
|
|
maxSearchResults: 8,
|
|
lunr: {
|
|
tokenizerSeparator: /[\s\-]+/,
|
|
|
|
b: 0.75,
|
|
|
|
k1: 1.2,
|
|
|
|
titleBoost: 5,
|
|
contentBoost: 1,
|
|
tagsBoost: 3,
|
|
parentCategoriesBoost: 2, // Only used when indexDocSidebarParentCategories > 0
|
|
},
|
|
},
|
|
],
|
|
['@docusaurus/plugin-ideal-image', { disableInDev: false }],
|
|
],
|
|
};
|