Oh. Guess I misunderstood guest3456's sentence & tried to shoehorn that into the discussion. Nevermind then.tank wrote:I wasnt aware forum software had entered the subject
About the official site (ahkscript.org)
Re: About the official site (ahkscript.org)
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 -[My project list]
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 -
Re: About the official site (ahkscript.org)
I have just been offering suggestions. I don't care either way. It seems that submodules do not automatically update, so each time Lex updates his docs repo, the ahkscript repo would need to be updated to point to the newer commit.fincs wrote: I'm (in principle) in favour of moving the ahkscript.org content to GitHub pages (in fact, it was even planned by poly for the old domain). However, documentation should be set up strictly using submodules - otherwise it would be a mess (with 4 kinds of documentation in the same repo and the impossibility to use git merges) & would destroy git history.
I don't know if it would be a mess to include everything in one repo or not. But yes it would mess up the git history.
Yes the actual download files need to be considered where they will be hosted. Probably at the current webserver, just like the forums.Things that indeed need to be considered are the downloads and the forum (amongst other "services"). They could get their own subdomains which would still be hosted using the current ahkscript server (download.ahkscript.org and boards.ahkscript.org) and we could set up redirects from the old locations (if that's even possible, otherwise it's a major show-stopper). Additionally, in the case we recover the autohotkey.com domain, this would make it easier for us to merge.
Yeah, I wasn't suggesting this at all. And anyway I'm not a fan of the Q&A type format ala stackoverflow or discourseIf we're considering the possibility of changing the forum software
Re: About the official site (ahkscript.org)
Well, Lexikos uses this little tool called "AutoHotkey" to do all necessary tasks (git pushing, file uploading, etc) when he publishes an update. He has already stated that he has no problem adding lines to his release script to update git submodules.guest3456 wrote:It seems that submodules do not automatically update, so each time Lex updates his docs repo, the ahkscript repo would need to be updated to point to the newer commit.
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 -[My project list]
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 -
Re: About the official site (ahkscript.org)
Heh. He mentioned a 'release script'. What about when the docs update mid-release? Suppose someone makes a fix and issues a pull request and Lexikos accepts it. The docs repo will now be futher ahead than the linked submodule commit, until the next trigger of the 'release script' or until someone manually updates it. Any time Lexikos accepts a pull request, the submodule would need to be updated to the latest commit.fincs wrote: Well, Lexikos uses this little tool called "AutoHotkey" to do all necessary tasks (git pushing, file uploading, etc) when he publishes an update. He has already stated that he has no problem adding lines to his release script to update git submodules.
Then this same problem would occur with the external German and Chinese repos as well.
I don't care really. I say lets just make a choice and get started. Once its in place we can always iterate a change later
Re: About the official site (ahkscript.org)
Perhaps we can set up a script on this server to update the sub-modules. I believe git hooks could then be used to make GitHub trigger our script when someone pushes some new commits. Or maybe it could all be done on GitHub's side; I'm not sure.
About the downloads, I just noticed Releases on GitHub.
About the downloads, I just noticed Releases on GitHub.
Re: About the official site (ahkscript.org)
It does look like github has an API to allow us to do these things.
I believe we can monitor when the docs repo gets a new commit by setting up a webhook for the push event.
But I've searched for half an hour and can't seem to find out how to automatically update the submodule on github. Its pissing me off how little information there is.
From the github API:
Even the release script itself could be put on github (minus the oauth credentials obv)
It looks like in git 1.8.2, submodules can now track a branch instead of a particular commit. However, it seems a git submodule update --remote command is still needed to pull in the latest commit.lexikos wrote:Perhaps we can set up a script on this server to update the sub-modules. I believe git hooks could then be used to make GitHub trigger our script when someone pushes some new commits. Or maybe it could all be done on GitHub's side; I'm not sure.
I believe we can monitor when the docs repo gets a new commit by setting up a webhook for the push event.
But I've searched for half an hour and can't seem to find out how to automatically update the submodule on github. Its pissing me off how little information there is.
Perfect. I always git tag -a v0.5 my releases in my personal repos for quick testing in previous versions (git checkout v0.5).About the downloads, I just noticed Releases on GitHub.
From the github API:
Even the release script itself could be put on github (minus the oauth credentials obv)
Re: About the official site (ahkscript.org)
Just a quick recap of which parts that are going to be "affected"... Basically everything except the forum?
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: About the official site (ahkscript.org)
EDIT: Confirmed.
Code: Select all
[submodule "v1"]
path = v1
url = https://github.com/Lexikos/AutoHotkey_L-Docs.git
branch = master
[submodule "v2"]
path = v2
url = https://github.com/Lexikos/AutoHotkey_L-Docs.git
branch = v2
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 -[My project list]
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 -
Re: About the official site (ahkscript.org)
In theory, we can have a script on a web server somewhere which creates a tree containing the submodule update, then create a commit from it.guest3456 wrote:But I've searched for half an hour and can't seem to find out how to automatically update the submodule on github.
However, I'm not sure whether we also need to pull down the latest commits from the documentation repo and then push back up to the webpage repo. That would require being able to run git on the web server rather than just a PHP (or whatever) script.
Re: About the official site (ahkscript.org)
No I don't believe we need to go that far. As far as I understand it, the webhook will callback to our php script when the push event occurs. According to those docs, the push event will contain the HEAD commit sha anyway from the docs repo. Then we just need to use this sha to update the submodule in our website repo.lexikos wrote: However, I'm not sure whether we also need to pull down the latest commits from the documentation repo and then push back up to the webpage repo. That would require being able to run git on the web server rather than just a PHP (or whatever) script.
I have no idea how the internals of git work as far as trees and blobs go so maybe you're right. This page says:lexikos wrote:In theory, we can have a script on a web server somewhere which creates a tree containing the submodule update, then create a commit from it.guest3456 wrote:But I've searched for half an hour and can't seem to find out how to automatically update the submodule on github.
As an example, if you wanted to commit a change to a file in your repository, you would:
- get the current commit object
- retrieve the tree it points to
- retrieve the content of the blob object that tree has for that particular file path
- change the content somehow and post a new blob object with that new content, getting a blob SHA back
- post a new tree object with that file path pointer replaced with your new blob SHA getting a tree SHA back
- create a new commit object with the current commit SHA as the parent and the new tree SHA, getting a commit SHA back
- update the reference of your branch to point to the new commit SHA