question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working with git submodules

See original GitHub issue

I’m attempting to switch to sphinx-multiversion, but I’ve run into an issue that I don’t think there is an existing solution for. If there isn’t, I’m curious if this is something you’d be willing to support and how you’d like it implemented.

I have a project where the code is in one repository and the sphinx docs source files are in another. The docs repository is included in the code repository as a git submodule. So you have something like:

myrepos/
    mypkg/
        __init__.py
    doc/  <-- git submodule
        conf.py

I’d like sphinx-multiversion to take the tags and branches it uses from the code repository (myrepos/), but because doc/ is also a git repository itself sphinx-multiversion is only using the ones defined there. Is it possible to make sphinx-multiversion look one level up for the main repository?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
taironemagalhaescommented, Nov 2, 2020

I also ran into another issue that is probably related to the git archive strategy. In my project I’m using the extension matplotlib.sphinxext.plot_directive to generate plots dynamically. The images generated using this extension are pointing to the build directory in the final html (e.g. /var/folders/0x/lypfmsxn567blxmckglkdk7w0000gn/T/tmpnnbp7yj1/95cac2b19a3156da5a6d46f657da237d0ad4f54d/docs), so when I deploy my docs to github pages the images are not found. I wasn’t able to find any workaround to deal with this issue.

For now I guess I will deploy only the docs generated for the latest version of my project, but in the future I plan to dive further into this issue.

0reactions
Holzhauscommented, Nov 2, 2020

@taironemagalhaes That sounds like a bug in the extension you’re using. It should generate the images in the output directory, not the source directory. Or it should use relative paths and copy the generated images to the output dir.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - Submodules - Git SCM
Let's start by adding an existing Git repository as a submodule of the repository that we're working on. To add a new submodule...
Read more >
Git submodule - Atlassian
A git submodule is a record within a host git repository that points to a specific commit in another external repository. Submodules are...
Read more >
Using submodules in Git - Tutorial - Vogella.com
Submodules are Git repositories nested inside a parent Git repository at a specific path in the parent repository's working directory. A submodule can...
Read more >
Working with submodules - The GitHub Blog
Git submodules work well enough for simple cases, but these days there are often better tools available for managing dependencies than what Git ......
Read more >
Mastering Git submodules - Medium
Submodules, like subtrees, aim to reuse code from another repo somewhere inside your own repo's tree. The goal is usually to benefit from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found