2022-09-20 22:00:57 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
2023-12-30 18:57:21 +00:00
const lightCodeTheme = require ( 'prism-react-renderer' ) . themes . github ;
const darkCodeTheme = require ( 'prism-react-renderer' ) . themes . dracula ;
2022-09-20 22:00:57 +00:00
/** @type {import('@docusaurus/types').Config} */
const config = {
title : 'Ansible-NAS' ,
tagline : 'Easily build a homelab or NAS replacement with an Ubuntu server and some basic hardware' ,
url : 'https://ansible-nas.io' ,
baseUrl : '/' ,
onBrokenLinks : 'throw' ,
onBrokenMarkdownLinks : 'warn' ,
favicon : 'img/favicon.ico' ,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName : 'davestephens' , // Usually your GitHub org/user name.
projectName : 'ansible-nas' , // Usually your repo name.
trailingSlash : true ,
// 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 : {
sidebarPath : require . resolve ( './sidebars.js' ) ,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl :
2023-11-26 09:37:14 +00:00
'https://github.com/davestephens/ansible-nas/tree/main/website' ,
2022-09-20 22:00:57 +00:00
} ,
blog : {
showReadingTime : true ,
} ,
theme : {
customCss : require . resolve ( './src/css/custom.css' ) ,
} ,
} ) ,
] ,
] ,
themeConfig :
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
( {
navbar : {
title : 'Ansible-NAS' ,
items : [
{
type : 'doc' ,
docId : 'index' ,
position : 'left' ,
label : 'Docs' ,
} ,
{
type : 'doc' ,
docId : '/category/getting-started' ,
position : 'left' ,
label : 'Getting Started' ,
} ,
{
type : 'doc' ,
docId : '/category/applications' ,
position : 'left' ,
label : 'Applications' ,
} ,
{ to : '/blog' , label : 'Blog' , position : 'left' } ,
{
type : 'search' ,
position : 'right' ,
} ,
{
href : 'https://github.com/davestephens/ansible-nas' ,
label : 'GitHub' ,
position : 'right' ,
} ,
] ,
} ,
footer : {
style : 'dark' ,
links : [
{
title : 'Docs' ,
items : [
{
label : 'Getting Started' ,
to : 'docs/category/getting-started' ,
} ,
{
label : 'Support' ,
to : 'docs/support' ,
} ,
] ,
} ,
{
title : 'Community' ,
items : [
{
label : 'Gitter.im' ,
href : 'https://gitter.im/Ansible-NAS/Chat' ,
} ,
] ,
} ,
{
title : 'More' ,
items : [
{
label : 'Blog' ,
to : '/blog' ,
} ,
{
label : 'GitHub' ,
href : 'https://github.com/facebook/docusaurus' ,
} ,
] ,
} ,
] ,
copyright : ` Copyright © ${ new Date ( ) . getFullYear ( ) } David Stephens. Site built with Docusaurus. ` ,
} ,
prism : {
theme : lightCodeTheme ,
darkTheme : darkCodeTheme ,
} ,
announcementBar : {
id : 'support_us' ,
content :
'Enjoying Ansible NAS? Please consider supporting further development by <a target="_blank" rel="noopener noreferrer" href="https://ko-fi.com/davestephens">buying me a coffee ☕</a>' ,
backgroundColor : '#fafbfc' ,
textColor : '#091E42' ,
isCloseable : false ,
} ,
} ) ,
} ;
module . exports = config ;