Skip to content

Commit

Permalink
Merge pull request #2 from eoscostarica/feat/docusarus-config
Browse files Browse the repository at this point in the history
fix(config): add google analytics and update packages
  • Loading branch information
xavier506 authored Nov 20, 2020
2 parents 7db9c91 + 4aca82f commit 5438772
Show file tree
Hide file tree
Showing 3 changed files with 1,342 additions and 540 deletions.
94 changes: 12 additions & 82 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,104 +1,34 @@
module.exports = {
title: 'My Site',
tagline: 'The tagline of my site',
url: 'https://your-docusaurus-test-site.com',
title: 'Servicios de desarrollo de blockchain empresarial EOSIO - EOS Costa Rica',
tagline: '',
url: 'https://es.eoscostarica.io',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
themeConfig: {
navbar: {
title: 'My Site',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
to: 'docs/',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Style Guide',
to: 'docs/',
},
{
label: 'Second Doc',
to: 'docs/doc2/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
},
organizationName: 'eoscostarica',
projectName: 'es.eoscostarica.io',
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/',
'https://github.com/eoscostarica/es.eoscostarica.io/website/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/blog/',
'https://github.com/eoscostarica/es.eoscostarica.io/edit/master/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
themeConfig: {
googleAnalytics: {
trackingID: "UA-173987-66",
}
}
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"serve": "docusaurus serve"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.62",
"@docusaurus/preset-classic": "^2.0.0-alpha.62",
"@mdx-js/react": "^1.5.8",
"@docusaurus/core": "^2.0.0-alpha.68",
"@docusaurus/preset-classic": "^2.0.0-alpha.68",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"react": "^16.8.4",
"react-dom": "^16.8.4"
"react": "^16.14.0",
"react-dom": "^16.14.0"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 5438772

Please sign in to comment.