mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
docs: enable blog in docusaurus and change domain to uncloud.run
This commit is contained in:
@@ -10,12 +10,12 @@ import {themes as prismThemes} from 'prism-react-renderer';
|
|||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
title: 'Uncloud Docs',
|
title: 'Uncloud',
|
||||||
tagline: 'Dinosaurs are cool',
|
tagline: 'Self-host and scale web apps without Kubernetes complexity',
|
||||||
favicon: 'img/favicon.png',
|
favicon: 'img/favicon.png',
|
||||||
|
|
||||||
// Set the production url of your site here
|
// Set the production url of your site here
|
||||||
url: 'https://docs.uncloud.run',
|
url: 'https://uncloud.run',
|
||||||
// Set the /<baseUrl>/ pathname under which your site is served
|
// Set the /<baseUrl>/ pathname under which your site is served
|
||||||
// For GitHub pages deployment, it is often '/<projectName>/'
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
@@ -56,7 +56,7 @@ const config = {
|
|||||||
// Remove this to remove the "edit this page" links.
|
// Remove this to remove the "edit this page" links.
|
||||||
editUrl: 'https://github.com/psviderski/uncloud/edit/main/docs/',
|
editUrl: 'https://github.com/psviderski/uncloud/edit/main/docs/',
|
||||||
// Serve the docs at the site's root.
|
// Serve the docs at the site's root.
|
||||||
routeBasePath: '/',
|
// routeBasePath: '/',
|
||||||
showLastUpdateTime: true,
|
showLastUpdateTime: true,
|
||||||
sidebarPath: './sidebars.js',
|
sidebarPath: './sidebars.js',
|
||||||
},
|
},
|
||||||
@@ -68,8 +68,8 @@ const config = {
|
|||||||
// },
|
// },
|
||||||
// // Please change this to your repo.
|
// // Please change this to your repo.
|
||||||
// // Remove this to remove the "edit this page" links.
|
// // Remove this to remove the "edit this page" links.
|
||||||
// editUrl:
|
// // editUrl:
|
||||||
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
|
// // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
|
||||||
// // Useful options to enforce blogging best practices
|
// // Useful options to enforce blogging best practices
|
||||||
// onInlineTags: 'warn',
|
// onInlineTags: 'warn',
|
||||||
// onInlineAuthors: 'warn',
|
// onInlineAuthors: 'warn',
|
||||||
@@ -96,12 +96,22 @@ const config = {
|
|||||||
// Relative to your site's "static" directory. Cannot be SVGs. Can be external URLs too.
|
// Relative to your site's "static" directory. Cannot be SVGs. Can be external URLs too.
|
||||||
image: 'img/social-card.png',
|
image: 'img/social-card.png',
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'Uncloud Docs',
|
title: 'Uncloud',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'Uncloud Logo',
|
alt: 'Uncloud Logo',
|
||||||
src: 'img/logo.svg',
|
src: 'img/logo.svg',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
type: 'doc',
|
||||||
|
docId: 'overview',
|
||||||
|
label: 'Docs',
|
||||||
|
position: 'left',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: 'blog',
|
||||||
|
label: 'Blog',
|
||||||
|
position: 'left'},
|
||||||
{
|
{
|
||||||
type: 'search',
|
type: 'search',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
@@ -148,6 +158,20 @@ const config = {
|
|||||||
//darkTheme: prismThemes.dracula,
|
//darkTheme: prismThemes.dracula,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
plugins: [
|
||||||
|
[
|
||||||
|
'@docusaurus/plugin-client-redirects',
|
||||||
|
{
|
||||||
|
redirects: [
|
||||||
|
{
|
||||||
|
from: '/',
|
||||||
|
to: '/new-index.html',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
Reference in New Issue
Block a user