Skip to content

Initialize Hugo config directory and split module mounts - #945

Merged
MakisH merged 14 commits into
precice:hugofrom
MuhammadAashirAslam:hugo-config-clean
Aug 9, 2026
Merged

Initialize Hugo config directory and split module mounts#945
MakisH merged 14 commits into
precice:hugofrom
MuhammadAashirAslam:hugo-config-clean

Conversation

@MuhammadAashirAslam

@MuhammadAashirAslam MuhammadAashirAslam commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Initializing the hugo configuration folder
Created hugo.toml to house core site variables, parameters, and layout defaults (translating _config.yml scopes).
Created module.toml to securely isolate all repository mounts. This is full replacement of subprojects.rb.
go.mod lists every imported repository as a Hugo Module and pins each to a specific commit-derived version.
go.sum stores the verified checksums for those exact module versions, ensuring Hugo downloads the expected source content reproducibly.
Note: This dividing of the hugo.toml configuration file was supported by hugo so I did this , this makes the files have a cleaner look but if we want to revert back to a single file we can do that .

Comment thread config/_default/hugo.toml Outdated
Comment thread config/_default/hugo.toml Outdated
Comment thread config/_default/hugo.toml
Comment thread config/_default/hugo.toml Outdated
Comment thread config/_default/module.toml
target = "content/community/contribute/guidelines"
files = ["! guidelines-adapters.md"]

# This file is automatically generated by tools/sync_tutorials.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not provided in this PR.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file along with the workflow will need some refining/triage so i will raise a PR for it asap

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Maybe I am missing something, but it looks like this PR is still pending.

Comment thread config/_default/module.toml Outdated
Comment thread config/_default/module.toml Outdated
@MakisH MakisH added the technical Technical issues on the website label Aug 6, 2026
Comment thread go.mod

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the go.mod and go.sum need to be in the repository? Since they are generated, the CI should generate them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI will update them , like whenever there is a new commit in the imported repositories the CI will update them to the latest commit , but will not generate the files entirely
Example : MuhammadAashirAslam@a84c126

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the files need to be there with some initial state, but the updates will not need to be continuously updated in the repository, correct?

@MakisH
MakisH merged commit b7201cb into precice:hugo Aug 9, 2026
1 of 2 checks passed
@github-project-automation github-project-automation Bot moved this from Needs review to Done in GSoC 2026: Website modernization Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical Technical issues on the website

Development

Successfully merging this pull request may close these issues.

2 participants