Skip to content

Commit

Permalink
fix links broken by merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed Jan 15, 2024
1 parent d65af4a commit 1769934
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.107.0'
hugo-version: '0.121.2'
extended: true

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.107.0'
hugo-version: '0.121.2'
extended: true

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v3
Expand Down
13 changes: 13 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ pre {
}

@media (min-width: 768px) {

.td-page-meta {
top: 4rem;
position: sticky;
}
.td-sidebar-nav {
// max-height: calc(100vh - 64px);
max-height: none;
Expand All @@ -446,6 +451,13 @@ pre {
}

.td-toc {
order:2;
.td-toc {
top: 4rem;
position: sticky;
border-left: solid;
border-left-width: 1pt;
border-left-color: rgb(222, 226, 230);
max-width: 20rem;
min-width: 12rem;
flex: 1 1 0;
Expand Down Expand Up @@ -474,6 +486,7 @@ pre {
list-style: decimal;
}
}
}

> main {
flex: 4 4 0;
Expand Down
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = "Goldydocs"
enableRobotsTXT = true

# Hugo allows theme composition (and inheritance). The precedence is from left to right.
theme = ["docsy"]
theme = ["github.com/google/docsy"]

timeout = 500000 # uh oh

Expand Down Expand Up @@ -90,7 +90,7 @@ weight = 30

# Comment out if you don't want the "print entire section" link enabled.
[outputs]
section = ["HTML", "print"]
section = ["HTML"]

[params]
copyright = "OpenBikeSensor Contributors"
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '3.3'
services:
website:
image: monachus/hugo
image: hugomods/hugo:latest
volumes:
- "./:/usr/share/blog"
- "./:/src"
command:
- hugo
- server
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/openbikesensor/openbikesensor.github.io

go 1.21.5

require github.com/google/docsy v0.8.0 // indirect
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.8.0 h1:RgHyKRTo8YwScMThrf01Ky2yCGpUS1hpkspwNv6szT4=
github.com/google/docsy v0.8.0/go.mod h1:FqTNN2T7pWEGW8dc+v5hQ5VF29W5uaL00PQ1LdVw5F8=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
3 changes: 3 additions & 0 deletions layouts/docs/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
{{ partial "sidebar.html" . }}
</div>
<div class="d-none d-xl-block td-toc d-print-none">
{{ partial "page-meta-links.html" . }}

{{ partial "toc.html" . }}

</div>
<main role="main">
{{ partial "version-banner.html" . }}
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/page-meta-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
{{ $newPageStub := resources.Get "stubs/new-page-template.md" }}
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL }}
{{ $newPageURL := printf "%s/new/%s?%s" $gh_repo $gh_repo_path $newPageQS }}
<a href="{{ $editURL }}" class="td-page-meta--edit" target="_blank" rel="noopener" title="edit"><i class="fa-solid fa-pen-to-square fa-fw"></i></a>
<a href="{{ $issuesURL }}" class="td-page-meta--issue" target="_blank" rel="noopener" title="post issue"><i class="fa-solid fa-list-check fa-fw"></i></a>

{{ if $gh_project_repo }}
{{ $project_issueURL := printf "%s/issues/new" $gh_project_repo }}
Expand Down
1 change: 0 additions & 1 deletion themes/docsy
Submodule docsy deleted from efc76d

0 comments on commit 1769934

Please sign in to comment.