-
Notifications
You must be signed in to change notification settings - Fork 10
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
add content related folders & changelog folders as git submodules #72
Comments
This task may require some time and I will handle it. To begin, please create all topics and changelog repositories based on the current file structure, as illustrated below. Once done, kindly notify me: changelog > compage > |
Ok. We can work on this later. I will try one idea I have first and then I'll let you know when to start working on this one. @tfsumon |
@tfsumon , I created separate repos like this https://github.com/intelops/compage-docs/ I created like that for all the topics. https://github.com/orgs/intelops/repositories?q=docs&type=all&language=&sort= |
Kindly add data on those repo so that I can incorporate them as submodules. Submodules won't serve their purpose without any data. |
What should be the folders in those repos? @tfsumon |
Take a look at the following repository. I've added 'compage' 'capten' changelog & docs as submodules. Let me know if you'd like something similar or if you have other preferences. https://github.com/tfsumon/sub-external-docs Clone the repository with the following command to include all its submodule files and folders:
|
Yeah I got the idea now. One more idea I would like to discuss with you : can I keep both docs and changelog of a topic in same repo (new separate repo) and still be able to add it as submodules to the correct paths we want into the main docs site repo? @tfsumon |
It's not possible to achieve that. Currently, all changelogs in the main repository are situated inside the 'changelog' folder, and topics are within the 'content' folder. Git submodules do not provide an option to include a specific repository folder in a particular location. But it is possible if you organize all topic changelogs inside the 'content' folder instead of the 'changelog' folder. |
could you please show me what you meant exactly? I didn't get it. |
one more idea to discuss, In the separate repos if I do this - can we get those into the main docs site repo as submodules into the content/compage? Based on this we can modify those other separated repo (compage-docs repo) structure. And in the live docs site, the user interactions should still be same, no change in UI interaction. |
Current folder structure:
If you reorganize the topics into the following structure, you can consolidate changelog and docs for topic into the same repository:
|
So the new structure in the main docs site repo will be like this ?
|
Exactly. Tell me if you're okay with this. |
Correct. But, when you click the 'changelog' button in the header, it will take you to a specific topic's changelog page rather than the root page for all topics. separately consolidated repo should have the following folders in the root:
|
Please proceed with this implementation with this new structure. we already have topics' structure in place. |
Before I proceed, could you set up the repository that will be added as a submodule in the main repository? I'm creating a sample repository for 'compage' using my GitHub account. Similarly, please create separate repositories for all other topics, including compage, using your GitHub account. sample repo for compage - https://github.com/tfsumon/compage When you've completed it, please lmk. |
I already created separate repos right - for example, |
In your created repositories, there are currently no folders. Kindly consider adding following folders to each of your separate repositories.
|
@tfsumon , https://github.com/intelops/compage-docs/tree/chandu |
Hello @devopstoday11! Unfortunately, the current website structure with submodules isn't working. We need to make some changes: Possible Scenario:
Not Possible Scenario based on earlier discussed structure:
In this case, your main repo structure will look like:
If you want to keep both docs and changelog inside a single submodule, the main repo's structure will look like the second scenario I mentioned earlier. However, this structure might be challenging to work with given our current website flow. Let me know your preference. If separating them into two submodules works for you, we can follow the first scenario. |
@tfsumon , the separate submodule related repo, for example - In the docs site main repo - So now in the docs site UI when user visits the site, the user will be able to see the changelog content under the documentation section and also separately under the changelog section as well. For both sections data display would be coming from same changelog folder. I assume here you probably need to develop the new flow for the docs site, correct? @tfsumon |
Yeah. It won't take long since I've organized the code to easily modify the website flow whenever needed. So, your Git submodule repository structure will look like this: Please tell me if I should go ahead with this. |
yes please proceed @tfsumon |
Hi @devopstoday11, Could you kindly reorganize the repository folders according to the latest structure? Meanwhile, I'm actively working on developing the new flow for the documentation site. |
@tfsumon , |
@tfsumon , any updates? |
Working on new flow—it's a bit tougher than expected. Hoping to wrap it up by tomorrow. |
Hi @devopstoday11, I apologize for the delay in completing the task. I encountered unexpected challenges, and I need one more day to ensure the quality of the work. I appreciate your understanding and patience. Can you organize your Git submodule like this: https://github.com/tfsumon/compage-docs/tree/chandu? You can add a .md file, but it's recommended to avoid any extra files or folders. For the changelog, visiting "siteurl.com/changelog" will display all changelogs (Like following image). Clicking a changelog link will lead to a detailed page. (Like following image) is it correct? |
I'm confused about Git submodule organizing. Is the newly organized folder structure good or are you telling me to reorganize it differently? Please explain little bit more @tfsumon The screenshots you mentioned looks fine. |
@tfsumon , pushed the restructured folders to the repo - https://github.com/intelops/compage-docs/tree/chandu |
Thanks! I'll add this repo as git sub module and create a pull request once everything is finalized on my end. |
@tfsumon , done with this and also the URL Issue I mentioned on discord? |
No, I've fixed the URL issue. I encountered an issue while testing. I'm in the process of fixing it, and once it's resolved, I'll create a pull request. |
@tfsumon ,
After finishing the versioning change task, I need this to be done. Or, if it is quick steps to add in config.toml, let me know what to do, I will do it myself.
Assuming you finished the versioning task...
This is what I am planning to do to handle the Topics' related folders from outside the docs repo.
I want to create separate git repos for documentation purposes for the Topics "compage , capten , kubviz , genval". In those independent repos, we will write & submit all the documentation.
Now, in our main docs repo (external-docs) , I want to add those independent repos as git submodules.
separate repos -
After adding them as git submodules to the main docs repo "external-docs" , the folder names should still be same as original names in this main repo. No need to change names. This means we don't want to change anything in this main docs repo.
Please let me know if you understand the requirements or have any questions. @tfsumon
The text was updated successfully, but these errors were encountered: