10346 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
2df37e9e80 Add Markdown diagrams and render hooks for code blocks
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`).

We also used this new hook to add support for diagrams in Hugo:

* Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams.
* Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information.

Updates #7765
Closes #9538
Fixes #9553
Fixes #8520
Fixes #6702
Fixes #9558
2022-02-24 18:59:50 +01:00
Luke Rijk de Waal
e8d5180116
requires -> require typo fix (#1666) 2022-02-23 09:15:13 -08:00
John Elliott
bd8037d432 Allow images to be cropped without being resized
Introduces the Crop method for image processing which implements gift.CropToSize. Also allows a smartCrop without resizing, and updates the documentation.

Fixes #9499
2022-02-23 10:01:50 +01:00
Joe Mooring
e714066cb2
Update GitLab deployment instructions (#1661) 2022-02-20 16:44:09 -08:00
Andrew
11946a2186
update GitLab CI/CD yaml syntax (#1649)
This introduces more up-to-date syntax within some yaml snippets
2022-02-20 15:51:46 -08:00
Bjørn Erik Pedersen
8b2af4b495 modules: Add modules.Workspace config for Go 1.18
Sets `GOWORK` env var for Go 1.18.

Fixes #9525
2022-02-18 15:06:58 +01:00
Patrice Chalin
3568ddc039
Add explicit contentDir to module-config-mounts (#1658)
Context: https://discourse.gohugo.io/t/content-mount-problem-for-single-language-multilingual-site/37215
2022-02-17 11:46:28 -08:00
Joe Mooring
798ac8f68b
Add default value to isHTML 2022-02-17 10:21:41 -08:00
Bjørn Erik Pedersen
46b99dea13 Add --printUnusedTemplates
Fixes #9502
2022-02-15 20:01:57 +01:00
Bjørn Erik Pedersen
1285302c9d commands: Rename --i18n-warnings to printI18nWarnings
To get it in line with the others.
2022-02-15 13:03:36 +01:00
Bjørn Erik Pedersen
dea2242c68 commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
To get it in line with the others.
2022-02-15 13:00:06 +01:00
Bjørn Erik Pedersen
db782ea467 deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0 2022-02-15 10:37:14 +01:00
Christian Oliff
d376565ce2 Create extensions.json
Useful for contributors to the project to help ensure consistent code formatting
2022-02-14 14:57:48 +01:00
Bjørn Erik Pedersen
93f7baf80b
netlify: Hugo 0.92.2 v0.92.2 2022-02-11 16:15:27 +01:00
Bjørn Erik Pedersen
ecd8a6b6b2
Merge branch 'tempv0.92.2' 2022-02-11 16:14:48 +01:00
Joe Mooring
ee04caf9fd Fix validation of Page Kind in cascade target map
Fixes #8888
2022-02-10 20:42:31 +01:00
Joe Mooring
3fce03ed25 Remove the "check" command
Closes #9454
2022-02-10 16:25:23 +01:00
Salim B
70ad71b252
Fix typo (#1651) 2022-02-10 06:01:44 -08:00
Salim B
dfd1dc570f
Fix internal link (#1650) 2022-02-09 11:40:48 -08:00
Leon Heess
b5e0e0d389 Update rotten Fedora package link 2022-02-07 16:09:06 +01:00
Kacper Kamiński
78276390ae
Add missing word in types.md (#1645)
Adds missing "is" word in Content Types page.
2022-02-06 10:55:26 -08:00
Joe Mooring
45eb945f82 Remove hugo gen autocomplete
Closes #8862
2022-02-01 23:23:30 +01:00
Bjørn Erik Pedersen
2f84d0896b
netlify: Hugo 0.92.1 v0.92.1 2022-01-27 13:46:11 +01:00
Bjørn Erik Pedersen
b55f5773b1
Update complement.md 2022-01-25 20:37:10 +01:00
Joe Mooring
7013ee43e7
Remove deprecated RSSLink from page variables 2022-01-25 06:09:21 -08:00
Joe Mooring
1c3fb6ed30
Remove deprecated page vars (#1638) 2022-01-25 05:57:22 -08:00
Bjørn Erik Pedersen
9bd0af3abf
Update union.md 2022-01-25 14:10:01 +01:00
Bjørn Erik Pedersen
4576487a0f
Update symdiff.md 2022-01-25 14:09:17 +01:00
Tim Torres
58f1b26c74
Update starter-kits.md (#1521)
Blaupause, victor-hugo, hugulp, and atlas are all either deprecated, archived, or abandoned.
2022-01-24 11:12:22 -08:00
Joe Mooring
285356c1d6
Move inline partials section (#1635)
Closes #1634
2022-01-18 07:03:45 -08:00
Joe Mooring
4d08625d22
Improve directions for editing Win 10 path env var (#1632)
Closes #1631
2022-01-18 06:43:31 -08:00
Matthew Sanabria
41d9c78042
Update page content (#1629)
* Update page content

The Security Model page had some grammatical errors, incorrect spelling of words, and unclear context. These were all addressed in this commit.

* Update verbiage
2022-01-17 11:09:05 -08:00
Andreas Deininger
d05536cadf
Removed unpaired quote character (#1630) 2022-01-17 08:35:38 -08:00
Bjørn Erik Pedersen
3b0fdcd883
netlify: Bump to Hugo 0.92.0 v0.92.0 2022-01-12 10:36:36 +01:00
Bjørn Erik Pedersen
cdb0683468 docs: Regenerate docshelper 2022-01-12 08:17:03 +01:00
Bjørn Erik Pedersen
778503ca8f Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb' 2022-01-12 08:16:35 +01:00
Bjørn Erik Pedersen
2d2401c915 docs: Add dependency table to maintainance page
See #8949
2022-01-11 21:57:37 +01:00
Bjørn Erik Pedersen
b8b20e9a25
Update index.md 2022-01-11 19:23:17 +01:00
Bjørn Erik Pedersen
6bc95c3860 Add hugo.Deps
Fixes #8949
2022-01-11 18:06:23 +01:00
Bjørn Erik Pedersen
19d0b5e23f docs. Regen CLI docs
Closes #9363
2022-01-07 12:37:07 +01:00
Bjørn Erik Pedersen
f33994fe65
Remove files.Extension (duplicate of files.Ext) 2022-01-05 11:27:28 +01:00
Bjørn Erik Pedersen
76a750d961 docs: Regenerate CLI docs 2022-01-04 17:12:09 +01:00
Bjørn Erik Pedersen
70156962aa docs: Regenerate docshelper 2022-01-04 17:11:17 +01:00
Bjørn Erik Pedersen
948d6d69d9
layouts: Use .File.Path 2022-01-04 13:55:21 +01:00
Joe Mooring
d3050b78c9
Document .Page.BundleType (#1620)
Closes #785
2021-12-30 07:36:31 -08:00
Mark A. Matienzo
8a033918f9 Image filters: ensure Grayscale is a level-2 heading
The `images.Grayscale` function was previously tagged as an h3, leading to its omission from the righthand navigation.
2021-12-30 10:13:48 +01:00
Joe Mooring
98537018f9 Document .Publish method for global resources 2021-12-29 20:17:32 +01:00
Patrick Kollitsch
963ddc994a docs: add a link to the mailmap documentation
I find that Hugo should contain more links to relevant documentation of features in other tools/documentations. Please let me know if we don't want that and I'll stop. In this specific case I read about `.mailmap` in the Hugo docs and as a developer knew what was meant, but I think less dev-y users might not understand this. Instead of starting to add paragraphs about the format maybe it's ok to link to the features docs? As I said, let me know if that is overkill/bloat. It would make my life easier than seeing a word and googling it :)

(for instance, if we link to git in this case we don't need to add extra-documentation about what the mailmap file should look like and what should be in there)
2021-12-26 17:05:52 +01:00
Bjørn Erik Pedersen
915f858dce
Fix release notes version 2021-12-23 18:06:24 +01:00
Bjørn Erik Pedersen
58093dafec
Update index.md 2021-12-23 18:03:30 +01:00