Skip to content

Commit 96d1035

Browse files
committed
Migration to docsy theme version v0.7.1
1 parent d58ee8d commit 96d1035

File tree

13 files changed

+1271
-599
lines changed

13 files changed

+1271
-599
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Thumbs.db
2+
.hugo_build.lock
23
public/
4+
resources/
35
node_modules/
46
tech-doc-hugo
57

.gitmodules

-3
This file was deleted.

content/en/_index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
{{< blocks/cover title="Welcome to Lisp-Stat: An environment for Statistical Computing" image_anchor="top" height="full" color="orange" >}}
88
<div class="mx-auto">
9-
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
10-
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
9+
<a class="btn btn-lg btn-primary me-3 mb-4" href="{{< relref "/docs" >}}">
10+
Learn More <i class="fas fa-arrow-alt-circle-right ms-2"></i>
1111
</a>
12-
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://github.com/lisp-stat">
13-
Download <i class="fab fa-github ml-2 "></i>
12+
<a class="btn btn-lg btn-secondary me-3 mb-4" href="https://github.com/lisp-stat">
13+
Download <i class="fab fa-github ms-2 "></i>
1414
</a>
1515
<p class="lead mt-5">A full stack statistical computing environment</p>
1616
{{< blocks/link-down color="info" >}}
@@ -28,7 +28,7 @@
2828

2929
{{% /blocks/lead %}}
3030

31-
{{< blocks/section color="dark" >}}
31+
{{< blocks/section color="dark" type="row" >}}
3232
{{% blocks/feature icon="fa-lightbulb" title="See Lisp-Stat in action" url="/docs/examples" %}}
3333
See practical examples of using Lisp-Stat for statistical computation
3434

@@ -48,7 +48,7 @@
4848
{{< /blocks/section >}}
4949

5050
<!-- Some quick examples -->
51-
{{< blocks/section >}}
51+
{{< blocks/section type="row" >}}
5252

5353
{{% blocks/feature icon="fas fa-power-off" title="Get Started" url="/docs/getting-started/" %}}
5454
Install to plotting in five minutes

content/en/docs/Getting started/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ for Common Lisp that includes Emacs, SBCL, Git, Quicklisp, all
1414
configured and ready to use.
1515

1616
<div class="mx-auto">
17-
<a class="btn btn-lg btn-primary mr-3 mb-4" href="https://portacle.github.io/">
18-
Download Portacle<i class="fas fa-arrow-alt-circle-right ml-2"></i>
17+
<a class="btn btn-lg btn-primary me-3 mb-4" href="https://portacle.github.io/">
18+
Download Portacle<i class="fas fa-arrow-alt-circle-right ms-2"></i>
1919
</a>
2020
</div>
2121

go.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/Lisp-Stat/documentation
2+
3+
go 1.20
4+
5+
require github.com/google/docsy v0.7.1 // indirect

go.sum

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2+
github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY=
3+
github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc=
4+
github.com/google/docsy/dependencies v0.7.1/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
5+
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

config.toml hugo.toml

+11-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title = "Lisp-Stat"
33

44
enableRobotsTXT = true
55

6-
# Hugo allows theme composition (and inheritance). The precedence is from left to right.
7-
theme = ["docsy"]
8-
96
# Will give values to .Lastmod etc.
107
enableGitInfo = true
118

@@ -16,7 +13,7 @@ defaultContentLanguageInSubdir = false
1613
# Useful when translating.
1714
enableMissingTranslationPlaceholders = true
1815

19-
disableKinds = ["taxonomy", "taxonomyTerm"]
16+
disableKinds = ["taxonomy"]
2017

2118
# Highlighting config
2219
pygmentsCodeFences = true
@@ -54,8 +51,9 @@ id = "G-4JNEYSENWT"
5451
[languages]
5552
[languages.en]
5653
title = "Lisp-Stat"
57-
description = "Lisp-Stat Documentation"
5854
languageName ="English"
55+
[languages.en.params]
56+
description = "Lisp-Stat Documentation"
5957
time_format_blog = "Monday, 02 January 2006"
6058
time_format_default = "02 January 2006"
6159

@@ -223,4 +221,11 @@ enable = false
223221
# [[module.imports.mounts]]
224222
# source="special-functions/docs"
225223
# target="content/docs/Reference/special-functions"
226-
# language="en"
224+
# language="en"
225+
226+
[module]
227+
proxy = "direct"
228+
[[module.imports]]
229+
path = "github.com/google/docsy"
230+
[[module.imports]]
231+
path = "github.com/google/docsy/dependencies"

layouts/partials/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
2020
{{ with .Site.Params.copyright }}<small class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small><br/>{{ end }}
21-
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
21+
{{ with .Site.Params.privacy_policy }}<small class="ms-1"><a href="{{ . }}" target="_blank">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
2222
{{ if not .Site.Params.ui.footer_about_disable }}
2323
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
2424
{{ end }}

layouts/partials/head.html

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
{{ partialCached "favicons.html" . }}
1717
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
1818
{{- template "_internal/opengraph.html" . -}}
19-
{{- template "_internal/google_news.html" . -}}
2019
{{- template "_internal/schema.html" . -}}
2120
{{- template "_internal/twitter_cards.html" . -}}
2221
{{ if hugo.IsProduction }}

netlify.toml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[build]
22
publish = "public"
3-
command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo"
3+
command = "hugo"
44

55
[context.production.environment]
6-
HUGO_VERSION = "0.82.0"
6+
HUGO_VERSION = "0.117.0"
77
HUGO_ENV = "production"
88
HUGO_ENABLEGITINFO = "true"
9+
GO_VERSION = "1.21.0"
10+
NODE_VERSION = "18"
911

1012
# Not using preview nor branch deployment yet
1113
# See:
@@ -14,7 +16,11 @@
1416
# https://gohugo.io/hosting-and-deployment/hosting-on-netlify/
1517

1618
[context.branch-deploy.environment]
17-
HUGO_VERSION = "0.82.0"
19+
HUGO_VERSION = "0.117.0"
20+
GO_VERSION = "1.21.0"
21+
NODE_VERSION = "18"
1822

1923
[context.deploy-preview.environment]
20-
HUGO_VERSION = "0.82.0"
24+
HUGO_VERSION = "0.117.0"
25+
GO_VERSION = "1.21.0"
26+
NODE_VERSION = "18"

0 commit comments

Comments
 (0)