Hi,
I have this build:
https://builds.sr.ht/~xavierb/job/1360834
which essentially make a sphinx docs and puts in 'tic' subdirectory of xavierb.srht.site but it fails:
+ hut pages publish -d xavierb.srht.site/tic site.tar.gz
failed to publish site: gqlclient: server failure: failed to lookup IP addresses for domain "xavierb.srht.site/tic": lookup xavierb.srht.site/tic: no such host
I want to put website in subdir `tic`. How can I achieve that?
Thanks in advance,
Xavier
Sorry. The build is:
image: archlinux
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- python-sphinx
environment:
site: xavierb.srht.site/tic
sources:
- https://git.sr.ht/~xavierb/tic
tasks:
- package: |
cd tic
make html
cd _build/html
tar -cvz . > ../../../site.tar.gz
- upload: |
hut pages publish -d $site site.tar.gz
On Sun, 3 Nov 2024 14:33:56 +0100
"Xavier B." <somenxavier@posteo.net> ha escrit:
> Hi,> > I have this build:> > https://builds.sr.ht/~xavierb/job/1360834> > which essentially make a sphinx docs and puts in 'tic' subdirectory of xavierb.srht.site but it fails:> > + hut pages publish -d xavierb.srht.site/tic site.tar.gz> failed to publish site: gqlclient: server failure: failed to lookup IP addresses for domain "xavierb.srht.site/tic": lookup xavierb.srht.site/tic: no such host> > > I want to put website in subdir `tic`. How can I achieve that?> > Thanks in advance,> Xavier
On Sun, 2024-11-03 at 13:34 +0000, Xavier B. wrote:
>> Sorry. The build is:>> ...> environment:> site: xavierb.srht.site/tic> ...> - upload: |> hut pages publish -d $site site.tar.gz
Have you checked the builtin help of the command that you use?
See: hut pages publish --help
it might discuss how the tool can get invoked.
virtually yours
Gerhard Sittig
--
If you don't understand or are scared by any of the above
ask your parents or an adult to help you.
On 2024-11-03 14:33, Xavier B. wrote:
> + hut pages publish -d xavierb.srht.site/tic site.tar.gz> failed to publish site: gqlclient: server failure: failed to lookup IP addresses for domain "xavierb.srht.site/tic": lookup xavierb.srht.site/tic: no such host> > > I want to put website in subdir `tic`. How can I achieve that?
As far as I'm concerned, the only way to add another website into a
subdirectory is manually, by building the rest of the site then
publishing that entire thing, which would include the `tic` subdirectory
as well.
That would mean building your xavierb.srht.site at
<https://git.sr.ht/~xavierb/xavierb.srht.site-repo>, building the
documentation of tic at <https://git.sr.ht/~xavierb/tic>, then moving
the `tic` documentation to a subdirectory, and publishing the entire
result with `hut pages publish -d xavierb.srht.site site.tar.gz`. This
should be possible within a single builds.sr.ht manifest, although the
manifest will probably have to be synchronized between your website as well.
Thanks, Conrad, but it does not work:
+ hut pages publish -d xavierb.srht.site/tic -s tic site.tar.gz
failed to publish site: gqlclient: server failure: failed to lookup IP addresses for domain "xavierb.srht.site/tic": lookup xavierb.srht.site/tic: no such host
The manifest is
arch: null
artifacts: []
environment:
BUILD_SUBMITTER: git.sr.ht
GIT_REF: refs/heads/main
site: xavierb.srht.site/tic
image: archlinux
packages:
- hut
- python-sphinx
repositories: {}
secrets: []
shell: false
sources:
- https://git.sr.ht/~xavierb/tic#4a25ce62fc8a61df1b789ae9aa20dadeb079f011
tasks:
- package: |
cd tic
make html
cd _build/html
tar -cvz . > ../../../site.tar.gz
- upload: |
hut pages publish -d $site -s tic site.tar.gz
triggers: []
oauth: pages.sr.ht/PAGES:RW
Thanks in advance,
On Mon, 4 Nov 2024 10:50:52 +0100
Conrad Hoffmann <ch@bitfehler.net> ha escrit:
> hut pages publish -d xavierb.srht.site -s tic site.tar.gz> > Please see the `hut` documentation.> > Cheers,> Conrad
> + hut pages publish -d xavierb.srht.site/tic -s tic site.tar.gz>> hut pages publish -d xavierb.srht.site -s tic site.tar.gz
Try it without the /tic, like Conrad spelled the command
> > + hut pages publish -d xavierb.srht.site/tic -s tic site.tar.gz> > >> hut pages publish -d xavierb.srht.site -s tic site.tar.gz> > Try it without the /tic, like Conrad spelled the command
Yes. It works.
Thanks.