Github repo per branch in edit_uri field #5292
Unanswered
jasonnovichRunAI
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can configure edit_uri: blob/vX.YY/docs/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Not sure if this question was asked, if it was, please point me to the right discussion. If not, here goes...
I am deploying MKDocs with versioning using mike based on branches in my Github repo.
For each version of the docs I create a version branch usually titled vX.YY - this is to make sure that if there are any changes to the product that need to be backdated to previous versions, I can make the changes and redeploy. For deployment I have a Github action that deploys each set of docs using mike (pick the branch and build the docs from that branch). The final deployment is done using gh-pages to a custom domain. Each branch build is deployed that way and the selector button in the menu works.
I enabled the
edit_uri
for the deployment, and currently it points tomaster
(sorry old repo naming). If I press the edit button on a new page in the docs I get a 404 error, which is expected becaue the new pages have not been merged intomaster
.Is it possible to have the
edit_uri
point to the specific version branch where the edit button was pressed? This is important as our customers, or other stakeholders can request changes in the docs that would apply to the version of the docs they are reading. The company is planning on keeping up to 8 versions (latest -7).Thanks,
Jason
Beta Was this translation helpful? Give feedback.
All reactions