Skip to content

Commit

Permalink
Configure markup in all sites
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Dec 30, 2024
1 parent 5d9bf2e commit 4073615
Show file tree
Hide file tree
Showing 12 changed files with 160 additions and 43 deletions.
15 changes: 14 additions & 1 deletion common-content/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,17 @@
[module]
[module.hugoVersion]
extended = true
min = "0.116.0"
min = "0.116.0"

[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
24 changes: 14 additions & 10 deletions common-docs/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,24 @@ maxAge="6h"
getenv = ["^HUGO_CURRICULUM_GITHUB_BEARER_TOKEN$"]


theme = "common-theme"

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'


[markup]
# I've configured markdown so you don't have to
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
# Enable HTML codeblocks, e.g. for <details> blocks
unsafe = true

theme = "common-theme"

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
14 changes: 14 additions & 0 deletions common-theme/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,17 @@ getenv = ["^HUGO_CURRICULUM_GITHUB_BEARER_TOKEN$"]
[module.hugoVersion]
extended = true
min = "0.133.0"


[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
15 changes: 14 additions & 1 deletion org-cyf-guides/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,17 @@ baseURL = "https://guides.codeyourfuture.io/"
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'
nextPrevSortOrder = 'asc'

[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
14 changes: 14 additions & 0 deletions org-cyf-how-this-works/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@ baseURL = "https://curriculum.codeyourfuture.io/"
[module]
[[module.imports]]
path = "github.com/CodeYourFuture/curriculum/org-cyf-theme"


[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
20 changes: 12 additions & 8 deletions org-cyf-itd/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,22 @@ description="Meet the world of tech in 30 days"
weight = 3
url = "https://codeyourfuture.io/donate/"

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'


[markup]
# I've configured markdown so you don't have to
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
# Enable HTML codeblocks, e.g. for <details> blocks
unsafe = true

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
20 changes: 12 additions & 8 deletions org-cyf-launch/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ baseURL = "https://launch.codeyourfuture.io/"
target = "content/pd/blocks"


#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'


[markup]
# I've configured markdown so you don't have to
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
# Enable HTML codeblocks, e.g. for <details> blocks
unsafe = true

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
20 changes: 12 additions & 8 deletions org-cyf-piscine/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ title = "CYF Piscine"
[params]
googleFonts="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Inter:wght@400;600&display=swap"

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'


[markup]
# I've configured markdown so you don't have to
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
# Enable HTML codeblocks, e.g. for <details> blocks
unsafe = true

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
19 changes: 12 additions & 7 deletions org-cyf-sdc/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,22 @@ baseURL = "https://sdc.codeyourfuture.io/"
[params]
googleFonts="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Inter:wght@400;600&display=swap"

#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'


[markup]
# I've configured markdown so you don't have to
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
# Enable HTML codeblocks, e.g. for <details> blocks
unsafe = true
#this makes the section nav go the right way
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
14 changes: 14 additions & 0 deletions org-cyf-theme/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,17 @@ maxAge = 0
# Allow accessing a GitHub bearer token to avoid rate limits when doing HTTP fetches to the GitHub API.
# This can be generated at https://github.com/settings/tokens?type=beta and needs read-only access to all public CYF GitHub repos.
getenv = ["^HUGO_CURRICULUM_GITHUB_BEARER_TOKEN$"]


[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
14 changes: 14 additions & 0 deletions org-cyf-tracks/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,17 @@ baseURL = "https://tracks.codeyourfuture.io/"

[taxonomies]
track_kind = "track_kinds"


[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true
14 changes: 14 additions & 0 deletions org-cyf/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,17 @@ target = "content/guides"
[page]
nextPrevInSectionSortOrder = 'asc'
nextPrevSortOrder = 'asc'


[markup]
[markup.tableOfContents]
endLevel = 2
ordered = true
startLevel = 2
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
title = true

0 comments on commit 4073615

Please sign in to comment.