Open jegrami opened 8 months ago
Thanks for the bug report, looks like ablog isn't parsing the github value correctly.
Hi, @nabobalis. What should I do now? Any workaround?
I don't have any work around at the moment. I would deploy manually to github pages for the time being.
Checking the code:
if github_pages:
if repodir is None:
repodir = os.path.join(confdir, f"{github_pages}.github.io")
Can you change the config value to just be your username and see if that changes anything?
Oh, yeah. I'm going to try that now. Thank you!
Please note that I'm now trying to push to a different destination repo. My Ablog project lives in one repo, and I'm trying to deploy the site to a GitHub Pages repo, which I call the destination repo. I saw this code on Stack Overflow (from 2015):
ablog deploy -p ../username.github.io
The code suggests that there's an option for deploying to a different location other than the default, which is location_of_conf.py/username.github.io
. I hope this still applies.
Also, what did you mean by 'deploy manually to GitHub Pages'? Could you please elaborate? I need to get this to work. I need to know all the options I can try.
Oh, yeah. I'm going to try that now. Thank you!
Please note that I'm now trying to push to a different destination repo. My Ablog project lives in one repo, and I'm trying to deploy the site to a GitHub Pages repo, which I call the destination repo. I saw this code on Stack Overflow (from 2015):
ablog deploy -p ../username.github.io
The code suggests that there's an option for deploying to a different location other than the default, which is
location_of_conf.py/username.github.io
. I hope this still applies.
Honestly, I have no idea, hopefully it does, but the code has changed a bit since 2015.
Also, what did you mean by 'deploy manually to GitHub Pages'? Could you please elaborate? I need to get this to work. I need to know all the options I can try.
I am not sure I am the best person to explain, but for context https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site is the github docuemtnation.
gh-pages is traditionally just a branch that you commit the compiled/build output to and then you tell github what branch you are using and it will host that content for you. This is what I mean manually as that is what the ablog github command should be doing, its pushes the compiled blog to a branch on a repo and then github does the rest.
Hopefully that helps?
Changing the config value for github_pages
to just my username didn't solve the problem. The deploy command still fails with exit code 128. I'll do it manually as you advised. Thank you so much for your help.
Describe the bug
I have created a GitHub Pages repo with the format
<username>.github.io
. I also set the config variable in my config.py file as follows: `github_pages = '/username/username.github.io'.But when I run
ablog deploy
, the command fails with exit code 128.To Reproduce
ablog build
ablog deploy --github-token GITHUB TOKEN
Screenshots
System Details
sphinx-build 7.2.6 Ablog 0.11.6 Python 3.12 'Windows-10-10.0.19045-SP0'
Installation method
pip