Skip to content

Commit

Permalink
fix: fix dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
FritzHoing committed May 7, 2024
1 parent 5cee793 commit ddf6683
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.admin.client
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN npm ci

COPY . ./
RUN rm -rf /app/docs/gis-client
RUN rm /app/docusaurus.config.js

COPY docusaurus.admin.config.js ./docusaurus.config.js

Expand Down
1 change: 1 addition & 0 deletions Dockerfile.gis.client
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN npm ci

COPY . ./
RUN rm -rf /app/docs/admin-client
RUN rm /app/docusaurus.config.js

COPY docusaurus.gis.config.js ./docusaurus.config.js

Expand Down
122 changes: 122 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'SHOGun',
tagline: 'Documentation',
favicon: './img/shogun_logo.png',

// Set the production url of your site here
url: 'http://localhost/',
baseUrl: 'shogun-docs',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
// organizationName: 'test', // Usually your GitHub org/user name.
// projectName: 'test', // Usually your repo name.

onBrokenLinks: 'warn',
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', 'de'],
localeConfigs: {
en: {
label: 'English'
},
de: {
label: 'Deutsch'
},
},
},

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: './img/shogun_logo.png',
navbar: {
title: 'SHOGun',
logo: {
alt: 'SHOGun logo',
src: './img/shogun_logo.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Manual',
},
{
href: '/~https://github.com/terrestris/shogun-docker',
label: 'GitHub',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'terrestris',
href: 'https://www.terrestris.de/de/',
},
{
label: 'GitHub',
href: '/~https://github.com/terrestris',
},
{
label: 'Twitter',
href: 'https://twitter.com/terrestrisde/',
},
{
label: 'Mastodon',
href: 'https://bonn.social/@terrestris'
}
],
}
],
copyright: `Copyright © ${(new Date()).getFullYear()} @terrestris. Built with Docusaurus.`,
},
prism: {
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ['bash', 'diff', 'json'],
},
}),
};

module.exports = config;

0 comments on commit ddf6683

Please sign in to comment.