Is it easy to change ablog deploy
to deploy to a different location,
e.g. ../username.github.io/
instead of ./username.github.io/
?
For ABlog ≥ 0.8.0, yes
For ablog-0.8.0 and above, you can use the -p
option to specify a github repo location other than the default (<location of conf.py>/<your username>.github.io
):
ablog deploy -p /the/path/for/your/local/github/pages/repo
i.e., in your case
ablog deploy -p ../username.github.io/
How to install the most recent ABlog version
Until version 0.8.0 is available on pypi, you can tell pip
to install ablog
directly from git:
pip install git+https://github.com/abakan/ablog.git
For Ablog < 0.8.0, no
For versions prior to 0.8.0, the old version of this answer applies:
With the current implementation of ABlog-internal function
ablog_deploy
,
the location of the target repository cannot be changed:
String gitdir
(holding the path where the local repository will be
created) is set
to
<confdir>/<github_pages option>.github.io but the `github_pages` option is also [used to choose the remote
repository](https://github.com/abakan/ablog/blob/0ed765d95a23ad7dce48c755773ac60dd08cf319/ablog/commands.py#L338),
so passing something else than the GitHub account name will make the
process fail.
Manipulating confdir
would be difficult and would result in the
configuration
file
not being found and probably a bunch of other side effects.
However, if you're willing to modify ABlog's source code, it would not
be hard to adapt the assignment of gitdir
as you see fit (maybe
introducing another option) to produce the decided effect. (E.g., make
it use confdir
if your new option hasn't been set, and have it use
your new option instead if that option has been set.)