Git Product home page Git Product logo

wiki-docs-submodule-test's Introduction

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 [email protected]: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.

wiki-docs-submodule-test's People

Contributors

floydwilde avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.