-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
222 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
public/ | ||
node_modules/ | ||
.cache | ||
.history | ||
dist | ||
coverage | ||
docs/app | ||
__mocks__ | ||
userguide/ | ||
.release-please-manifest.json | ||
CHANGELOG.md | ||
.vscode/ | ||
assets/js/drawio.js | ||
assets/js/markmap.js | ||
assets/js/mermaid.js | ||
assets/js/plantuml.js | ||
assets/js/base.js | ||
static/js/deflate.js | ||
static/js/swagger*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"plugins": [ | ||
"prettier-plugin-go-template" | ||
], | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"editorconfig": true, | ||
"htmlWhitespaceSensitivity": "ignore", | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.html" | ||
], | ||
"options": { | ||
"parser": "go-template" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
{{ define "main" }} {{ if not .Site.Params.homePage -}} {{ with .Content }} {{ . | ||
}} {{ end }} {{ else -}} {{ with .Site.Params.homePage -}} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0;url={{.}}" /> | ||
|
||
{{ with .Site.Params.custom_js }} {{ range . -}} | ||
<script async defer src="{{ . | absURL }}"></script> | ||
{{- end }} {{- end }} | ||
</head> | ||
</html> | ||
{{ end -}} {{ end -}} {{ end }} | ||
{{ define "main" }} | ||
{{ $site := . }} {{/* Save the global context */}} | ||
{{ if not | ||
.Site.Params.homePage | ||
}} | ||
{{ with .Content }}{{ . }}{{ end }} | ||
{{ else }} | ||
{{ with .Site.Params.homePage }} | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0;url={{ . }}" /> | ||
</head> | ||
</html> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
{{ range .AlternativeOutputFormats -}} | ||
<link | ||
rel="{{ .Rel }}" | ||
type="{{ .MediaType.Type }}" | ||
href="{{ .Permalink | safeURL }}" | ||
/> | ||
{{ end -}} | ||
{{ $outputFormat := partial "outputformat.html" . -}} | ||
{{ if and | ||
hugo.IsProduction (ne $outputFormat "print") | ||
-}} | ||
<meta name="robots" content="index, follow" /> | ||
{{ else -}} | ||
<meta name="robots" content="noindex, nofollow" /> | ||
{{ end -}} | ||
{{ partialCached "favicons.html" . }} | ||
<title> | ||
{{- if .IsHome -}} | ||
{{ .Site.Title -}} | ||
{{ else -}} | ||
{{ with .Title }}{{ . }} |{{ end -}} {{ .Site.Title -}} | ||
{{ end -}} | ||
</title> | ||
<meta | ||
name="description" | ||
content="{{ template "partials/page-description.html" . }}" | ||
/> | ||
{{ template "_internal/opengraph.html" . -}} | ||
{{ template | ||
"_internal/schema.html" . | ||
-}} | ||
{{ template "_internal/twitter_cards.html" . -}} | ||
{{ partialCached "head-css.html" . "asdf" -}} | ||
<script | ||
src="https://code.jquery.com/jquery-3.7.1.min.js" | ||
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" | ||
crossorigin="anonymous" | ||
></script> | ||
{{ if .Site.Params.offlineSearch -}} | ||
<script | ||
defer | ||
src="https://unpkg.com/[email protected]/lunr.min.js" | ||
integrity="sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli" | ||
crossorigin="anonymous" | ||
></script> | ||
{{ end -}} | ||
{{ with .Site.Params.custom_js }} | ||
{{ range . }} | ||
<script async defer src="{{ . | absURL }}"></script> | ||
{{ end }} | ||
{{ end }} | ||
{{ if .Site.Params.prism_syntax_highlighting -}} | ||
<link rel="stylesheet" href="{{ "css/prism.css" | relURL }}" /> | ||
{{ end -}} | ||
{{ template | ||
"algolia/head" . | ||
-}} | ||
{{ partial "hooks/head-end.html" . -}} | ||
{{/* To comply with | ||
GDPR, cookie consent scripts places in head-end must execute before Google | ||
Analytics is enabled */ | ||
-}} | ||
{{ if hugo.IsProduction -}} | ||
{{ $enableGtagForUniversalAnalytics := not | ||
.Site.Params.disableGtagForUniversalAnalytics | ||
-}} | ||
{{ if (or | ||
$enableGtagForUniversalAnalytics (hasPrefix | ||
.Site.Config.Services.GoogleAnalytics.ID "G-")) | ||
-}} | ||
{{ template | ||
"_internal/google_analytics_gtag.html" . | ||
-}} | ||
{{ else -}} | ||
{{ template | ||
"_internal/google_analytics_async.html" . | ||
-}} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ define | ||
"algolia/head" | ||
-}} | ||
{{ if and .Site.Params.search (isset .Site.Params.search | ||
"algolia") | ||
-}} | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@docsearch/[email protected]" | ||
integrity="sha512-TW5eKlwwg7OfQUVBqxjp94/uqtjJJbhkRE3++XGEQjAL1n3y//QVqS3acPkwqkzInaFRtj+w05uyxDbfDXiI1A==" | ||
crossorigin="anonymous" | ||
/> | ||
{{ end -}} | ||
{{ if ne .Site.Params.algolia_docsearch nil -}} | ||
{{ warnf `Config | ||
'params.algolia_docsearch' is deprecated: use 'params.search.algolia' For | ||
details, see | ||
https://www.docsy.dev/docs/adding-content/search/#algolia-docsearch.` | ||
-}} | ||
{{ end -}} | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters