feat(documentation): svelte app as document generator (#566)

* check in full site application

* rm unused assets components

* change base css

* i18n

* new doc workflow

* fix crosslink to doc in github

* nav, console link, assets, console brand

* edit configjs server

* rm go struct references

* cleanup input output bindings

* working dir

* export path

* always trigger

* rel paths

* cname

* rev workdir

* fix fallbacklanguage, home on large screens

* remove mit from site
This commit is contained in:
Max Peintner
2020-08-11 09:53:09 +02:00
committed by GitHub
parent 5efcd7b2f9
commit 2c517d6278
70 changed files with 6483 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<script context="module">
export async function preload({params}) {
const {lang, slug} = params;
const sections = await this.fetch(`${slug}.json`).then(r => r.json());
const tags = [];
return { sections, slug, tags };
}
</script>
<script>
import manifest from '../../static/manifest.json';
import Docs from "../components/Docs.svelte";
export let slug;
export let sections;
export let tags;
</script>
<svelte:head>
<title>{manifest.name}{slug}</title>
{#each tags as { name, content }, i}
<meta name={name} content={content} />
{/each}
</svelte:head>
<Docs {sections} project="zitadel/site" dir="{slug}"/>