Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

floydwilde/wiki-docs-submodule-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not Fit For Purpose

The point of this exercise was to ascertain whether what was suggested in this repo:

Was a good idea or not. TL;DR: It's not.

I wanted to see how the workflow worked for myself and my conclusion is that it is not a good work flow.

The desired outcome is to be able to have a good review process for updates to documentation, but still expose the docs to the GitHub wiki interface for lighter editing work.

Using this method of including the GitHub wiki repo as a submodule does not appear to be the answer. It has all the drawbacks of the added complexity of managin a submodule, w/ none of the benefits of greater visiblity with what is happening with the wiki files. When you navigate to the "docs" folder, you are essentially back in the wiki editing interface. You are still not able to create PRs and discuss them in the current Repo.

Possibly there is some way to make this more workable, but I think one of these solutions will work better for me:

For those who wish to experience the workflow for themselves some notes that you may find compliment the "wiki-docs-submodule" repo above:

wiki-docs-sync

The first thing to do, is visit the wiki, and create the Home.md page. Just click add page and save default text.

Then run these commands:

git submodule add git@github.com:floydwilde/wiki-docs-sync.wiki.git docs
# This seems to stage changes automatically, so next:
git commit -m "add submodule"
git push

Github Action

You will need to got to Settings > Actions and enable write permission for GitHub Actions. This uses the secets.GITHUB_TOKEN for autorization so you do not have to use a personal access token.

The Github Action will "Push" changes which are made from the Wiki interface on Github back to the main repo, whether this is a good idea or not, I'm not sure.

If you are wanting to edit the wiki locally, it means you will need to use this command:

git pull --recurse-submodules

Or acheive the same thing by doing a git pull in the main repo, the cd'ing to the /docs dir and running git pull again to get the wiki repo changes.

Mount Submodule Elsewhere

Initially I tired to mount the submodule in the /wiki directory in another repo where I was using this and got some unexpected results. That folder name might be special.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published