-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove submodules #23
base: master
Are you sure you want to change the base?
Conversation
A few additions following this morning conversation:
|
Redirects can be put in place in readthedocs |
The option to migrate guides into "code" repo e.g. omero-figure, omero-iviewer was discussed during last call. |
Saw the figure repo and checked the rst. Although it seems as a viable option, cannot imagine a mainstream figure user to be able to find such doc, they need at least a link from the "main omero-guides docs", whatever that would be, otherwise the github repo would be not findable by them ? |
@pwalczysko if we go for such option the subproject in omero-guides will be updated and point to omero-figure instead of omero-guide-figure. This initial work is only to see how the omero-figure repo ends up looking mainly due to the legacy. |
From discussion:
To investigate: |
I looked at the problem of the context menu on left-hand side. This means that if we add new entry in the toc in omero-guides, the change will have to be propagated to the other repositories. |
Regarding the search: Looking back at the example:
We could argue that it makes sense since it only searches within the context of the subproject when done at the subproject level and across all (parent+subproject) if the search is done at the parent level. |
I think that's probably a good thing, especially as the number of guides increases and you're more likely to see matching results from multiple guides |
I think it makes sense the way it is implemented since you refine your search context each time you go to a given component |
Not sure if I understand it right: so if I am inside the ilastik subproject, I cannot successfully search for something which is in the fiji subproject ? If so, I do not like it, this is exactly the original search problem I was reporting about. |
Is the search scope configurable in RTD? |
I think it would have to be very clearly indicated that searching from a sub-project wouldn't find stuff higher up or from other projects. |
@pwalczysko Reading the description of #22 the problem you described seems to be that you get "locked" at the subproject. |
Yes, same menu and same search results too. Maybe the issue is not stating it explicitly, but I can see two (equally important) ways of how to get out of being "locked"
They are equally important, maybe, it can be argued, the search even more than the menu link |
https://docs.readthedocs.io/en/stable/subprojects.html
so something might not be quite right in the project I was looking at or in our project |
So, as I understood the discussion from last week, I was going to look at porting some of the non-code guides into the main
|
Let's first look at the web apps as an example. |
OK, so I'll start by porting iviewer guide into a top-level |
Whatever we do, we must remember that the guide is linked from www and docs and take care of the redirects or have some other strategy. |
@pwalczysko for the redirect there is a mechanism in place in readthedocs |
What does |
Do we really want the 'webapps' dir? |
See steps on how to move directory from one repo to another https://stackoverflow.com/questions/1365541/how-to-move-files-from-one-git-repo-to-another-not-a-clone-preserving-history |
See #26 |
Reporting here an interesting issue related to the GitHub -> readthedocs workflow. Two successive PRs were merged in this repo bumping the submodules which triggered two builds: https://readthedocs.org/projects/omero-guides/builds/11901869/ and https://readthedocs.org/projects/omero-guides/builds/11901870/. For some reason, the first build completed after the second and overwrote the Adding to this PR as this might be another point to take into consideration for the submodules decision. Note the problem is not fundamentally tied to submodules and the same type of race condition could happen when merging two PRs consecutively for any guide. |
Have you opened an issue with read-the-docs about the race condition? |
No but I have not investigated whether this is actually the expected behavior and/or whether an issue already existed which covers this workflow either |
I went over the
|
As discussed today
This PR removes submodules in favour of readthedocs sub-projects only.
This should fix the search issue described in #22
intersphinx
is used to connect external repos. We cannot use theinclude
but I think that's okayThe rest should work
Submodules have been removed.
cc @sbesson @manics @pwalczysko
This PR is for the approach: No submodule, readthedocs subproject
No submodule (git), readthedocs subproject (this PR)
pros:
Edit on GitHub
link should now work on all pagescons:
include
no longer availablesubmodule (git), readthedocs subproject (current implementation)
pros:
include
is availablecons
Edit on GitHub
broken on some pagessubmodule (git), No readthedocs subproject (alternative)
pros:
include
is availablecons
Edit on GitHub
broken on some pagesOne single omero-guides for doc (alternative)
pros:
cons:
--exclude