You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/contributing/website.md
+40-8Lines changed: 40 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,29 @@ The site is based on [hextra](https://github.com/imfing/hextra) theme.
17
17
18
18
## Templating
19
19
20
-
We use templates like `{.SomeField}` inside our `md` files.
20
+
We use [shortcodes](https://gohugo.io/templates/types/#shortcode) and [partials](https://gohugo.io/templates/types/#partial) based on files from `./docs/.tmp/` and `./docs/data/`.
21
21
22
-
These templates are expanded by running `make website_expand_templates` in the root of the repository.
23
-
It runs script `scripts/website/expand_templates/` that rewrites `md` files with replaced templates.
22
+
- The files in `./docs/.tmp/` are used to be embedded with the shortcode `{{%/* embed file="filename.ext" */%}}`.
23
+
- The files in `./docs/data/` are used as [data sources](https://gohugo.io/content-management/data-sources/).
24
+
25
+
These files are created by running:
26
+
27
+
-`make website_expand_templates` in the root of the repository.
28
+
-`make website_dump_info` in the root of the repository. (only during a release)
0 commit comments