Creating a Hugo site in existing github repo

I have a git repo git.mycompany.com/doco that already contains hundreds of markdown document files with many users contributing. I want to publish these documents on github pages using Hugo but don’t want to create a new git repo and duplicate files. All the examples I have seen involve creating a new git repo for the hugo site. Wondering if there’s an example or a tutorial that shows how to build a site from an existing repository.

Thanks!

You could create a new Hugo site in a new repository, then pull the content in as Hugo module. No duplication.

Here’s an example of a content module that you can pull into a new site. See the README for instructions.

And that example I mentioned…
https://github.com/jmooring/hugo-content

1 Like

Thank you for the quick response. Will try it out. I was looking into github actions for a solution.