Skip to content

Commit ccf64ad

Browse files
authored
Upgrade to Docsy 0.13.0-dev+82-gec833d2 (#395)
1 parent 9222a45 commit ccf64ad

File tree

103 files changed

+1396
-12638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1396
-12638
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
time: '20:00'
8-
open-pull-requests-limit: 10
9-
- package-ecosystem: bundler
10-
directory: "/"
11-
schedule:
12-
interval: daily
13-
time: '20:00'
14-
open-pull-requests-limit: 10
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
time: '20:00'
8+
open-pull-requests-limit: 10
9+
- package-ecosystem: bundler
10+
directory: '/'
11+
schedule:
12+
interval: daily
13+
time: '20:00'
14+
open-pull-requests-limit: 10

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Note that Prettier ignore rules differ slightly from gitignore rules. The main
2+
# gotcha is that once a _directory_ is ignored, it's content cannot be
3+
# unignored.
4+
5+
/content/fa
6+
/layouts

README.md

Lines changed: 69 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Docsy Example
22

3-
[Docsy][] is a [Hugo theme module][] for technical documentation sites, providing easy
4-
site navigation, structure, and more. This **Docsy Example Project** uses the Docsy
5-
theme component as a hugo module and provides a skeleton documentation structure for you to use.
6-
You can clone/copy this project and edit it with your own content, or use it as an example.
3+
[Docsy][] is a [Hugo theme module][] for technical documentation sites,
4+
providing easy site navigation, structure, and more. This **Docsy Example
5+
Project** uses the Docsy theme component as a hugo module and provides a
6+
skeleton documentation structure for you to use. You can clone/copy this project
7+
and edit it with your own content, or use it as an example.
78

89
In this project, the Docsy theme is pulled in as a Hugo module, together with
910
its dependencies:
@@ -19,55 +20,67 @@ This Docsy Example Project is hosted on [Netlify][] at [example.docsy.dev][].
1920
You can view deploy logs from the [deploy section of the project's Netlify
2021
dashboard][deploys], or this [alternate dashboard][].
2122

22-
This is not an officially supported Google product. This project is currently maintained.
23+
This is not an officially supported Google product. This project is currently
24+
maintained.
2325

2426
## Using the Docsy Example Project as a template
2527

26-
A simple way to get started is to use this project as a template, which gives you a site project that is set up and ready to use. To do this:
28+
A simple way to get started is to use this project as a template, which gives
29+
you a site project that is set up and ready to use. To do this:
2730

28-
1. Use the dropdown for switching branches/tags to change to the **latest** released tag.
31+
1. Use the dropdown for switching branches/tags to change to the **latest**
32+
released tag.
2933

3034
2. Click **Use this template**.
3135

32-
3. Select a name for your new project and click **Create repository from template**.
36+
3. Select a name for your new project and click **Create repository from
37+
template**.
3338

34-
4. Make your own local working copy of your new repo using git clone, replacing https://github.com/me/example.git with your repo’s web URL:
39+
4. Make your own local working copy of your new repo using git clone, replacing
40+
https://github.com/me/example.git with your repo’s web URL:
3541

3642
```bash
3743
git clone --depth 1 https://github.com/me/example.git
3844
```
3945

40-
Depending on your environment you may need to adjust the top-level `module` settings in your project's Hugo config file, for example, by adding a proxy to use when downloading remote modules.
41-
You can find details of what these configuration settings do in the [Hugo modules documentation](https://gohugo.io/hugo-modules/configuration/#module-config-top-level).
46+
Depending on your environment you may need to adjust the top-level `module`
47+
settings in your project's Hugo config file, for example, by adding a proxy to
48+
use when downloading remote modules. You can find details of what these
49+
configuration settings do in the
50+
[Hugo modules documentation](https://gohugo.io/hugo-modules/configuration/#module-config-top-level).
4251

43-
Once your settings are adjusted, you can edit your own versions of the site’s source files.
52+
Once your settings are adjusted, you can edit your own versions of the site’s
53+
source files.
4454

45-
If you want to do SCSS edits and want to publish these, you need to install `PostCSS`
55+
If you want to do SCSS edits and want to publish these, you need to install
56+
`PostCSS`
4657

4758
```bash
4859
npm install
4960
```
5061

5162
## Running the website locally
5263

53-
Building and running the site locally requires a recent `extended` version of [Hugo](https://gohugo.io).
54-
You can find out more about how to install Hugo for your environment in our
55-
[Getting started](https://www.docsy.dev/docs/getting-started/#prerequisites-and-installation) guide.
64+
Building and running the site locally requires a recent `extended` version of
65+
[Hugo](https://gohugo.io). You can find out more about how to install Hugo for
66+
your environment in our
67+
[Getting started](https://www.docsy.dev/docs/getting-started/#prerequisites-and-installation)
68+
guide.
5669

57-
Once you've made your working copy of the site repo, from the repo root folder, run:
70+
Once you've made your working copy of the site repo, from the repo root folder,
71+
run:
5872

5973
```bash
6074
hugo server
6175
```
6276

6377
## Running a container locally
6478

65-
You can run docsy-example inside a [Docker](https://docs.docker.com/)
66-
container, the container runs with a volume bound to the `docsy-example`
67-
folder. This approach doesn't require you to install any dependencies other
68-
than [Docker Desktop](https://www.docker.com/products/docker-desktop) on
69-
Windows and Mac, and [Docker Compose](https://docs.docker.com/compose/install/)
70-
on Linux.
79+
You can run docsy-example inside a [Docker](https://docs.docker.com/) container,
80+
the container runs with a volume bound to the `docsy-example` folder. This
81+
approach doesn't require you to install any dependencies other than
82+
[Docker Desktop](https://www.docker.com/products/docker-desktop) on Windows and
83+
Mac, and [Docker Compose](https://docs.docker.com/compose/install/) on Linux.
7184

7285
1. Build the docker image
7386

@@ -85,10 +98,10 @@ on Linux.
8598
8699
1. Verify that the service is working.
87100

88-
Open your web browser and type `http://localhost:1313` in your navigation bar,
89-
This opens a local instance of the docsy-example homepage. You can now make
90-
changes to the docsy example and those changes will immediately show up in your
91-
browser after you save.
101+
Open your web browser and type `http://localhost:1313` in your navigation
102+
bar, This opens a local instance of the docsy-example homepage. You can now
103+
make changes to the docsy example and those changes will immediately show up
104+
in your browser after you save.
92105

93106
### Cleanup
94107

@@ -99,13 +112,16 @@ To remove the produced images run:
99112
```bash
100113
docker-compose rm
101114
```
115+
102116
For more information see the [Docker Compose documentation][].
103117

104118
## Using a local Docsy clone
105119

106120
Make sure your installed go version is `1.18` or higher.
107121

108-
Clone the latest version of the docsy theme into the parent folder of your project. The newly created repo should now reside in a sibling folder of your site's root folder.
122+
Clone the latest version of the docsy theme into the parent folder of your
123+
project. The newly created repo should now reside in a sibling folder of your
124+
site's root folder.
109125

110126
```shell
111127
cd root-of-your-site
@@ -124,16 +140,24 @@ or, when using npm, prepend `local` to the script you want to invoke, e.g.:
124140
npm run local serve
125141
```
126142

127-
By using the `HUGO_MODULE_WORKSPACE` directive (either directly or via prefix `local` when using npm), the server now watches all files and directories inside the sibling directory `../docsy` , too. Any changes inside the local `docsy` theme clone are now immediately picked up (hot reload), you can instantly see the effect of your local edits.
143+
By using the `HUGO_MODULE_WORKSPACE` directive (either directly or via prefix
144+
`local` when using npm), the server now watches all files and directories inside
145+
the sibling directory `../docsy` , too. Any changes inside the local `docsy`
146+
theme clone are now immediately picked up (hot reload), you can instantly see
147+
the effect of your local edits.
128148

129-
In the command above, we used the environment variable `HUGO_MODULE_WORKSPACE` to tell hugo about the local workspace file `docsy.work`. Alternatively, you can declare the workspace file inside your settings file `hugo.toml`:
149+
In the command above, we used the environment variable `HUGO_MODULE_WORKSPACE`
150+
to tell hugo about the local workspace file `docsy.work`. Alternatively, you can
151+
declare the workspace file inside your settings file `hugo.toml`:
130152

131153
```toml
132154
[module]
133155
workspace = "docsy.work"
134156
```
135157

136-
Your project's `hugo.toml` file already contains these lines, the directive for workspace assignment is commented out, however. Remove the two trailing comment characters '//' so that this line takes effect.
158+
Your project's `hugo.toml` file already contains these lines, the directive for
159+
workspace assignment is commented out, however. Remove the two trailing comment
160+
characters '//' so that this line takes effect.
137161

138162
## Troubleshooting
139163

@@ -148,8 +172,10 @@ Error: Error building site: "C:\Users\foo\path\to\docsy-example\content\en\_inde
148172
Built in 27 ms
149173
```
150174

151-
This error occurs if you are running an outdated version of Hugo. As of docsy theme version `v0.12.0`, hugo version `0.146.0` or higher is required.
152-
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo) of the user guide for instructions on how to install Hugo.
175+
This error occurs if you are running an outdated version of Hugo. As of docsy
176+
theme version `v0.12.0`, hugo version `0.146.0` or higher is required. See this
177+
[section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo)
178+
of the user guide for instructions on how to install Hugo.
153179

154180
Or you may be confronted with the following error:
155181

@@ -162,8 +188,10 @@ Built in 288 ms
162188
Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): resource "scss/scss/main.scss_9fadf33d895a46083cdd64396b57ef68" not found in file cache
163189
```
164190

165-
This error occurs if you have not installed the extended version of Hugo.
166-
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo) of the user guide for instructions on how to install Hugo.
191+
This error occurs if you have not installed the extended version of Hugo. See
192+
this
193+
[section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo)
194+
of the user guide for instructions on how to install Hugo.
167195

168196
Or you may encounter the following error:
169197

@@ -173,15 +201,17 @@ $ hugo server
173201
Error: failed to download modules: binary with name "go" not found
174202
```
175203

176-
This error occurs if the `go` programming language is not available on your system.
177-
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-go-language) of the user guide for instructions on how to install `go`.
178-
204+
This error occurs if the `go` programming language is not available on your
205+
system. See this
206+
[section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-go-language)
207+
of the user guide for instructions on how to install `go`.
179208

180209
[alternate dashboard]: https://app.netlify.com/sites/goldydocs/deploys
181210
[deploys]: https://app.netlify.com/sites/docsy-example/deploys
182211
[Docsy user guide]: https://docsy.dev/docs
183212
[Docsy]: https://github.com/google/docsy
184213
[example.docsy.dev]: https://example.docsy.dev
185-
[Hugo theme module]: https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme
214+
[Hugo theme module]:
215+
https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme
186216
[Netlify]: https://netlify.com
187217
[Docker Compose documentation]: https://docs.docker.com/compose/gettingstarted/

assets/scss/_styles_project.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
Project-specific styles. For details, see:
3+
https://www.docsy.dev/docs/content/lookandfeel/#project-style-files
4+
*/
5+
6+
// Dark mode enhancements
7+
@import 'td/color-adjustments-dark';
8+
@import 'td/code-dark';
9+
@import 'td/gcs-search-dark';
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
3-
Add styles or override variables from the theme here.
4-
2+
Projects can override this file. For details, see:
3+
https://www.docsy.dev/docs/content/lookandfeel/#project-style-files
54
*/
6-

content/en/_index.md

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,76 +2,68 @@
22
title: Goldydocs
33
---
44

5+
<style>
6+
.td-heading-self-link {
7+
display: none;
8+
}
9+
</style>
10+
511
{{< blocks/cover title="Welcome to Goldydocs: A Docsy Example Project!" image_anchor="top" height="full" >}}
12+
613
<a class="btn btn-lg btn-primary me-3 mb-4" href="/docs/">
714
Learn More <i class="fas fa-arrow-alt-circle-right ms-2"></i>
815
</a>
916
<a class="btn btn-lg btn-secondary me-3 mb-4" href="https://github.com/google/docsy-example">
1017
Download <i class="fab fa-github ms-2 "></i>
1118
</a>
1219
<p class="lead mt-5">Porridge temperature assessment &mdash; in the cloud!</p>
13-
{{< blocks/link-down color="info" >}}
14-
{{< /blocks/cover >}}
1520

21+
{{< blocks/link-down color="info" >}} {{< /blocks/cover >}}
1622

1723
{{% blocks/lead color="primary" %}}
24+
1825
Goldydocs provides a single web UI providing visibility into porridge
1926
temperature, chair size, and bed softness metrics! You can even find out who's
2027
been eating **your** porridge.
2128

2229
(Sadly, Goldydocs isn't a real project, but you can use this site as an example
2330
to create your own real websites with [Docsy](https://docsy.dev))
31+
2432
{{% /blocks/lead %}}
2533

34+
{{% blocks/section color="white" type="row" %}}
2635

27-
{{% blocks/section color="dark" type="row" %}}
2836
{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}}
37+
2938
The Goldydocs UI now shows chair size metrics by default.
3039

3140
Please follow this space for updates!
32-
{{% /blocks/feature %}}
3341

42+
{{% /blocks/feature %}}
3443

3544
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
36-
We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome!
37-
{{% /blocks/feature %}}
3845

46+
We do a [Pull Request](https://github.com/google/docsy-example/pulls)
47+
contributions workflow on **GitHub**. New users are always welcome!
3948

40-
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}}
41-
For announcement of latest features etc.
4249
{{% /blocks/feature %}}
4350

51+
{{% blocks/feature icon="fab fa-x-twitter" title="Follow us on X!" url="https://x.com/docsydocs" %}}
4452

45-
{{% /blocks/section %}}
53+
For announcement of latest features etc.
4654

55+
{{% /blocks/feature %}}
4756

48-
{{% blocks/section %}}
49-
This is the second section
50-
{.h1 .text-center}
5157
{{% /blocks/section %}}
5258

59+
{{% blocks/section type="row text-center" %}}
5360

54-
{{% blocks/section type="row" %}}
61+
# This is the second section
5562

56-
{{% blocks/feature icon="fab fa-app-store-ios" title="Download **from AppStore**" %}}
57-
Get the Goldydocs app!
58-
{{% /blocks/feature %}}
63+
{{% /blocks/section %}}
5964

60-
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!"
61-
url="https://github.com/google/docsy-example" %}}
62-
We do a [Pull Request](https://github.com/google/docsy-example/pulls)
63-
contributions workflow on **GitHub**. New users are always welcome!
64-
{{% /blocks/feature %}}
65+
{{% blocks/section type="row text-center" %}}
6566

66-
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!"
67-
url="https://twitter.com/GoHugoIO" %}}
68-
For announcement of latest features etc.
69-
{{% /blocks/feature %}}
67+
# This is the another section with center alignment
7068

7169
{{% /blocks/section %}}
72-
73-
74-
{{% blocks/section %}}
75-
This is the another section
76-
{.h1 .text-center}
77-
{{% /blocks/section %}}

0 commit comments

Comments
 (0)