Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
61 lines
1.6 KiB
2 years ago
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
||
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||
|
|
||
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
||
|
module.exports = {
|
||
|
title: 'htmlnano',
|
||
|
tagline: 'Modular HTML minifier',
|
||
|
url: 'https://htmlnano.netlify.app',
|
||
|
favicon: 'favicon.ico',
|
||
|
baseUrl: '/',
|
||
|
onBrokenLinks: 'throw',
|
||
|
onBrokenMarkdownLinks: 'warn',
|
||
|
organizationName: 'posthtml',
|
||
|
projectName: 'htmlnano',
|
||
|
trailingSlash: false,
|
||
|
themeConfig: {
|
||
|
navbar: {
|
||
|
title: 'htmlnano',
|
||
|
items: [
|
||
|
{
|
||
|
type: 'docsVersionDropdown',
|
||
|
position: 'right',
|
||
|
dropdownActiveClassDisabled: true,
|
||
|
},
|
||
|
{
|
||
|
href: 'https://github.com/posthtml/htmlnano',
|
||
|
label: 'GitHub',
|
||
|
position: 'right',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
prism: {
|
||
|
theme: lightCodeTheme,
|
||
|
darkTheme: darkCodeTheme,
|
||
|
},
|
||
|
},
|
||
|
presets: [
|
||
|
[
|
||
|
'@docusaurus/preset-classic',
|
||
|
{
|
||
|
docs: {
|
||
|
sidebarPath: require.resolve('./sidebars.js'),
|
||
|
routeBasePath: '/',
|
||
|
editUrl: 'https://github.com/posthtml/htmlnano/edit/master/docs/',
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
],
|
||
|
};
|
||
|
|
||
|
|
||
|
const algoliaConfig = {
|
||
|
apiKey: process.env.ALGOLIA_API_KEY,
|
||
|
indexName: 'htmlnano',
|
||
|
contextualSearch: true,
|
||
|
};
|
||
|
|
||
|
if (algoliaConfig.apiKey) {
|
||
|
module.exports.themeConfig.algolia = algoliaConfig;
|
||
|
}
|