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 Aug 11, 2020
1 parent 79cd67d commit 19257be
Show file tree
Hide file tree
Showing 5 changed files with 1,139 additions and 30 deletions.
3 changes: 2 additions & 1 deletion docs/.widdershins/templates/main.dot
Expand Up @@ -50,7 +50,8 @@ share them in a [GitHub issue](https://github.com/ory/docs/issues/new) any time.
{{ var origSchema = data.components.schemas[s]; }}
{{ var schema = data.api.components.schemas[s]; }}

<a id="tocS{{=s.toLowerCase()}}">{{=s}}</a>
<a id="tocS{{=s.toLowerCase()}}"></a>

#### {{=s}}

<a id="schema{{=s.toLowerCase()}}"></a>
Expand Down
1 change: 1 addition & 0 deletions docs/.widdershins/templates/responses.def
Expand Up @@ -21,6 +21,7 @@
{{~}}
{{? data.responseSchemas }}
<a id="{{=data.operationUniqueSlug}}-responseschema"></a>

##### Response Schema
{{~ data.responses :response}}
{{? response.content && !response.$ref && !data.utils.isPrimitive(response.type)}}
Expand Down
11 changes: 5 additions & 6 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

0 comments on commit 19257be

Please sign in to comment.