Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-03-31 00:08:56 +03:00
parent da30c7bf04
commit 2472366994
15 changed files with 101 additions and 5 deletions

0
.hugo_build.lock Normal file
View File

View File

@ -0,0 +1,7 @@
---
title: 'v0'
section: 'cms'
import: 'go.unistack.org/cms-api-proto'
version: 'v0'
source: 'https://git.unistack.org/unistack-org/cms-api-proto'
---

View File

@ -0,0 +1,8 @@
---
title: 'v1'
section: 'cms'
import: 'go.unistack.org/cms-api-proto'
version: 'v1'
branch: 'master'
source: 'https://git.unistack.org/unistack-org/cms-api-proto'
---

7
content/cms-api/v0.html Normal file
View File

@ -0,0 +1,7 @@
---
title: 'v0'
section: 'cms'
import: 'go.unistack.org/cms-api'
version: 'v0'
source: 'https://git.unistack.org/unistack-org/cms-api'
---

7
content/cms-api/v1.html Normal file
View File

@ -0,0 +1,7 @@
---
title: 'v1'
section: 'cms'
import: 'go.unistack.org/cms-api'
version: 'v1'
source: 'https://git.unistack.org/unistack-org/cms-api'
---

View File

@ -0,0 +1,7 @@
---
title: 'v0'
section: 'cms'
import: 'go.unistack.org/cms-service'
version: 'v0'
source: 'https://git.unistack.org/unistack-org/cms-service'
---

View File

@ -0,0 +1,7 @@
---
title: 'v1'
section: 'cms'
import: 'go.unistack.org/cms-service'
version: 'v1'
source: 'https://git.unistack.org/unistack-org/cms-service'
---

View File

@ -0,0 +1,7 @@
---
title: 'v0'
section: 'cms'
import: 'go.unistack.org/cms-setup-proto'
version: 'v0'
source: 'https://git.unistack.org/unistack-org/cms-setup-proto'
---

View File

@ -0,0 +1,8 @@
---
title: 'v1'
section: 'cms'
import: 'go.unistack.org/cms-setup-proto'
version: 'v1'
branch: 'master'
source: 'https://git.unistack.org/unistack-org/cms-setup-proto'
---

View File

@ -0,0 +1,7 @@
---
title: 'v0'
section: 'cms'
import: 'go.unistack.org/cms-unistack'
version: 'v0'
source: 'https://git.unistack.org/unistack-org/cms-unistack'
---

View File

@ -0,0 +1,7 @@
---
title: 'v1'
section: 'cms'
import: 'go.unistack.org/cms-unistack'
version: 'v1'
source: 'https://git.unistack.org/unistack-org/cms-unistack'
---

7
content/cms/v0.html Normal file
View File

@ -0,0 +1,7 @@
---
title: 'v0'
section: 'cms'
import: 'go.unistack.org/cms'
version: 'v0'
source: 'https://git.unistack.org/unistack-org/cms'
---

7
content/cms/v1.html Normal file
View File

@ -0,0 +1,7 @@
---
title: 'v1'
section: 'cms'
import: 'go.unistack.org/cms'
version: 'v1'
source: 'https://git.unistack.org/unistack-org/cms'
---

View File

@ -0,0 +1,7 @@
---
title: 'v3'
section: 'micro'
import: 'go.unistack.org/micro-client-mock'
version: 'v3'
source: 'https://git.unistack.org/unistack-org/micro-client-mock'
---

View File

@ -1,14 +1,17 @@
{{- $version := cond (eq .Params.version "v0") "" (cond (eq .Params.version "v1") "" (cond (eq .Params.version "") "" (printf "/%s" .Params.version ))) -}}
{{- $branch := cond (eq .Params.version "v0") "master" (cond (eq .Params.version "v1") "master" (cond (eq .Params.version "") "" .Params.version)) -}}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="5;url=https://pkg.go.dev/{{ .Params.import }}/{{ .Params.version }}"/> <meta http-equiv="refresh" content="5;url=https://pkg.go.dev/{{ .Params.import }}{{ $version }}"/>
<meta name="go-import" content="{{ .Params.import }}/{{ .Params.version }} git {{ .Params.source }}"/> <meta name="go-import" content="{{ .Params.import }}{{ $version }} git {{ .Params.source }}"/>
<meta name="go-source" content="{{ .Params.import }}/{{ .Params.version }} _ {{ .Params.source }}{/dir} {{ .Params.source }}/blob/{{ .Params.version }}/{/dir}/{file}#L{line}"/> <meta name="go-source" content="{{ .Params.import }}{{ $version }} _ {{ .Params.source }}{/dir} {{ .Params.source }}/src/branch/{{ $branch }}/{/dir}/{file}#L{line}"/>
</head> </head>
<body> <body>
<a href="https://pkg.go.dev/{{ .Params.import }}/{{ .Params.version }}">pkg.go.dev</a><br/> <a href="https://pkg.go.dev/{{ .Params.import }}{{ $version }}">pkg.go.dev</a><br/>
go get {{ .Params.import }}/{{ .Params.version }}<br/> go get {{ .Params.import }}{{ $version }}<br/>
</body> </body>
</html> </html>