Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
Thanks, that worked great! As it turns out a quick way to do this without much typing is to go to the attachment details and simply copy the Image button link. Then, put this inside a tag (where xxx is the copied link, but delete everything before the /raw -- usually, localhost:8080) -Original Message- From: Andy Bradford Sent: Thursday, October 22, 2015 7:36 AM To: Tony Papadimitriou Cc: Fossil SCM user's discussion Subject: Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images Thus said "Tony Papadimitriou" on Mon, 19 Oct 2015 16:24:49 +0300: > My question is how can I add this image to the repo in a way that it > is not part of any branch or ticket (e.g., attachment to a ticket)? Attach it to the Wiki page. Then add an img tag to the Wiki page using the /raw command: You can get the UUID of the artifact by clicking on the details of the attachment. Here's documentation on the /raw command: http://www.fossil-scm.org/index.html/help?cmd=/raw Fossil proper actually uses Embedded Documentation via /doc to serve images within its pages. For example, all the images in this documentation are in the www repository directory, but served via /doc: http://www.fossil-scm.org/index.html/doc/trunk/www/branching.wiki Andy -- TAI64 timestamp: 4000562867dc ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
Thus said The Tick on Tue, 20 Oct 2015 19:25:04 -0500: > How can I remove the attachment now? Click on the details link next to the attachment. There is a Delete button there. All it does, really, is delete the link from the Wiki page to the artifact. The artifact does still exist and will be accessible via the artifact. So, in fact, you don't have to keep the attachment link in the Wiki page. You can just add the attachment, delete the link, and then add an img tag in your Wiki that points to the artifact. Andy -- TAI64 timestamp: 400056286aa5 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
Thus said The Tick on Tue, 20 Oct 2015 19:25:04 -0500: > This is similar to what I want to do so I gave it a try--I added an > image to a wiki page as an attachment. It's not what I want. It adds > text to the bottom of the page that says "Attachments". Did you edit the Wiki and add something like the following? Take care to use the right MIME type for the image. > Perhaps if I knew what "artifacts" or "artifact ids" were, I could > figure it out. Are there any docs on all this terminology? Click on the details link next to the attachment. It will give you the artifact ID (or UUID as some call it) that can be used in references. Andyk -- TAI64 timestamp: 4000562868f2 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
Thus said "Tony Papadimitriou" on Mon, 19 Oct 2015 16:24:49 +0300: > My question is how can I add this image to the repo in a way that it > is not part of any branch or ticket (e.g., attachment to a ticket)? Attach it to the Wiki page. Then add an img tag to the Wiki page using the /raw command: You can get the UUID of the artifact by clicking on the details of the attachment. Here's documentation on the /raw command: http://www.fossil-scm.org/index.html/help?cmd=/raw Fossil proper actually uses Embedded Documentation via /doc to serve images within its pages. For example, all the images in this documentation are in the www repository directory, but served via /doc: http://www.fossil-scm.org/index.html/doc/trunk/www/branching.wiki Andy -- TAI64 timestamp: 4000562867dc ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
On trunk, in contexts where TH1 is allowed (not wiki?), you should now be able to do: set image [encode64 [artifact trunk path/to/some.png]] -- Joe Mistachkin ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
On Wed, Oct 21, 2015 at 2:55 PM, Stephan Beal wrote: > The logo is a special case handled in the site-level config iirc. > I only used it as an example because it was the only image file I found on the Fossil site. (Only glanced through several pages that seemed likely candidates to have images.) ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
The logo is a special case handled in the site-level config iirc. - stephan (Sent from a mobile device, possibly from bed. Please excuse brevity, typos, and top-posting.) On Oct 21, 2015 19:56, "Ron W" wrote: > On Wed, Oct 21, 2015 at 9:34 AM, Tony Papadimitriou wrote: > >> Similar problem here. I thought I would get the image to display as part >> of the Wiki page and not as an attachment link. >> >> Is there a way to make the attached image display directly when opening >> the wiki page? (I don't mind the attachment link too much -- if there is >> no other way -- but the ideal would be to have the image display directly.) >> > > One way would be to use an HTML img tag with the URL from the attachment > link. Example: > http://fossil-scm.org/index.html/doc/trunk/www/fossil3.gif > "> > > Richard mentioned syntax was added to Fossil's wiki mark up, but didn't > remember the syntax. > > Fossil's Mark Down syntax has support for inline images. Presumably, you > can use the file name or artifact ID of the image instead of an URL. > Example: > ![Fossil Logo](fossil3.gif) > ![Fossil Logo](0fa38d60655faf) > ![Fossil Logo]( > http://fossil-scm.org/index.html/doc/trunk/www/fossil3.gif) > > (In the Fossil website, the logo is not an attachment, the file name > probably would not work, but maybe if it were attached to a wiki page, the > name would work.) > > > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
On Wed, Oct 21, 2015 at 9:34 AM, Tony Papadimitriou wrote: > Similar problem here. I thought I would get the image to display as part > of the Wiki page and not as an attachment link. > > Is there a way to make the attached image display directly when opening > the wiki page? (I don't mind the attachment link too much -- if there is > no other way -- but the ideal would be to have the image display directly.) > One way would be to use an HTML img tag with the URL from the attachment link. Example: http://fossil-scm.org/index.html/doc/trunk/www/fossil3.gif";> Richard mentioned syntax was added to Fossil's wiki mark up, but didn't remember the syntax. Fossil's Mark Down syntax has support for inline images. Presumably, you can use the file name or artifact ID of the image instead of an URL. Example: ![Fossil Logo](fossil3.gif) ![Fossil Logo](0fa38d60655faf) ![Fossil Logo]( http://fossil-scm.org/index.html/doc/trunk/www/fossil3.gif) (In the Fossil website, the logo is not an attachment, the file name probably would not work, but maybe if it were attached to a wiki page, the name would work.) ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
Similar problem here. I thought I would get the image to display as part of the Wiki page and not as an attachment link. Is there a way to make the attached image display directly when opening the wiki page? (I don't mind the attachment link too much -- if there is no other way -- but the ideal would be to have the image display directly.) -Original Message- From: The Tick Sent: Wednesday, October 21, 2015 3:25 AM To: fossil-users@lists.fossil-scm.org Subject: Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images On 10/19/2015 9:36 AM, Richard Hipp wrote: On 10/19/15, Tony Papadimitriou wrote: My question is how can I add this image to the repo in a way that it is not part of any branch or ticket (e.g., attachment to a ticket)? I only need it for the purpose of being shown in the wiki page but I do not want it to be part of any checkout or ticket. Add the image as an attachment to the wiki page. Then edit the wiki page to reference the attachment. (I remember adding that capability way back when I was first designing Fossil, but I haven't actually used it so I don't remember the exact syntax.) This is similar to what I want to do so I gave it a try--I added an image to a wiki page as an attachment. It's not what I want. It adds text to the bottom of the page that says "Attachments". How can I remove the attachment now? Perhaps if I knew what "artifacts" or "artifact ids" were, I could figure it out. Are there any docs on all this terminology? ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
On Wed, Oct 21, 2015 at 2:25 AM, The Tick wrote: > This is similar to what I want to do so I gave it a try--I added an image > to a wiki page as an attachment. It's not what I want. It adds text to the > bottom of the page that says "Attachments". > > How can I remove the attachment now? > i don't know if it can be removed (insofar as fossil can "remove" anything), now that you mention it, but... Perhaps if I knew what "artifacts" or "artifact ids" were, I could figure > it out. Are there any docs on all this terminology? "artifact" means, essentially, any file/wiki/ticket content. An artifact ID is simply its SHA1 hash. More details can be found here: http://fossil-scm.org/index.html/doc/trunk/www/concepts.wiki -- - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
On 10/19/2015 9:36 AM, Richard Hipp wrote: On 10/19/15, Tony Papadimitriou wrote: My question is how can I add this image to the repo in a way that it is not part of any branch or ticket (e.g., attachment to a ticket)? I only need it for the purpose of being shown in the wiki page but I do not want it to be part of any checkout or ticket. Add the image as an attachment to the wiki page. Then edit the wiki page to reference the attachment. (I remember adding that capability way back when I was first designing Fossil, but I haven't actually used it so I don't remember the exact syntax.) This is similar to what I want to do so I gave it a try--I added an image to a wiki page as an attachment. It's not what I want. It adds text to the bottom of the page that says "Attachments". How can I remove the attachment now? Perhaps if I knew what "artifacts" or "artifact ids" were, I could figure it out. Are there any docs on all this terminology? ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Questions about wiki linking to non-branch artifact IDs/images
On 10/19/15, Tony Papadimitriou wrote: > > My question is how can I add this image to the repo in a way that it is not > part of any branch or ticket (e.g., attachment to a ticket)? > I only need it for the purpose of being shown in the wiki page but I do not > want it to be part of any checkout or ticket. > Add the image as an attachment to the wiki page. Then edit the wiki page to reference the attachment. (I remember adding that capability way back when I was first designing Fossil, but I haven't actually used it so I don't remember the exact syntax.) -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Questions about wiki linking to non-branch artifact IDs/images
I’m trying to add an image to a wiki page. I want the image to be stored inside the same fossil repo (i.e., not external link). I read about all the possible ways one can create links with the [...] syntax. For example, I can either use the artifact ID, or an image name. My question is how can I add this image to the repo in a way that it is not part of any branch or ticket (e.g., attachment to a ticket)? I only need it for the purpose of being shown in the wiki page but I do not want it to be part of any checkout or ticket. Thanks. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users