Skip to content

Commit

Permalink
feat: add in memory db doc en-pt
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaz committed Sep 6, 2023
1 parent 50eae58 commit 2951476
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 63 deletions.
128 changes: 65 additions & 63 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
// @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 lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Expresso TS',
tagline: 'A lightweight, fast and easy to use TypeScript framework',
favicon: 'img/favicon.ico',
title: "Expresso TS",
tagline: "A lightweight, fast and easy to use TypeScript framework",
favicon: "img/favicon.ico",

// Set the production url of your site here
url: 'https://doc.expresso-ts.com', //'https://expressots.github.io/',
url: "https://doc.expresso-ts.com", //'https://expressots.github.io/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
baseUrl: "/",

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'expressots', // Usually your GitHub org/user name.
projectName: 'expresso-site-doc', // Usually your repo name.
organizationName: "expressots", // Usually your GitHub org/user name.
projectName: "expresso-site-doc", // Usually your repo name.
deploymentBranch: "gh-pages",
trailingSlash: false,

onBrokenLinks: 'warn', // 'throw' | 'warn' | 'ignore'
onBrokenMarkdownLinks: 'warn',
onBrokenLinks: "warn", // 'throw' | 'warn' | 'ignore'
onBrokenMarkdownLinks: "warn",

// 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', 'pt'],
defaultLocale: "en",
locales: ["en", "pt"],
localeConfigs: {
en: {
label: 'English',
label: "English",
},
pt: {
label: 'Português',
label: "Português",
},
},
},

presets: [
[
'classic',
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: require.resolve("./sidebars.js"),
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
Expand All @@ -61,12 +61,15 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/expressots-discord-banner-darkbg.png',
metadata: [{
name: 'keywords', content: "expressots, framework, nodejs, typescript, javascript"
}],
image: "img/expressots-discord-banner-darkbg.png",
metadata: [
{
name: "keywords",
content: "expressots, framework, nodejs, typescript, javascript",
},
],
colorMode: {
defaultMode: 'light',
defaultMode: "light",
disableSwitch: false,
respectPrefersColorScheme: false,
},
Expand All @@ -79,92 +82,91 @@ const config = {
appId: "3UANWN5EUQ",
},
navbar: {
title: 'Expresso TS',
title: "Expresso TS",
hideOnScroll: true,
logo: {
alt: 'Expresso TS',
src: 'img/logo.png'
alt: "Expresso TS",
src: "img/logo.png",
},
items: [
{
type: 'doc',
docId: 'hello',
position: 'right',
label: 'Documentation',
type: "doc",
docId: "hello",
position: "right",
label: "Documentation",
},
{
type: 'doc',
docId: 'governance',
position: 'right',
label: 'Governance',
type: "doc",
docId: "governance",
position: "right",
label: "Governance",
},
{
href: 'https://github.com/expressots/expressots',
label: 'GitHub',
position: 'right',
'aria-label': 'GitHub repository',
href: "https://github.com/expressots/expressots",
label: "GitHub",
position: "right",
"aria-label": "GitHub repository",
},
{
type: 'localeDropdown',
label: 'Language',
position: 'right',
type: "localeDropdown",
label: "Language",
position: "right",
},
],
},
announcementBar: {
id: 'supportus',
content:
'Current Version: v1.7.0',
backgroundColor: '#111',
textColor: '#19CE59',
id: "supportus",
content: "Current Version: v1.7.0",
backgroundColor: "#111",
textColor: "#19CE59",
isCloseable: false,
},
stylesheets: [
{
href: '/css/custom.css',
type: 'text/css',
href: "/css/custom.css",
type: "text/css",
},
],
footer: {
style: 'light',
style: "light",
links: [
{
title: 'Docs',
title: "Docs",
items: [
{
label: 'Tutorial',
to: '/docs/tutorials/overview',
label: "Tutorial",
to: "docs/category/tutorials",
},
],
},
{
title: 'Community',
title: "Community",
items: [
{
label: 'Twitch TV',
href: 'https://www.twitch.tv/richardzampieri',
label: "Twitch TV",
href: "https://www.twitch.tv/richardzampieri",
},
],
},
{
title: 'Code',
title: "Code",
items: [
{
label: 'NPM Core',
href: 'https://www.npmjs.com/package/@expressots/core',
label: "NPM Core",
href: "https://www.npmjs.com/package/@expressots/core",
},
{
label: 'NPM CLI',
href: 'https://www.npmjs.com/package/@expressots/cli',
label: "NPM CLI",
href: "https://www.npmjs.com/package/@expressots/cli",
},
{
label: 'GitHub',
href: 'https://github.com/expressots',
label: "GitHub",
href: "https://github.com/expressots",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Official ExpressoTS, Released under the MIT License.`,
copyright: `Copyright © ${new Date().getFullYear()} Official ExpressoTS, Released under the MIT License.`,
},
prism: {
theme: lightCodeTheme,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2951476

Please sign in to comment.