I like the idea of fully separating the documentation content from the website code, as proposed in #154.
Here's one way it could be done, using git submodules. I've used branches in the docs repo (currently https://codeberg.org/caesar/forgejo-docs/) for the different versions. I think this could be more maintainable than side-by-side directories.
However I'm not totally sure about the Git submodule approach as it requires the commit SHAs of the submodules to be committed to the parent repo, so updating the docs will still require committing to the website repo.
One way to avoid that might be to use a script to pull from the docs repo before build, instead of actually using Git submodules.
Perhaps someone with more experience with Git submodules has a better idea.
I should note that this is very much an experiment and I'm not totally committed to the idea. I can also see an advantage of keeping both code and content in the same repo, in cases where changes to the code might require updates to the documentation content.
Closes #154
Preview https://forgejo.codeberg.page/@pull_331/
I like the idea of fully separating the documentation content from the website code, as proposed in #154.
Here's one way it could be done, using git submodules. I've used branches in the docs repo (currently https://codeberg.org/caesar/forgejo-docs/) for the different versions. I think this could be more maintainable than side-by-side directories.
However I'm not totally sure about the Git submodule approach as it requires the commit SHAs of the submodules to be committed to the parent repo, so updating the docs will still require committing to the `website` repo.
One way to avoid that might be to use a script to pull from the `docs` repo before build, instead of actually using Git submodules.
Perhaps someone with more experience with Git submodules has a better idea.
I should note that this is very much an experiment and I'm not totally committed to the idea. I can also see an advantage of keeping both code and content in the same repo, in cases where changes to the code might require updates to the documentation content.
Closes #154
Preview https://forgejo.codeberg.page/@pull_331/