2022-10-28 02:38:26 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
2024-01-18 03:44:45 +00:00
const prism = require ( 'prism-react-renderer' ) ;
2022-10-28 02:38:26 +00:00
/** @type {import('@docusaurus/types').Config} */
const config = {
2023-04-02 02:22:16 +00:00
title : 'Immich' ,
2023-04-24 17:49:20 +00:00
tagline : 'High performance self-hosted photo and video backup solution directly from your mobile phone' ,
2023-12-15 14:57:36 +00:00
url : 'https://immich.app' ,
2023-04-02 02:22:16 +00:00
baseUrl : '/' ,
onBrokenLinks : 'throw' ,
onBrokenMarkdownLinks : 'warn' ,
favicon : 'img/favicon.png' ,
2022-10-28 02:38:26 +00:00
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
2023-04-02 02:22:16 +00:00
organizationName : 'immich-app' , // Usually your GitHub org/user name.
projectName : 'immich' , // Usually your repo name.
deploymentBranch : 'main' ,
2022-10-28 02:38:26 +00:00
// 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 : {
2023-04-02 02:22:16 +00:00
defaultLocale : 'en' ,
locales : [ 'en' ] ,
2022-10-28 02:38:26 +00:00
} ,
2022-12-22 16:31:31 +00:00
plugins : [
async function myPlugin ( context , options ) {
return {
2023-04-02 02:22:16 +00:00
name : 'docusaurus-tailwindcss' ,
2022-12-22 16:31:31 +00:00
configurePostCss ( postcssOptions ) {
// Appends TailwindCSS and AutoPrefixer.
2023-04-02 02:22:16 +00:00
postcssOptions . plugins . push ( require ( 'tailwindcss' ) ) ;
postcssOptions . plugins . push ( require ( 'autoprefixer' ) ) ;
2022-12-22 16:31:31 +00:00
return postcssOptions ;
} ,
} ;
} ,
2023-04-02 02:22:16 +00:00
require . resolve ( 'docusaurus-lunr-search' ) ,
2022-12-22 16:31:31 +00:00
] ,
2022-10-28 02:38:26 +00:00
presets : [
[
2023-04-02 02:22:16 +00:00
'docusaurus-preset-openapi' ,
2022-12-08 03:57:34 +00:00
/** @type {import('docusaurus-preset-openapi').Options} */
2022-10-28 02:38:26 +00:00
( {
docs : {
2022-11-04 02:42:24 +00:00
showLastUpdateAuthor : true ,
showLastUpdateTime : true ,
2023-04-02 02:22:16 +00:00
sidebarPath : require . resolve ( './sidebars.js' ) ,
2022-10-28 02:38:26 +00:00
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
2023-04-02 02:22:16 +00:00
editUrl : 'https://github.com/immich-app/immich/tree/main/docs/' ,
2022-10-28 02:38:26 +00:00
} ,
2022-12-08 03:57:34 +00:00
api : {
2024-01-12 12:36:27 +00:00
path : '../open-api/immich-openapi-specs.json' ,
2023-04-02 02:22:16 +00:00
routeBasePath : '/docs/api' ,
2022-12-08 03:57:34 +00:00
} ,
2022-11-04 03:26:09 +00:00
// blog: {
// showReadingTime: true,
// editUrl: "https://github.com/immich-app/immich/tree/main/docs/",
// },
2022-10-28 02:38:26 +00:00
theme : {
2023-04-02 02:22:16 +00:00
customCss : require . resolve ( './src/css/custom.css' ) ,
2022-10-28 02:38:26 +00:00
} ,
} ) ,
] ,
] ,
themeConfig :
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
( {
2022-11-02 01:01:03 +00:00
announcementBar : {
2023-04-02 02:22:16 +00:00
id : 'site_announcement_immich' ,
2024-05-09 20:53:48 +00:00
content : ` ⚠️ The project is under <strong>very active</strong> development. Expect bugs and changes. Do not use it as <strong>the only way</strong> to store your photos and videos! ` ,
2022-11-02 01:01:03 +00:00
isCloseable : false ,
} ,
2022-10-28 02:38:26 +00:00
docs : {
sidebar : {
autoCollapseCategories : false ,
} ,
} ,
navbar : {
logo : {
2024-03-15 03:15:20 +00:00
alt : 'Immich Logo' ,
src : 'img/immich-logo-inline-light.png' ,
srcDark : 'img/immich-logo-inline-dark.png' ,
2024-07-10 20:18:55 +00:00
className : 'rounded-none' ,
2022-10-28 02:38:26 +00:00
} ,
items : [
2024-06-11 09:33:45 +00:00
{
type : 'custom-versionSwitcher' ,
position : 'right' ,
} ,
2022-10-28 02:38:26 +00:00
{
2023-04-02 02:22:16 +00:00
to : '/docs/overview/introduction' ,
position : 'right' ,
label : 'Docs' ,
2022-10-28 02:38:26 +00:00
} ,
2023-10-23 02:34:23 +00:00
{
2024-05-31 17:13:23 +00:00
to : '/roadmap' ,
2023-10-23 02:34:23 +00:00
position : 'right' ,
2024-05-31 17:13:23 +00:00
label : 'Roadmap' ,
2023-10-23 02:34:23 +00:00
} ,
2022-12-08 03:57:34 +00:00
{
2023-04-02 02:22:16 +00:00
to : '/docs/api' ,
position : 'right' ,
label : 'API' ,
2022-12-08 03:57:34 +00:00
} ,
2023-06-25 03:02:39 +00:00
{
to : '/blog' ,
position : 'right' ,
label : 'Blog' ,
} ,
2022-10-28 02:38:26 +00:00
{
2023-04-02 02:22:16 +00:00
href : 'https://github.com/immich-app/immich' ,
label : 'GitHub' ,
position : 'right' ,
2022-12-21 21:01:50 +00:00
} ,
2024-05-10 17:38:35 +00:00
{
2024-06-14 00:27:01 +00:00
href : 'https://discord.immich.app' ,
2024-05-10 17:38:35 +00:00
label : 'Discord' ,
position : 'right' ,
} ,
2022-10-28 02:38:26 +00:00
] ,
} ,
footer : {
2023-04-02 02:22:16 +00:00
style : 'light' ,
2022-10-28 02:38:26 +00:00
links : [
{
2023-04-02 02:22:16 +00:00
title : 'Overview' ,
2022-10-28 02:38:26 +00:00
items : [
{
2023-04-02 02:22:16 +00:00
label : 'Welcome' ,
to : '/docs/overview/introduction' ,
2022-10-28 03:03:37 +00:00
} ,
{
2023-04-02 02:22:16 +00:00
label : 'Installation' ,
to : '/docs/install/requirements' ,
2022-10-28 02:38:26 +00:00
} ,
2024-08-07 13:54:57 +00:00
{
label : 'Contributing' ,
to : '/docs/overview/support-the-project' ,
} ,
{
label : 'Privacy Policy' ,
to : '/privacy-policy' ,
} ,
2022-10-28 02:38:26 +00:00
] ,
} ,
{
2024-08-07 13:54:57 +00:00
title : 'Documentation' ,
2022-10-28 02:38:26 +00:00
items : [
{
2024-08-07 13:54:57 +00:00
label : 'Roadmap' ,
to : '/roadmap' ,
2022-10-28 02:38:26 +00:00
} ,
2024-04-16 05:26:12 +00:00
{
2024-08-07 13:54:57 +00:00
label : 'API' ,
to : '/docs/api' ,
} ,
{
label : 'Cursed Knowledge' ,
to : '/cursed-knowledge' ,
2024-04-16 05:26:12 +00:00
} ,
2022-10-28 02:38:26 +00:00
] ,
} ,
{
2023-04-02 02:22:16 +00:00
title : 'Links' ,
2022-10-28 02:38:26 +00:00
items : [
{
2023-04-02 02:22:16 +00:00
label : 'GitHub' ,
href : 'https://github.com/immich-app/immich' ,
2022-10-28 02:38:26 +00:00
} ,
2024-04-16 05:26:12 +00:00
{
label : 'YouTube' ,
href : 'https://www.youtube.com/@immich-app' ,
} ,
2024-08-07 13:54:57 +00:00
{
label : 'Discord' ,
href : 'https://discord.immich.app' ,
} ,
{
label : 'Reddit' ,
href : 'https://www.reddit.com/r/immich/' ,
} ,
2022-10-28 02:38:26 +00:00
] ,
} ,
] ,
2024-02-12 15:31:59 +00:00
copyright : ` Immich is available as open source under the terms of the GNU AGPL v3 License. ` ,
2022-10-28 02:38:26 +00:00
} ,
prism : {
2024-01-18 03:44:45 +00:00
theme : prism . themes . github ,
darkTheme : prism . themes . dracula ,
2024-01-23 18:51:02 +00:00
additionalLanguages : [ 'sql' , 'diff' , 'bash' , 'powershell' , 'nginx' ] ,
2022-10-28 02:38:26 +00:00
} ,
2024-10-02 16:36:06 +00:00
image : 'img/feature-panel.png' ,
2022-10-28 02:38:26 +00:00
} ) ,
} ;
module . exports = config ;