Add basic website (#437)
* Add Netlify configuration and website Makefile Signed-off-by: lucperkins <lucperkins@gmail.com> * Add .editorconfig file for IDE configs Signed-off-by: lucperkins <lucperkins@gmail.com> * Add empty content folder to satisfy Hugo requirement Signed-off-by: lucperkins <lucperkins@gmail.com> * Add basic Hugo site config Signed-off-by: lucperkins <lucperkins@gmail.com> * Add initial layout scaffolding Signed-off-by: lucperkins <lucperkins@gmail.com> * Add initial npm assets, yarn.lock, and .gitignore file to ignore node_modules/ Signed-off-by: lucperkins <lucperkins@gmail.com> * Add initial site implementation * Revert Hugo version to 0.50 Signed-off-by: lucperkins <lucperkins@gmail.com> * Change publish directory to website/public Signed-off-by: lucperkins <lucperkins@gmail.com> * Add basic site metadata in partial Signed-off-by: Luc Perkins <lucperkins@gmail.com> * Widen main logo on mobile Signed-off-by: Luc Perkins <lucperkins@gmail.com> * Add favicon link to CSS partial Signed-off-by: Luc Perkins <lucperkins@gmail.com> * Synchronize main color with logos Signed-off-by: Luc Perkins <lucperkins@gmail.com> * Add basic Providers and How it Works sections to home page Signed-off-by: lucperkins <lucperkins@gmail.com> * Combine basics and providers sections into one Signed-off-by: lucperkins <lucperkins@gmail.com> * Add favicon link to site config Signed-off-by: lucperkins <lucperkins@gmail.com> * Add navbar fade in and out effect Signed-off-by: lucperkins <lucperkins@gmail.com> * Add Slack button Signed-off-by: lucperkins <lucperkins@gmail.com> * Add GitHub stars/watcher info Signed-off-by: lucperkins <lucperkins@gmail.com> * Add documentation layout Signed-off-by: lucperkins <lucperkins@gmail.com> * Add debugging and contributing links Signed-off-by: lucperkins <lucperkins@gmail.com> * Add docs button in main hero Signed-off-by: lucperkins <lucperkins@gmail.com> * Fix footer layout issue Signed-off-by: lucperkins <lucperkins@gmail.com> * Change docs header aesthetic Signed-off-by: lucperkins <lucperkins@gmail.com> * Change syntax highlighting theme to fruity Signed-off-by: lucperkins <lucperkins@gmail.com> * More adjustments to sidebar Signed-off-by: lucperkins <lucperkins@gmail.com> * Add TOC panel for docs Signed-off-by: lucperkins <lucperkins@gmail.com> * Adjust the padding on section elements Signed-off-by: lucperkins <lucperkins@gmail.com> * Remove stickiness on main docs header Signed-off-by: lucperkins <lucperkins@gmail.com> * Add basic architecture doc Signed-off-by: lucperkins <lucperkins@gmail.com> * Remove 'coming soon' banner Signed-off-by: lucperkins <lucperkins@gmail.com> * Add AnchorJS support for docs pages Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
committed by
Robbie Zhang
parent
966f7a807b
commit
b44072588b
5
website/layouts/partials/docs/dashboard.html
Normal file
5
website/layouts/partials/docs/dashboard.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="dashboard">
|
||||
{{ partial "docs/sidebar.html" . }}
|
||||
{{ partial "docs/main.html" . }}
|
||||
{{ partial "docs/toc.html" . }}
|
||||
</div>
|
||||
11
website/layouts/partials/docs/header.html
Normal file
11
website/layouts/partials/docs/header.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $description := .Params.description }}
|
||||
<section class="dashboard-main-header section has-background-dark">
|
||||
<p class="title is-size-1 has-text-white-bis has-text-weight-light{{ if $description }} is-spaced{{ end }}">
|
||||
{{ .Title }}
|
||||
</p>
|
||||
{{- with $description }}
|
||||
<p class="subtitle is-size-3 is-size-4-mobile has-text-white-bis has-text-weight-light">
|
||||
{{ . }}
|
||||
</p>
|
||||
{{- end }}
|
||||
</section>
|
||||
11
website/layouts/partials/docs/main.html
Normal file
11
website/layouts/partials/docs/main.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<div class="dashboard-main is-scrollable">
|
||||
{{ partial "docs/header.html" . }}
|
||||
|
||||
<section class="section">
|
||||
<div class="content is-medium">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
23
website/layouts/partials/docs/sidebar.html
Normal file
23
website/layouts/partials/docs/sidebar.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- $sidebarLogo := .Site.Params.logos.sidebar }}
|
||||
{{- $docs := where .Site.Pages "Section" "docs" }}
|
||||
<div class="dashboard-panel is-medium is-hidden-mobile has-background-primary">
|
||||
<div class="dashboard-panel-header has-text-centered">
|
||||
<a href="{{ .Site.BaseURL }}">
|
||||
<img src="{{ $sidebarLogo }}">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="dashboard-panel-main">
|
||||
<div class="toc">
|
||||
{{- range $docs }}
|
||||
<div class="toc-item has-text-weight-light">
|
||||
<a href="{{ .URL }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
9
website/layouts/partials/docs/toc.html
Normal file
9
website/layouts/partials/docs/toc.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="dashboard-panel toc-panel is-medium is-hidden-mobile">
|
||||
<p class="is-size-4">
|
||||
{{ .Title }}
|
||||
</p>
|
||||
|
||||
<div class="toc-bar">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user