* feat: migrated the navigation metadata from inline MD title decorations to frontmatter * fix: fixed frontmatter metadate for api-table MDs * fix: fixed frontmatter eslint issue
37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
import { rocketLaunch } from '@rocket/launch';
|
|
import { rocketSearch } from '@rocket/search';
|
|
import { rocketBlog } from '@rocket/blog';
|
|
import { absoluteBaseUrlNetlify } from '@rocket/core/helpers';
|
|
import { TitleMetaPlugin } from '@rocket/cli';
|
|
import { adjustPluginOptions, removePlugin } from 'plugins-manager';
|
|
import { mdjsSetupCode } from '@mdjs/core';
|
|
import { copy } from '@web/rollup-plugin-copy';
|
|
|
|
export default {
|
|
presets: [rocketLaunch(), rocketSearch(), rocketBlog()],
|
|
eleventy(eleventyConfig) {
|
|
eleventyConfig.setUseGitIgnore(false);
|
|
},
|
|
absoluteBaseUrl: absoluteBaseUrlNetlify('http://localhost:8080'),
|
|
setupUnifiedPlugins: [
|
|
adjustPluginOptions(mdjsSetupCode, {
|
|
simulationSettings: {
|
|
simulatorUrl: '/simulator/',
|
|
languages: [
|
|
{ key: 'de-DE', name: 'German' },
|
|
{ key: 'en-GB', name: 'English (United Kingdom)' },
|
|
{ key: 'en-US', name: 'English (United States)' },
|
|
{ key: 'nl-NL', name: 'Dutch' },
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
setupBuildPlugins: [
|
|
adjustPluginOptions(copy, config => {
|
|
// eslint-disable-next-line no-param-reassign
|
|
config.patterns = [...config.patterns, 'docs/**/assets/**'];
|
|
return config;
|
|
}),
|
|
],
|
|
setupEleventyComputedConfig: [removePlugin(TitleMetaPlugin)]
|
|
};
|