Skip to content

Commit ee89baf

Browse files
authored
Add missing link def to navigation.md, fix linter config, and more (#2393)
1 parent 26a0c57 commit ee89baf

21 files changed

+98
-227
lines changed

.markdownlint-cli2.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# cSpell:ignore docsy github lookandfeel iconsimages
2+
3+
globs:
4+
- '!node_modules/**'
5+
- '!public/**'
6+
- '!tmp/**'
7+
- '!docsy.dev/**'
8+
- docsy.dev/content/en/docs/content/iconsimages.md
9+
- docsy.dev/content/en/docs/content/language.md
10+
- docsy.dev/content/en/docs/content/lookandfeel.md
11+
- docsy.dev/content/en/docs/content/navigation.md
12+
# - docsy.dev/content/en/docs/content/repository-links.md
13+
# - docsy.dev/content/en/docs/content/search.md
14+
# - docsy.dev/content/en/docs/content/shortcodes.md
15+
# - docsy.dev/content/en/docs/content/versioning.md
16+
config:
17+
extends: .markdownlint.yaml

.markdownlint.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# See https://github.com/DavidAnson/markdownlint/blob/main/README.md#rules--aliases
22
# cSpell:ignore docsy
33

4-
ignores:
5-
- node_modules/**
6-
- public/**
7-
- docsy.dev/public/**
8-
94
default: true
105

116
blanks-around-fences: false
@@ -19,4 +14,4 @@ no-hard-tabs: false
1914
no-inline-html: false
2015
no-trailing-punctuation: false
2116
no-trailing-spaces: { br_spaces: 0, strict: true}
22-
table-column-style: false # Causes problems in ja and zh pages
17+
# table-column-style: false

assets/scss/_table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
@extend .table-responsive;
55

66
// The following is needed for tables to be responsive.
7-
// For details, see the https://docsy.dev/docs/adding-content/lookandfeel/#tables
7+
// For details, see the https://docsy.dev/docs/content/lookandfeel/#tables
88
display: block;
99
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
22
Projects can override this file. For details, see:
3-
https://www.docsy.dev/docs/adding-content/lookandfeel/#project-style-files
3+
https://www.docsy.dev/docs/content/lookandfeel/#project-style-files
44
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
22
Projects can override this file. For details, see:
3-
https://www.docsy.dev/docs/adding-content/lookandfeel/#project-style-files
3+
https://www.docsy.dev/docs/content/lookandfeel/#project-style-files
44
*/

docsy.dev/.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/content/**/*.*
44
!/content/en/blog/**/*.*
55
!/content/en/docs/_index.md
6-
!/content/en/docs/adding-content/**/*.*
6+
!/content/en/docs/content/**/*.*
77
!/content/en/site/**/*.*
88

99
/layouts

docsy.dev/content/en/docs/content/adding-content.md

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ description: >
305305

306306
The minimum frontmatter you need to provide is a title: everything else is up to
307307
you! However, if you leave out the page weight, your
308-
[navigation](/docs/content/navigation) may get a little disorganized. You
309-
may also want to include `description` since Docsy uses that to generate the
310-
meta `description` tag used by search engines. See [Search Engine Optimization
311-
(SEO) meta tags]({{< ref "feedback#search-engine-optimization-meta-tags" >}})
312-
for details.
308+
[navigation](/docs/content/navigation) may get a little disorganized. You may
309+
also want to include `description` since Docsy uses that to generate the meta
310+
`description` tag used by search engines. See [Search Engine Optimization (SEO)
311+
meta tags]({{< ref "feedback#search-engine-optimization-meta-tags" >}}) for
312+
details.
313313

314314
## Page contents and markup
315315

@@ -360,8 +360,8 @@ markup:
360360
{{% /alert %}}
361361

362362
In addition to your marked-up text, you can also use Hugo and Docsy's
363-
[shortcodes](/docs/content/shortcodes): reusable chunks of HTML that you
364-
can use to quickly build your pages. Find out more about shortcodes in
363+
[shortcodes](/docs/content/shortcodes): reusable chunks of HTML that you can use
364+
to quickly build your pages. Find out more about shortcodes in
365365
[Docsy Shortcodes](/docs/content/shortcodes).
366366

367367
{{% alert title="Note" color="info" %}} Hugo also supports adding content using
@@ -416,9 +416,9 @@ You can see examples of both approaches in this and our example site. For
416416
example, the source for this page is just a standalone file
417417
`/content/en/docs/content/adding-content.md`. However the source for
418418
[Docsy Shortcodes](/docs/content/shortcodes/) in this site lives in
419-
`/content/en/docs/content/shortcodes/index.md`, with the image resource
420-
used by the page in the same `/shortcodes/` directory. In Hugo terminology, this
421-
is called a _leaf bundle_ because it's a folder containing all the data for a
419+
`/content/en/docs/content/shortcodes/index.md`, with the image resource used by
420+
the page in the same `/shortcodes/` directory. In Hugo terminology, this is
421+
called a _leaf bundle_ because it's a folder containing all the data for a
422422
single site page without any child pages (and uses `index.md` without an
423423
underscore).
424424

@@ -478,8 +478,8 @@ organizing your content with Docsy in
478478
By default a docs section landing page (the `_index.md` or `_index.html` in the
479479
section directory) uses a layout that adds a formatted list of links to the
480480
pages in the section, with their frontmatter descriptions. The
481-
[Content and Customization](/docs/content/) landing page in this site is
482-
a good example.
481+
[Content and Customization](/docs/content/) landing page in this site is a good
482+
example.
483483

484484
To display a simple bulleted list of links to the section's pages instead,
485485
specify `simple_list: true` in the landing page's frontmatter:
@@ -665,16 +665,16 @@ own custom content.
665665

666666
The example site also has an About page in `content/en/about/_index.html` using
667667
the same Docsy template. Again, this is made up of
668-
[page blocks](/docs/content/shortcodes/#shortcode-blocks), including
669-
another background image in `content/en/about/featured-background.jpg`. As with
670-
the site landing page, you can replace the image, remove or add blocks, or just
671-
add your own content.
668+
[page blocks](/docs/content/shortcodes/#shortcode-blocks), including another
669+
background image in `content/en/about/featured-background.jpg`. As with the site
670+
landing page, you can replace the image, remove or add blocks, or just add your
671+
own content.
672672

673673
### Building your own landing pages
674674

675675
If you've just used the theme, you can still use all Docsy's provided
676-
[page blocks](/docs/content/shortcodes/#shortcode-blocks) (or any other
677-
content you want) to build your own landing pages in the same file locations.
676+
[page blocks](/docs/content/shortcodes/#shortcode-blocks) (or any other content
677+
you want) to build your own landing pages in the same file locations.
678678

679679
## Adding a community page
680680

@@ -863,14 +863,13 @@ disableKinds: [RSS]
863863

864864
{{% alert title=Note color=info %}}
865865

866-
If you have enabled our [print feature](/docs/content/print/) or
867-
otherwise specified section-level output formats in
868-
`hugo.toml`/`hugo.yaml`/`hugo.json`, make sure that `"RSS"` is listed as an
869-
output format, otherwise you won't get section-level RSS feeds (and your blog
870-
section won't get a nice orange RSS button). Your
871-
`hugo.toml`/`hugo.yaml`/`hugo.json` specification overrides the Hugo default
872-
[output formats](https://gohugo.io/methods/page/outputformats/) for sections,
873-
which are HTML and RSS.
866+
If you have enabled our [print feature](/docs/content/print/) or otherwise
867+
specified section-level output formats in `hugo.toml`/`hugo.yaml`/`hugo.json`,
868+
make sure that `"RSS"` is listed as an output format, otherwise you won't get
869+
section-level RSS feeds (and your blog section won't get a nice orange RSS
870+
button). Your `hugo.toml`/`hugo.yaml`/`hugo.json` specification overrides the
871+
Hugo default [output formats](https://gohugo.io/methods/page/outputformats/) for
872+
sections, which are HTML and RSS.
874873

875874
<!-- prettier-ignore-start -->
876875
{{< tabpane >}}

docsy.dev/content/en/docs/content/feedback.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ using the `description` meta tag to tell search engines what your page is about.
309309
For each generated page, Docsy will set the content of the meta `description` by
310310
using the first of the following that is defined:
311311

312-
- The page `description` [frontmatter field](/docs/content/adding-content/#page-frontmatter)
312+
- The page `description`
313+
[frontmatter field](/docs/content/adding-content/#page-frontmatter)
313314
- For non-index pages, the page [summary][], as computed by Hugo
314315
- The site description taken from the [site `params`][]
315316

docsy.dev/content/en/docs/content/iconsimages.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Logos and Images
33
date: 2017-01-05
44
weight: 6
55
description: Add and customize logos, icons, and images in your project.
6+
cSpell:ignore: Icongen lookandfeel cthedot icongen imgproc
67
---
78

89
## Add your logo
@@ -57,21 +58,22 @@ release notes for Docsy's currently included version of FontAwesome.
5758

5859
You can add FontAwesome icons to your
5960
[navbar](/docs/content/navigation/#adding-icons-to-the-navbar),
60-
[side nav](/docs/content/navigation/#adding-icons-to-the-side-nav), or
61-
anywhere in your text.
61+
[side nav](/docs/content/navigation/#adding-icons-to-the-side-nav), or anywhere
62+
in your text.
6263

6364
## Add your favicons
6465

6566
The easiest way to do this is to create a set of favicons via
66-
https://cthedot.de/icongen (which lets you create a huge range of icon sizes and
67-
options from a single image) and/or [https://favicon.io](https://favicon.io),
68-
and put them in your site project's `static/favicons` directory. This will
69-
override the default favicons from the theme.
67+
[cthedot.de/icongen](https://cthedot.de/icongen) (which lets you create a huge
68+
range of icon sizes and options from a single image) and/or
69+
[https://favicon.io](https://favicon.io), and put them in your site project's
70+
`static/favicons` directory. This will override the default favicons from the
71+
theme.
7072

71-
Note that https://favicon.io doesn't create as wide a range of sizes as Icongen
72-
but _does_ let you quickly create favicons from text: if you want to create text
73-
favicons you can use this site to generate them, then use Icongen to create more
74-
sizes (if necessary) from your generated `.png` file.
73+
Note that [favicon.io](https://favicon.io) doesn't create as wide a range of
74+
sizes as Icongen but _does_ let you quickly create favicons from text: if you
75+
want to create text favicons you can use this site to generate them, then use
76+
Icongen to create more sizes (if necessary) from your generated `.png` file.
7577

7678
If you have special favicon requirements, you can create your own
7779
`layouts/_partials/favicons.html` with your links.
@@ -80,11 +82,11 @@ If you have special favicon requirements, you can create your own
8082

8183
### Landing pages
8284

83-
Docsy's [`blocks/cover` shortcode](/docs/content/shortcodes/#blockscover)
84-
make it easy to add large cover images to your landing pages. The shortcode
85-
looks for an image with the word "background" in the name inside the landing
86-
page's [Page Bundle](https://gohugo.io/content-management/page-bundles/) - so,
87-
for example, if you've copied the example site, the landing page image in
85+
Docsy's [`blocks/cover` shortcode](/docs/content/shortcodes/#blockscover) make
86+
it easy to add large cover images to your landing pages. The shortcode looks for
87+
an image with the word "background" in the name inside the landing page's
88+
[Page Bundle](https://gohugo.io/content-management/page-bundles/) - so, for
89+
example, if you've copied the example site, the landing page image in
8890
`content/en/_index.html` is `content/en/featured-background.jpg`.
8991

9092
You specify the preferred display height of a cover block container (and hence
@@ -109,8 +111,8 @@ For a shorter image, as in the example site's About page, use one of `min`,
109111
### Other pages
110112

111113
To add inline images to other pages, use the
112-
[`imgproc` shortcode](/docs/content/shortcodes/#imgproc). Alternatively,
113-
if you prefer, just use regular Markdown or HTML images and add your image files
114-
to your project's `static` directory. You can find out more about using this
114+
[`imgproc` shortcode](/docs/content/shortcodes/#imgproc). Alternatively, if you
115+
prefer, just use regular Markdown or HTML images and add your image files to
116+
your project's `static` directory. You can find out more about using this
115117
directory in
116118
[Adding static content](/docs/content/adding-content/#adding-static-content).

docsy.dev/content/en/docs/content/navigation.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ details, including ways to restore the legacy behavior, see [Language menu
149149
visibility][].
150150

151151
[Language menu visibility]: /blog/2025/0.13.0/#language-menu-visibility
152+
[Multi-language support]: /docs/language/
152153

153154
{{% /alert %}}
154155

@@ -168,9 +169,9 @@ To style the light/dark mode menu, apply your custom CSS to
168169

169170
### Search box
170171

171-
To configure site search, see [Search](/docs/content/search/). When
172-
configured, the search box appears as the last item in the top-level navbar, as
173-
well as the sidebar on mobile.
172+
To configure site search, see [Search](/docs/content/search/). When configured,
173+
the search box appears as the last item in the top-level navbar, as well as the
174+
sidebar on mobile.
174175

175176
To style the search menu, apply your custom CSS to `.td-navbar__search`.
176177

@@ -484,10 +485,10 @@ sidebar_root_for: self
484485

485486
Examples:
486487

487-
| `sidebar_root_for` | Example |
488-
| ------------------ | -------------------------------------------------- |
488+
| `sidebar_root_for` | Example |
489+
| ------------------ | ------------------------------------------- |
489490
| `self` | [Content and customization](/docs/content/) |
490-
| `children` | [Best practices](/docs/best-practices/) |
491+
| `children` | [Best practices](/docs/best-practices/) |
491492

492493
To navigate out of a rooted section, click the “up” icon in the sidebar next to
493494
the section title.

0 commit comments

Comments
 (0)