~sircmpwn/sr.ht-discuss

7 5

How to put website in my home page but in subdirectory

Details
Message ID
<20241103143356.704f43f5602f23550109cf43@posteo.net>
DKIM signature
pass
Download raw message
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
Details
Message ID
<20241103143441.015dffe48f4c494031db0630@posteo.net>
In-Reply-To
<20241103143356.704f43f5602f23550109cf43@posteo.net> (view parent)
DKIM signature
pass
Download raw message
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
Gerhard Sittig <gerhard.sittig@gmx.net>
Details
Message ID
<20241103152549.GA7889@book.gsilab.sittig.org>
In-Reply-To
<20241103143441.015dffe48f4c494031db0630@posteo.net> (view parent)
DKIM signature
pass
Download raw message
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.
Details
Message ID
<77350fb4-12bc-4167-9d0a-c4005737e94c@jacksonchen666.com>
In-Reply-To
<20241103143356.704f43f5602f23550109cf43@posteo.net> (view parent)
DKIM signature
pass
Download raw message
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.
Details
Message ID
<3e3b93dc-24ae-42ae-a901-93b6956d6525@bitfehler.net>
In-Reply-To
<77350fb4-12bc-4167-9d0a-c4005737e94c@jacksonchen666.com> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
hut pages publish -d xavierb.srht.site -s tic site.tar.gz

Please see the `hut` documentation.

Cheers,
Conrad
Details
Message ID
<20241104213238.424c323343e18847ac3ac3cb@posteo.net>
In-Reply-To
<3e3b93dc-24ae-42ae-a901-93b6956d6525@bitfehler.net> (view parent)
DKIM signature
pass
Download raw message
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	
Details
Message ID
<7265724f-9982-49c9-b701-c7204f1bbc6c@markpenner.space>
In-Reply-To
<20241104213238.424c323343e18847ac3ac3cb@posteo.net> (view parent)
DKIM signature
pass
Download raw message
> + 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
Details
Message ID
<20241109224039.0a746a7c233a6e5ab02a2d90@posteo.net>
In-Reply-To
<7265724f-9982-49c9-b701-c7204f1bbc6c@markpenner.space> (view parent)
DKIM signature
pass
Download raw message
> > + 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.
Reply to thread Export thread (mbox)