Skip to content

Commit

Permalink
chore: update docusaurus template
Browse files Browse the repository at this point in the history
Signed-off-by: aeneasr <aeneasr@users.noreply.github.com>
  • Loading branch information
aeneasr committed Sep 30, 2020
1 parent 2643326 commit ad1c902
Show file tree
Hide file tree
Showing 4 changed files with 1,009 additions and 1,184 deletions.
14 changes: 6 additions & 8 deletions docs/docusaurus.config.js
Expand Up @@ -2,12 +2,13 @@ const config = require('./contrib/config.js')
const fs = require('fs')
const admonitions = require('remark-admonitions')

const githubRepoName =
config.projectSlug === 'ecosystem' ? 'docs' : config.projectSlug
const githubRepoName = config.projectSlug === 'ecosystem'
? 'docs'
: config.projectSlug

const links = [
{
to: '/',
to: "/",
activeBasePath: `${config.projectSlug}/docs`,
label: `Docs`,
position: 'left'
Expand Down Expand Up @@ -79,9 +80,7 @@ module.exports = {
logo: {
alt: config.projectName,
src: `img/logo-${config.projectSlug}.svg`,
href: `https://www.ory.sh/${
config.projectSlug === 'ecosystem' ? '' : config.projectSlug
}`
href: `https://www.ory.sh/${config.projectSlug === 'ecosystem' ? '' : config.projectSlug}`
},
items: links
},
Expand Down Expand Up @@ -119,8 +118,7 @@ module.exports = {
: 'docs',
sidebarPath: require.resolve('./contrib/sidebar.js'),
editUrl: `https://github.com/ory/${githubRepoName}/edit/master/docs`,
routeBasePath: '',
homePageId: 'index',
routeBasePath: '/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
remarkPlugins: [admonitions]
Expand Down

0 comments on commit ad1c902

Please sign in to comment.