I feel like this may have been asked before but I can't quite fit together existing questions into this exact problem.
I have a Git repository where I am storing Sphinx files and builds for a single doc. I want to reuse some of the files from that doc (css, logos, etc) for other docs and ideally keep track of the changes to these 'core files' separately from the rest of the docs (e.g., the rst).
I think one way to do this would be to split the 'core' files into a separate Git repository, but I am struggling to find a non-manual way of adding these core files to the repository.
The file structure I currently have is akin to
| Doc repository
|-- Sphinx
|- Built docs folder
|- Reusable components in folders
| Some files
| A reusable file
And ideally I want to be able to separate (and then add again) the reusable items.
I tried submodules, but I learned they cannot be used to add files to an existing folder, and so that won't work as I need that reusable file
in the same folder.
I've been looking into subtrees but I am having trouble understanding whether they accomplish what I want.
Ideally, the resulting structure would be something akin to
| Doc repository
|-- Sphinx
|- Built docs folder
| Some files
| + Some command to add reusable stuff in this same directory
| Reusable repository
|- Reusable folders
| Reusable file