Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ For the full list of changes, see the [0.x.y] release notes.
[Heading self links]:
https://www.docsy.dev/docs/adding-content/navigation/#heading-self-links
[td-content-after-header.html]:
https://github.com/google/docsy/blob/main/layouts/_default/td-content-after-header.html
https://github.com/google/docsy/blob/main/layouts/td-content-after-header.html

## 0.11.0

Expand Down
3 changes: 0 additions & 3 deletions layouts/_default/single.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions layouts/home.html

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions userguide/.htmltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ IgnoreURLs: # list of regexs of paths or URLs to be ignored
# Too flaky or unnecessary
- ^https://badges.netlify.com/api
- ^https://code.jquery.com
# TEMPORARY until we're done with https://github.com/google/docsy/issues/2243
- ^https://github.com/google/docsy/blob/main/layouts/td-content-after-header.html
- ^https://github.com/google/docsy/blob/main/layouts/baseof.html
34 changes: 7 additions & 27 deletions userguide/content/en/docs/adding-content/lookandfeel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ title: Look and Feel
date: 2017-01-05
weight: 2
description: Customize colors, fonts, code highlighting, and more for your site.
spelling: cSpell:ignore wordmark docsy myclass anotherclass
# prettier-ignore
cSpell:ignore: anotherclass autoprefixing baseof blockscover docsy lightdark monokai myclass onedark wordmark
---

By default, a site using Docsy has the theme's default fonts, colors, and
Expand Down Expand Up @@ -492,6 +493,11 @@ Similarly, if you want to add some code right before the `body` end, create your
own version of [hooks/body-end.html]. This partial is included automatically at
the end of the theme partial [scripts.html].

Both [head.html] and [scripts.html] are included from [baseof.html], Docsy's
[base template][].

[baseof.html]: https://github.com/google/docsy/blob/main/layouts/baseof.html
[base template]: https://gohugo.io/templates/base/
[head.html]:
https://github.com/google/docsy/blob/main/layouts/_partials/head.html
[hooks/body-end.html]:
Expand All @@ -501,32 +507,6 @@ the end of the theme partial [scripts.html].
[scripts.html]:
https://github.com/google/docsy/blob/main/layouts/_partials/head.html

Both `head.html` and `scripts.html` are then used to build Docsy's
[base page layout](https://github.com/google/docsy/blob/main/layouts/_default/baseof.html),
which is used by all the other page templates:

<!-- prettier-ignore -->
```html
<!doctype html>
<html lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}
</head>
<body class="td-{{ .Kind }}">
<header>
{{ partial "navbar.html" . }}
</header>
<div class="container-fluid td-default td-outer">
<main role="main" class="td-main">
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
</div>
{{ partialCached "scripts.html" . }}
</body>
</html>
```

## Adding custom class to the body element

By default, Docsy adds the `td-{{ .Kind }}` class, where the kind is the kind of
Expand Down
2 changes: 1 addition & 1 deletion userguide/content/en/docs/get-started/other-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Other setup options
description: Create a new Docsy site with Docsy using Git or NPM
date: 2021-12-08T09:22:27+01:00
spelling: cSpell:ignore docsy gohugo hugo myproject
cSpell:ignore: docsy gohugo hugo myproject
weight: 2
---

Expand Down
12 changes: 4 additions & 8 deletions userguide/static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,14 +707,6 @@
"StatusCode": 206,
"LastSeen": "2025-05-16T09:20:36.405106-04:00"
},
"https://github.com/google/docsy/blob/main/layouts/_default/baseof.html": {
"StatusCode": 206,
"LastSeen": "2025-05-16T09:35:01.926687-04:00"
},
"https://github.com/google/docsy/blob/main/layouts/_default/td-content-after-header.html": {
"StatusCode": 206,
"LastSeen": "2025-05-16T08:36:58.741144-04:00"
},
"https://github.com/google/docsy/blob/main/layouts/_partials/head.html": {
"StatusCode": 206,
"LastSeen": "2025-05-16T09:35:01.197874-04:00"
Expand Down Expand Up @@ -1847,6 +1839,10 @@
"StatusCode": 206,
"LastSeen": "2025-05-16T09:20:37.548164-04:00"
},
"https://gohugo.io/templates/base/": {
"StatusCode": 206,
"LastSeen": "2025-05-22T11:57:59.6157-04:00"
},
"https://gohugo.io/templates/embedded/": {
"StatusCode": 206,
"LastSeen": "2025-05-16T10:33:25.556387-04:00"
Expand Down