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 Feb 27, 2021
1 parent 2e85095 commit 2835614
Show file tree
Hide file tree
Showing 7 changed files with 19,917 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/.widdershins/templates/responses.def
Expand Up @@ -12,7 +12,7 @@

|Status|Meaning|Description|Schema|
|---|---|---|---|
{{~ data.responses :r}}|{{=r.status}}|{{=r.meaning}}|{{=r.description || 'none'}}|{{=r.schema}}|
{{~ data.responses :r}}|{{=r.status}}|{{=r.meaning}}|{{ const description = (r.description || 'none').replace('\n', ' '); }}{{=description }}|{{=r.schema}}|
{{~}}

{{ data.responseSchemas = false; }}
Expand Down
10 changes: 8 additions & 2 deletions docs/docusaurus.config.js
Expand Up @@ -57,7 +57,10 @@ module.exports = {
},
announcementBar: {
id: 'supportus',
content: `Sign up for <a href="${config.newsletter}">important security announcements</a> and if you like ${config.projectName} give it a ⭐️ on <a target="_blank" rel="noopener noreferrer" href="https://github.com/ory/${githubRepoName}">GitHub</a>!`
content:
config.projectSlug === 'docs'
? `Sign up for <a href="${config.newsletter}">important security announcements</a> and if you like the ${config.projectName} give us some ⭐️ on <a target="_blank" rel="noopener noreferrer" href="https://github.com/ory">GitHub</a>!`
: `Sign up for <a href="${config.newsletter}">important security announcements</a> and if you like ${config.projectName} give it a ⭐️ on <a target="_blank" rel="noopener noreferrer" href="https://github.com/ory/${githubRepoName}">GitHub</a>!`
},
algolia: {
apiKey: '8463c6ece843b377565726bb4ed325b0',
Expand All @@ -73,7 +76,10 @@ module.exports = {
alt: config.projectName,
src: `img/logo-${config.projectSlug}.svg`,
srcDark: `img/logo-${config.projectSlug}.svg`,
href: `https://www.ory.sh/${config.projectSlug}`
href:
config.projectSlug === 'docs'
? `https://www.ory.sh`
: `https://www.ory.sh/${config.projectSlug}`
},
items: [
...links,
Expand Down

0 comments on commit 2835614

Please sign in to comment.