From b5a7263124dcc62ebbdece46f146e1d694c512c9 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Wed, 11 Nov 2020 16:12:09 +0100 Subject: [PATCH] docs(site): i18n handler, prettier code blocks and highlighting (#951) * fix: sirv, commonjs plugin, add rollup sig * replace deprecated rollup plugins * remove dollarsign * fix i18n setting, code snippet styling, lng switch * fix segment, rm unused styles --- site/docs/integrate/01-singlepageapp.en.md | 4 ++++ site/src/components/LanguageSwitcher.svelte | 6 ++---- site/src/i18n.js | 18 +++++++++++++++--- site/src/routes/_layout.svelte | 3 --- site/src/routes/index.svelte | 7 ++++++- site/src/template.html | 14 +++++++------- site/static/base.css | 5 +++-- site/static/prism.css | 4 ++-- 8 files changed, 39 insertions(+), 22 deletions(-) diff --git a/site/docs/integrate/01-singlepageapp.en.md b/site/docs/integrate/01-singlepageapp.en.md index 3df0882f91..e4c1a6eea8 100644 --- a/site/docs/integrate/01-singlepageapp.en.md +++ b/site/docs/integrate/01-singlepageapp.en.md @@ -15,6 +15,8 @@ This flow has great support with most modern languages and frameworks and is the #### Typescript Authentication Example +--- + If you use a framework like Angular, Vue, React, ... you can use this code snippet here to integrate **ZITADEL** into you application Library used for this example [https://github.com/IdentityModel/oidc-client-js](https://github.com/IdentityModel/oidc-client-js) @@ -60,3 +62,5 @@ export default class AuthService { } } ``` + +--- diff --git a/site/src/components/LanguageSwitcher.svelte b/site/src/components/LanguageSwitcher.svelte index 8c137f4612..adfb8cc149 100644 --- a/site/src/components/LanguageSwitcher.svelte +++ b/site/src/components/LanguageSwitcher.svelte @@ -1,5 +1,4 @@